PIC16F1708 Timer 2 compile error

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

Post Reply
qwall
Posts: 7
Joined: Tue Apr 18, 2017 1:57 am
Location: Los Angeles, CA
Has thanked: 4 times
Been thanked: 2 times
Contact:

PIC16F1708 Timer 2 compile error

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F1708 Timer 2 compile error

Post by Benj »

Thanks for letting us know, investigating now for you.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F1708 Timer 2 compile error

Post 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 232 times
Let me know how you get on.

qwall
Posts: 7
Joined: Tue Apr 18, 2017 1:57 am
Location: Los Angeles, CA
Has thanked: 4 times
Been thanked: 2 times
Contact:

Re: PIC16F1708 Timer 2 compile error

Post by qwall »

That fixed it, thank you for the quick response!

Post Reply