Page 1 of 1

Timers in 18F27K42

Posted: Wed Jan 11, 2023 1:18 pm
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

Re: Timers in 18F27K42

Posted: Thu Jan 12, 2023 6:45 pm
by Benj
Hello Abhi,

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

Re: Timers in 18F27K42

Posted: Fri Jan 13, 2023 7:59 am
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