PIC16F1708 Timer 2 compile error
Posted: Thu Apr 20, 2017 4:42 pm
Flowcode 7.2.1.4
T2CLKCON=0x01;
^ (192) undefined identifier "T2CLKCON"
T2PR=125-1;
^ (192) undefined identifier "T2PR"
(908) exit status = 1
(908) exit status = 1
According to the datasheet, it appears register T2CLKCON does not exist, the clock source is Fosc/4 and T2PR should be PR2.
There are compile errors with Timer 4 & Timer 6 as well, but I have not looked into those.
T2CLKCON=0x01;
^ (192) undefined identifier "T2CLKCON"
T2PR=125-1;
^ (192) undefined identifier "T2PR"
(908) exit status = 1
(908) exit status = 1
According to the datasheet, it appears register T2CLKCON does not exist, the clock source is Fosc/4 and T2PR should be PR2.
There are compile errors with Timer 4 & Timer 6 as well, but I have not looked into those.