• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
 

Mosaic

Well-Known Member
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.
 

Nigel Goodwin

Super Moderator
Most Helpful Member
Use MCC, that makes it easier to set the clock speed - then cut and paste the section of code you want :D

The bewildering number of options on modern PIC's is VERY confusing.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top