English
Language : 

PIC18LF24K Datasheet, PDF (61/594 Pages) –
PIC18(L)F26/45/46K40
FIGURE 6-2:
WAKE-UP FROM SLEEP THROUGH INTERRUPT
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1
CLKIN(1)
CLKOUT(2)
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
TOST(3)
Interrupt flag
GIE bit
(INTCON reg.)
Instruction Flow
PC
PC
Instruction
Fetched
Inst(PC) = Sleep
Instruction
Executed
Inst(PC - 1)
Processor in
Sleep
PC + 1
Inst(PC + 1)
Sleep
PC + 2
Interrupt Latency(4)
PC + 2
Inst(PC + 2)
Inst(PC + 1)
PC + 2
Forced NOP
0004h
Inst(0004h)
Forced NOP
0005h
Inst(0005h)
Inst(0004h)
Note 1:
2:
3:
4:
External clock. High, Medium, Low mode assumed.
CLKOUT is shown here for timing reference.
TOST = 1024 TOSC. This delay does not apply to EC and INTOSC Oscillator modes.
GIE = 1 assumed. In this case after wake-up, the processor calls the ISR at 0004h. If GIE = 0, execution will continue in-line.
6.2.3 LOW-POWER SLEEP MODE
The PIC18F2x/4xK40 device family contains an
internal Low Dropout (LDO) voltage regulator, which
allows the device I/O pins to operate at voltages up to
5.5V while the internal device logic operates at a lower
voltage. The LDO and its associated reference circuitry
must remain active when the device is in Sleep mode.
The PIC18F2x/4xK40 devices allows the user to
optimize the operating current in Sleep, depending on
the application requirements.
Low-Power Sleep mode can be selected by setting the
VREGPM bit of the VREGCON register.
6.2.3.1 Sleep Current vs. Wake-up Time
In the default operating mode, the LDO and reference
circuitry remain in the normal configuration while in
Sleep. The device is able to exit Sleep mode quickly
since all circuits remain active. In Low-Power Sleep
mode, when waking-up from Sleep, an extra delay time
is required for these circuits to return to the normal
configuration and stabilize.
The Low-Power Sleep mode is beneficial for
applications that stay in Sleep mode for long periods of
time. The Normal mode is beneficial for applications
that need to wake from Sleep quickly and frequently.
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 61