Timers in 18F27K42

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
User avatar
AbhijitR
Posts: 299
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 280 times
Been thanked: 79 times
Contact:

Timers in 18F27K42

Post by AbhijitR »

Hello!

I am trying to work with the timers in PIC18F27K42, Timer0, 1, 2 works good but unfortunately 3 to 6 do not work, below is the error I receive at compilation, may I request someone to point out the mistake I am doing.
xxxxxxxxxxxxxxxxxxxxxxxxxxxx.c: FCM_Micro_Initialization()
20987: PIE4bits.TMR6IE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S162
xxxxxxxxxxxxxxxxxxxxxxxxxxxx.c: default_isr()
28253: if ((PIR4bits.TMR6IF) && (PIE4bits.TMR6IE))
^ (255) not a member of the struct/union ""
^ (255) not a member of the struct/union ""
(199) logical type required ^
(199) logical type required ^
28256: PIR4bits.TMR6IF = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S188
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]
Thank you.
Abhi

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: Timers in 18F27K42

Post by Benj »

Hello Abhi,

Many thanks for letting us know, Hopefully should be resolved for you now via the library updates.

User avatar
AbhijitR
Posts: 299
Joined: Fri Nov 07, 2014 12:48 pm
Location: Pune, India
Has thanked: 280 times
Been thanked: 79 times
Contact:

Re: Timers in 18F27K42

Post by AbhijitR »

Hi! Ben
good morning

Million thanks for your quick reply and action, saved me from finding the substitute in these difficult times of unavailability of chips.

Thank you again, cheers....

Abhi

Post Reply