English
Language : 

PIC16F1938 Datasheet, PDF (73/452 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PIC16(L)F1938/9
5.4 Two-Speed Clock Start-up Mode
Two-Speed Start-up mode provides additional power
savings by minimizing the latency between external
oscillator start-up and code execution. In applications
that make heavy use of the Sleep mode, Two-Speed
Start-up will remove the external oscillator start-up
time from the time spent awake and can reduce the
overall power consumption of the device. This mode
allows the application to wake-up from Sleep, perform
a few instructions using the INTOSC internal oscillator
block as the clock source and go back to Sleep without
waiting for the external oscillator to become stable.
Two-Speed Start-up provides benefits when the oscil-
lator module is configured for LP, XT or HS modes.
The Oscillator Start-up Timer (OST) is enabled for
these modes and must count 1024 oscillations before
the oscillator can be used as the system clock source.
If the oscillator module is configured for any mode
other than LP, XT or HS mode, then Two-Speed
Start-up is disabled. This is because the external clock
oscillator does not require any stabilization time after
POR or an exit from Sleep.
If the OST count reaches 1024 before the device
enters Sleep mode, the OSTS bit of the OSCSTAT reg-
ister is set and program execution switches to the
external oscillator. However, the system may never
operate from the external oscillator if the time spent
awake is very short.
Note:
Executing a SLEEP instruction will abort
the oscillator start-up time and will cause
the OSTS bit of the OSCSTAT register to
remain clear.
5.4.1
TWO-SPEED START-UP MODE
CONFIGURATION
Two-Speed Start-up mode is configured by the
following settings:
• IESO (of the Configuration Word 1) = 1; Inter-
nal/External Switchover bit (Two-Speed Start-up
mode enabled).
• SCS (of the OSCCON register) = 00.
• FOSC<2:0> bits in the Configuration Word 1
configured for LP, XT or HS mode.
Two-Speed Start-up mode is entered after:
• Power-on Reset (POR) and, if enabled, after
Power-up Timer (PWRT) has expired, or
• Wake-up from Sleep.
TABLE 5-1: OSCILLATOR SWITCHING DELAYS
Switch From
Sleep/POR
Sleep/POR
LFINTOSC
Sleep/POR
Any clock source
Any clock source
Any clock source
PLL inactive
Note 1: PLL inactive.
Switch To
LFINTOSC(1)
MFINTOSC(1)
HFINTOSC(1)
EC, RC(1)
EC, RC(1)
Timer1 Oscillator
LP, XT, HS(1)
MFINTOSC(1)
HFINTOSC(1)
LFINTOSC(1)
Timer1 Oscillator
PLL active
Frequency
31 kHz
31.25 kHz-500 kHz
31.25 kHz-16 MHz
DC – 32 MHz
DC – 32 MHz
32 kHz-20 MHz
31.25 kHz-500 kHz
31.25 kHz-16 MHz
31 kHz
32 kHz
16-32 MHz
Oscillator Delay
Oscillator Warm-up Delay (TWARM)
2 cycles
1 cycle of each
1024 Clock Cycles (OST)
2 s (approx.)
1 cycle of each
1024 Clock Cycles (OST)
2 ms (approx.)
 2011 Microchip Technology Inc.
Preliminary
DS41574A-page 73