The 12F675 uses a calibration byte in the PIC to adjust the oscillator.
The calibration is done at the factory.
When you (re-)program the chip, you always have to read the calibration
byte first (because it will be erased),
then program the chip and then write back the calibration value.
See for more information: DS41173B
A good programmer will do that automatic, and you won't be aware of.
If you loose the calibration value, Microchip has somewhere a program to
recalibrate the chip.
The 1% accuracy is only at a Vdd=3.5 V and a stable temperature of 25
Celcius.
A more realistic value spec is +/- 2% at 2.5V ... 5.5V and 0..85
Celcius !
See for more information p95 of DS41190C.
Stef Mientki
Andrew Herdman wrote:
{Quote hidden}>I have been playing with Microchip's PICkit 1 and the 12F675 8-Pin PIC. I have been using the internal RC oscillator, as it keeps the number of external parts down, which keeps the playtime with the PIC up. I have downloaded and read the documentation on the device and am confused by trying to figure out what the clock cycle time is.
>
>What I think I know;
>
>-The documentation says that the minimum cycle time is 200nS which is a 5MHz Clock
> -a 20MHz crystal used an external oscillator, would be divided by 4, in fact any external oscillator would be divided by 4
>-the internal RC oscillator runs at ~4MHz, within 1% accuracy when calibrated.
> -the internal oscillator is not divided by 4, thus instruction cycle time is 250nS
>
>Is this correct? I understand some instructions may take 2 cycles to run. Loops I have made appear to support that the internal RC oscillator is not divided by 4, but the documentation is not clear on this.
>
>Thanks
> Andrew
>
>--
>
http://www.piclist.com hint: To leave the PICList
>
piclist-unsubscribe-request
spam_OUTmitvma.mit.edu
>
>
>
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads