18F25K22 internal clock setting

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
MedBoy
Posts: 137
Joined: 11 Jul 2012 11:45

18F25K22 internal clock setting

#1 Post by MedBoy » 12 Oct 2019 23:48

Hi everyone. I want to set my 18F25K22 to 64MHz speed via internal clock. but i could not do. my program works in 16MHz.
you can see my program in attachment. what is my wrong? thanks.
Attachments
intclock.rar
(21.89 KiB) Downloaded 74 times

hexreader
Posts: 1786
Joined: 27 Jun 2010 12:07
Location: England

Re: 18F25K22 internal clock setting

#2 Post by hexreader » 13 Oct 2019 13:29

Your code is just too horrible for me to cope with.

Attached is a project I had lying around, which hopefully will work for you:

I will leave you to work out the differences between your "code" and this code/configuration
Attachments
intclock.zip
(24.15 KiB) Downloaded 75 times
Start every day with a smile...... (get it over with) :)

MedBoy
Posts: 137
Joined: 11 Jul 2012 11:45

Re: 18F25K22 internal clock setting

#3 Post by MedBoy » 14 Oct 2019 19:25

hexreader wrote:Your code is just too horrible for me to cope with.

Attached is a project I had lying around, which hopefully will work for you:

I will leave you to work out the differences between your "code" and this code/configuration

Hellooo :) your program config worked. I wrote about OSCCON config just "OSCCON = %01110010". but your suggest is correct. Thankssss :)

Code: Select all

OSCCON.IRCF0=1
OSCCON.IRCF1=1
OSCCON.IRCF2=1 

Post Reply

Return to “mikroBasic PRO for PIC General”