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
cant get 64mhz from pic18f14k22, anyone have working fcfx file?
Moderator: Benj
cant get 64mhz from pic18f14k22, anyone have working fcfx file?
- Attachments
-
- led.fcfx
- (8.81 KiB) Downloaded 122 times
-
- 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?
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
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
-
- 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?
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.
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