PIC18F25K80 timer1 problem

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

PIC18F25K80 timer1 problem

Post 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.
Attachments
T1 soscen.png
(60.92 KiB) Downloaded 3478 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC18F25K80 timer1 problem

Post 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.
Attachments
18F25K80.fcdx
(32.18 KiB) Downloaded 294 times
Martin

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: PIC18F25K80 timer1 problem

Post by STibor »

Hello medelec35!

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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC18F25K80 timer1 problem

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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: PIC18F25K80 timer1 problem

Post 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

Post Reply