Page 1 of 1

PIC18F25K80 timer1 problem

Posted: Thu Feb 18, 2016 9:03 pm
by STibor
Hello!

(PIC18F25K80 internal clock) (Timer1 external crystal) setting.
If the Timer1 interrupt 32,768kHz external clock crystal, it gives the compiler error.
nagykijelzos_ora_v2_teszt.c(441:22): error: unknown identifier 'T1SOSCEN'
nagykijelzos_ora_v2_teszt.c(441:22): error: failed to generate expression
nagykijelzos_ora_v2_teszt.c(441:22): error: invalid operand 'T1SOSCEN'
nagykijelzos_ora_v2_teszt.c(441:17): error: failed to generate expression
nagykijelzos_ora_v2_teszt.c(441:15): error: invalid operand '1 << ( T1SOSCEN)'
nagykijelzos_ora_v2_teszt.c(441:11): error: failed to generate expression

FCD file.
The t1con, T1SOSCEN bits does not exist.
Correct the t1con, SOSCEN.

Re: PIC18F25K80 timer1 problem

Posted: Thu Feb 18, 2016 10:14 pm
by medelec35
Hi STibor
Here is an unofficial temporary solution.
I have modified:
18F25K80.fcdx
That's in:
C:\Program Files (x86)\Flowcode 6\FCD\PIC (If 64 bit windows)
or
C:\Program Files\Flowcode 6\FCD\PIC(If 32 bit windows.)
If you make a copy of the original files and replace with the attached file, hopefully you will be able to compile.
I have not thoroughly checked the fcdx file so there may or may not be other issues.

I also fixed same issue with timer3
Not tested with hardware.

Martin.

Re: PIC18F25K80 timer1 problem

Posted: Fri Feb 19, 2016 7:17 pm
by STibor
Hello medelec35!

Also, check with the following types:
PIC18F25K80
PIC18LF25K80
PIC18F26K80
PIC18LF26K80
PIC18F45K80
PIC18LF45K80
PIC18F46K80
PIC18LF46K80
PIC18F65K80
PIC18LF65K80
PIC18F66K80
PIC18LF66K80

Re: PIC18F25K80 timer1 problem

Posted: Sun Feb 21, 2016 9:42 pm
by medelec35
Hi Simpi,
Only posted the one you mentioned as I thought it would help you get out of a jam.

I will leave matrix to update the rest of them as lack of time my side.

Martin

Re: PIC18F25K80 timer1 problem

Posted: Mon Feb 22, 2016 10:17 am
by LeighM
Thanks medelec35 and STibor,
I've now updated our fcd repo for the 18F66K80 family,
so corrections will be in next package update, over to maestro Ben :D