cant get 64mhz from pic18f14k22, anyone have working fcfx file?

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

Moderator: Benj

Post Reply
john
Posts: 2
Joined: Thu Jun 10, 2021 9:36 pm

cant get 64mhz from pic18f14k22, anyone have working fcfx file?

Post by john »

i am doing something wrong but cant find out what. Cant make it work at 64mhz, max i managed was 16mhz(even if i set at 64mhz using PLL) and something is not right as it randomly reboots or wont start.
Uploading hex files with pickit3
i have attached my flowcode file.
It would be awesome if anyone could check what i have made wrong or upload .fcfx and .hex file with pic18f14k22 working at 64mhz
Attachments
led.fcfx
(8.81 KiB) Downloaded 122 times

chipfryer27
Valued Contributor
Valued Contributor
Posts: 786
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 187 times
Been thanked: 205 times

Re: cant get 64mhz from pic18f14k22, anyone have working fcfx file?

Post by chipfryer27 »

Hi John

Merry Christmas.

Generally speaking the chip takes four cycles per instruction so in real terms divide Oscillator Speed by four to get actual speed (see page 265 of data sheet). In your example 64MHz/4 = 16MHz

Regards

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

Re: cant get 64mhz from pic18f14k22, anyone have working fcfx file?

Post by medelec35 »

Hi, I have made some changes for you.
With these types of microcontrollers, the PLLEN within the OSCCON register must be enabled.
Can you give the attached a try, and let me know how you get on, please.
Attachments
led Config Changed.fcfx
(9.11 KiB) Downloaded 138 times
Martin

Post Reply