English
Language : 

PIC16F87-E Datasheet, PDF (45/228 Pages) Microchip Technology – 18/20/28-Pin Enhan lashMicrocontrollers with nanoWatt Technology
PIC16F87/88
4.7 Power-Managed Modes
4.7.1 RC_RUN MODE
When SCS bits are configured to run from the INTRC,
a clock transition is generated if the system clock is
not already using the INTRC. The event will clear the
OSTS bit, switch the system clock from the primary
system clock (if SCS<1:0> = 00) determined by the
value contained in the configuration bits, or from the
T1OSC (if SCS<1:0> = 01) to the INTRC clock option
and shut down the primary system clock to conserve
power. Clock switching will not occur if the primary
system clock is already configured as INTRC.
If the system clock does not come from the INTRC
(31.25 kHz) when the SCS bits are changed and the
IRCF bits in the OSCCON register are configured for a
frequency other than INTRC, the frequency may not be
stable immediately. The IOFS bit (OSCCON<2>) will
be set when the INTOSC or postscaler frequency is
stable, after 4 ms (approx.).
After a clock switch has been executed, the OSTS bit
is cleared, indicating a low-power mode and the
device does not run from the primary system clock.
The internal Q clocks are held in the Q1 state until
eight falling edge clocks are counted on the INTRC
oscillator. After the eight clock periods have
transpired, the clock input to the Q clocks is released
and operation resumes (see Figure 4-7).
FIGURE 4-7:
TIMING DIAGRAM FOR XT, HS, LP, EC AND EXTRC TO RC_RUN MODE
Q1 Q2 Q3 Q4 Q1
INTOSC
OSC1
System
Clock
TOSC(2)
TINP(1)
TSCS(3)
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1
SCS<1:0>
Program
Counter
TDLY(4)
PC
Note 1:
2:
3:
4:
TINP = 32 µs typical.
TOSC = 50 ns minimum.
TSCS = 8 TINP.
TDLY = 1 TINP.
PC + 1
PC + 2
PC + 3
 2005 Microchip Technology Inc.
DS30487C-page 43