PIC12F639 Microchip Technology, PIC12F639 Datasheet - Page 32

no-image

PIC12F639

Manufacturer Part Number
PIC12F639
Description
(PIC12F635 / PIC12F636 / PIC12F639) 8/14-PIN FLASH-BASED / 8-BIT CMOS MICROCONTROLLERS WITH NANOWATT TECHNOLOGY
Manufacturer
Microchip Technology
Datasheet
PIC12F635/PIC16F636/639
3.2
Clock source modes can be classified as external or
internal.
External clock modes rely on external circuitry for the
clock source. Examples are oscillator modules (EC
mode), quartz crystal resonators or ceramic resonators
(LP, XT and HS modes) and Resistor-Capacitor (RC
mode) circuits.
Internal clock sources are contained internally within
PIC12F635/PIC16F636/639. The device has two inter-
nal oscillators: the 8 MHz High-Frequency Internal
Oscillator (HFINTOSC) and 31 kHz Low-Frequency
Internal Oscillator (LFINTOSC).
The system clock can be selected between external or
internal clock sources via the System Clock Selection
(SCS) bit (see Section 3.5 “Clock Switching”).
TABLE 3-1:
DS41232B-page 30
LFINTOSC (31 kHz)
LFINTOSC (31 kHz)
Switch From
Sleep/POR
Sleep/POR
Sleep/POR
Clock Source Modes
OSCILLATOR DELAY EXAMPLES
HFINTOSC
HFINTOSC
LFINTOSC
LP, XT, HS
Switch To
EC, RC
EC, RC
Preliminary
125 kHz-8 MHz
31 kHz-20 MHz
125 kHz-8 MHz
DC – 20 MHz
DC – 20 MHz
Frequency
3.3
3.3.1
If the PIC12F635/PIC16F636/639 is configured for LP,
XT or HS modes, the Oscillator Start-up Timer (OST)
counts 1024 oscillations from the OSC1 pin following a
Power-on Reset (POR) and the Power-up Timer
(PWRT) has expired (if configured), or a wake-up from
Sleep. During this time, the program counter does not
increment and program execution is suspended. The
OST ensures that the oscillator circuit, using a quartz
crystal resonator or ceramic resonator, has started and
is providing a stable system clock to the PIC12F635/
PIC16F636/639.
When switching between clock sources, a delay is
required to allow the new clock to stabilize. Table 3-1
shows oscillator delay examples.
In order to minimize latency between external oscillator
start-up and code execution, the Two-Speed Clock Start-
up mode can be selected (see Section 3.6 “Two-Speed
Clock Start-up Mode”).
31 kHz
External Clock Modes
OSCILLATOR START-UP TIMER (OST)
© 2005 Microchip Technology Inc.
1024 Clock Cycles (OST)
5 s-10 s (approx.)
Oscillator Delay
1 s (approx.)
CPU Start-up

Related parts for PIC12F639