Selecting Oscillator speed?

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
stokes
Professional User
Posts: 70
Joined: Mon 2006-03-13 6:38

Selecting Oscillator speed?

Post by stokes »

How can I select a 16F84A to be in RC mode. All I can do is change the value for the extraction speed, how can I change the CONFIG registers to RC mode (stated in Datasheet of the device)

I have tried to use a 555 IC with variable resistors and cap's and hence I can't see the change in processor speed?
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Selecting Oscillator speed?

Post by Ettore »

stokes wrote:How can I select a 16F84A to be in RC mode. All I can do is change the value for the extraction speed, how can I change the CONFIG registers to RC mode (stated in Datasheet of the device)
In MPASM you can set PIC's oscillator with the directive __CONFIG. You may have a look at MPLAB documentation.
I have tried to use a 555 IC with variable resistors and cap's and hence I can't see the change in processor speed?
This has been explained a lot of times in the old BBs. We are not definitely interested to simulate the oscillator features just to see CPU resources being spent only for this!

All CPUs have the property "Processor Clock Frequency"; use this in order to change clock. If you need any components (passive or actives) for LP mode just for PCB layout, then you may always include them, but I strongly suggest to exclude them from simulation (use relevant property in latest simulator version or PRIMITIVE=NULL in the older ones).
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply