If using a stand-alone oscillator with a nominal 10 ms startup time, do I need to do anything special with the PIC to insure that either the oscillator or the chip is running first?
Printable View
If using a stand-alone oscillator with a nominal 10 ms startup time, do I need to do anything special with the PIC to insure that either the oscillator or the chip is running first?
I would say no, looks like it is built in.
This is from:
http://ww1.microchip.com/downloads/e...Doc/70054b.pdf
Quote:
7.12 Oscillator Start-up Timer (OST)
In order to ensure that a crystal oscillator (or ceramic resonator) has started and stabilized, an
Oscillator Start-up Timer is provided. It is a simple 10-bit counter that counts 1024 TOSC cycles
before releasing the oscillator clock to the rest of the system. The time-out period is designated
as TOST. The amplitude of the oscillator signal must reach the VIL and VIH thresholds for the
oscillator pins before the OST can begin to count cycles (see Figure 7-4).
The TOST time is involved every time the oscillator has to restart (i.e., on POR, BOR and wake-up
from SLEEP mode). The Oscillator Start-up Timer is applied to the LP oscillator and the XT, XTL
and HS modes for the Primary oscillator.
Hmm. Well, at 4 MHz, that's about 250 microseconds; at 20 MHz, about 50. The oscillator spec gives a nominal startup time of 10 milliseconds. Perhaps I should put an RC circuit on the /MCLR pin.