PIC18F2220/2320/4220/4320
When a wake-up event occurs, the CPU is clocked
from the primary clock source. A delay of approxi-
3.3.1
PRI_IDLE MODE
This mode is unique among the three Low-Power Idle
modes in that it does not disable the primary system
clock. For timing sensitive applications, this allows for
the fastest resumption of device operation, with its
more accurate primary clock source, since the clock
source does not have to “warm up” or transition from
another oscillator.
mately 10 µs is required between the wake-up event
and when code execution starts. This is required to
allow the CPU to become ready to execute instructions.
After the wake-up, the OSTS bit remains set. The
IDLEN and SCS bits are not affected by the wake-up
(see Figure 3-4).
PRI_IDLE mode is entered by setting the IDLEN bit,
clearing the SCS bits and executing a SLEEPinstruc-
tion. Although the CPU is disabled, the peripherals
continue to be clocked from the primary clock source
specified in Configuration Register 1H. The OSTS bit
remains set in PRI_IDLE mode (see Figure 3-3).
FIGURE 3-3:
TRANSITION TIMING TO PRI_IDLE MODE
Q3
Q4
Q1
Q1
Q2
OSC1
CPU Clock
Peripheral
Clock
Program
Counter
PC
PC + 2
FIGURE 3-4:
TRANSITION TIMING FOR WAKE FROM PRI_IDLE MODE
Q1
Q3
Q4
Q2
OSC1
CPU Start-up Delay
CPU Clock
Peripheral
Clock
Program
Counter
PC + 2
PC
Wake-up Event
2003 Microchip Technology Inc.
DS39599C-page 33