PIC18F25K80 timer1 problem

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

Moderator: Benj

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

PIC18F25K80 timer1 problem

Postby STibor » Thu Feb 18, 2016 9:03 pm

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
T1 soscen.png (60.92 KiB) Viewed 3447 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8812
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2558 times
Been thanked: 3712 times
Contact:

Re: PIC18F25K80 timer1 problem

Postby medelec35 » Thu Feb 18, 2016 10:14 pm

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 128 times
These users thanked the author medelec35 for the post (total 3):
LeighM (Fri Feb 19, 2016 9:16 am) • STibor (Fri Feb 19, 2016 7:13 pm) • kersing (Sun Feb 21, 2016 9:50 pm)
Rating: 15%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: PIC18F25K80 timer1 problem

Postby STibor » Fri Feb 19, 2016 7:17 pm

Hello medelec35!

Also, check with the following types:
PIC18F25K80
PIC18LF25K80
PIC18F26K80
PIC18LF26K80
PIC18F45K80
PIC18LF45K80
PIC18F46K80
PIC18LF46K80
PIC18F65K80
PIC18LF65K80
PIC18F66K80
PIC18LF66K80
These users thanked the author STibor for the post (total 2):
LeighM (Mon Feb 22, 2016 9:11 am) • medelec35 (Mon Feb 22, 2016 9:14 am)
Rating: 10%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8812
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2558 times
Been thanked: 3712 times
Contact:

Re: PIC18F25K80 timer1 problem

Postby medelec35 » Sun Feb 21, 2016 9:42 pm

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
These users thanked the author medelec35 for the post (total 2):
LeighM (Mon Feb 22, 2016 9:11 am) • Benj (Mon Feb 22, 2016 6:52 pm)
Rating: 10%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
LeighM
Matrix Staff
Posts: 2009
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 480 times
Been thanked: 688 times
Contact:

Re: PIC18F25K80 timer1 problem

Postby LeighM » Mon Feb 22, 2016 10:17 am

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
These users thanked the author LeighM for the post (total 2):
medelec35 (Mon Feb 22, 2016 10:33 am) • Benj (Mon Feb 22, 2016 6:53 pm)
Rating: 10%