Proteus ISIS PIC 18F processor speed setting problem

Status
Not open for further replies.

Mosaic

Well-Known Member
Hello All:
Using an 18F26J50, no matter what processor speed setting (processor properties) I try, it is running at 4Mhz.
With a 16F886...it runs at any speed I set properly.

Any advice on this?
 
Ok figured it out. Needed to setup the following:
OSC = INTOSCPLL, PLLDIV=2 . & IESO =ON config bits.
Then setup the OSCCON to 8MHz and enable the PLLEN & INTSRC bits in OSCTUNE in the code.
83nS per instruction = 12MIPS @48Mhz.
 
Use MCC, that makes it easier to set the clock speed - then cut and paste the section of code you want

The bewildering number of options on modern PIC's is VERY confusing.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…