Page 1 of 1

PIC16F1708 Timer 2 compile error

Posted: Thu Apr 20, 2017 4:42 pm
by qwall
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.

Re: PIC16F1708 Timer 2 compile error

Posted: Thu Apr 20, 2017 5:34 pm
by Benj
Thanks for letting us know, investigating now for you.

Re: PIC16F1708 Timer 2 compile error

Posted: Thu Apr 20, 2017 5:49 pm
by Benj
Right hopefully the attached should solve the problem for you.

Simply extract the attached archive into your "Flowcode 7/FCD/PIC" folder and then restart Flowcode for the changes to be loaded.
PIC.zip
(42 KiB) Downloaded 281 times
Let me know how you get on.

Re: PIC16F1708 Timer 2 compile error

Posted: Thu Apr 20, 2017 7:44 pm
by qwall
That fixed it, thank you for the quick response!