Oscillator Start-up Timer

When the External Crystal/Resonator is selected as the system clock on the PIC® MCU device the crystal or resonator drive circuit requires time to settle before reliable code execution can occur. For this reason, the Oscillator Start-up Timer (OST) is used to give the drive circuitry time to settle. The OST counts 1024 oscillations from the crystal/resonator drive circuit at the OSC1 pin. The count begins after a Power On Reset (POR) and if enabled, the Power-Up Reset Timer (PWRT) has expired. The OST ensures that the crystal oscillator or the ceramic resonator have started and can provide a stable system clock.

During the 1024 oscillations the device is held in reset, the program counter does not increment and program execution is suspended. During this OST delay of 1024 oscillations, the system clock can be suplied by the Internal Oscillator if the Fail Safe Clock Monitor or Two Speed Start-Up is enabled.

Oscillator Start-up Timer Status Bit

The Oscillator Start-up Timer Status (OSTS) bit in the Oscillator Status (OSCSTAT) register indicates when the internal 1024 oscillations has been completed by setting the OSTS bit to a one. When the OSTS = 1 then the External Crystal/Resonator is the system clock controlling the program counter and program execution. This bit will be set to zero during the 1024 oscillations to indicate the External Crystal/Resonator is not ready.


For more information on 8-Bit oscillator options visit the 8-Bit Oscillator Options article.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.