English
Language : 

PIC16F87 Datasheet, PDF (46/214 Pages) Microchip Technology – 18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
PIC16F87/88
4.7.2 SEC_RUN MODE
The core and peripherals can be configured to be
clocked by T1OSC using a 32.768 kHz crystal. The
crystal must be connected to the T1OSO and T1OSI
pins. This is the same configuration as the low-power
timer circuit (see Section 7.6 “Timer1 Oscillator”).
When SCS bits are configured to run from T1OSC, a
clock transition is generated. It will clear the OSTS bit,
switch the system clock from either the primary system
clock, or INTRC, depending on the value of SCS<1:0>
and FOSC<2:0>, to the external low-power Timer1
oscillator input (T1OSC), and shut down the primary
system clock to conserve power.
After a clock switch has been executed, the internal Q
clocks are held in the Q1 state until eight falling edge
clocks are counted on the T1OSC. After the eight
clock periods have transpired, the clock input to the Q
clocks is released and operation resumes (see
Figure 4-8). In addition, T1RUN (In T1CON) is set to
indicate that T1OSC is being used as the system
clock.
Note 1: The T1OSCEN bit must be enabled and it
is the user’s responsibility to ensure
T1OSC is stable before clock switching to
the T1OSC input clock can occur.
2: When T1OSCEN = 0, the following possible
effects result.
Original Modified
Final
SCS<1:0> SCS<1:0> SCS<1:0>
00
01 00 - no change
00
11 10 - INTRC
10
11 10 - no change
10
01 00 - OSC
defined by
FOSC<2:0>
A clock switching event will occur if the
final state of the SCS bits is different from
the original.
FIGURE 4-8:
TIMING DIAGRAM FOR SWITCHING TO SEC_RUN MODE
Q1 Q2 Q3 Q4 Q1
T1OSI
OSC1
System
Clock
TOSC(2)
TT1P(1)
SCS<1:0>
Program
Counter
TDLY(4)
PC
TSCS(3)
PC +1
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1
PC + 2
PC +3
Note 1:
2:
3:
4:
TT1P = 30.52 µs.
TOSC = 50 ns minimum.
TSCS = 8 TT1P
TDLY = 1 TT1P.
DS30487B-page 44
Preliminary
 2003 Microchip Technology Inc.