Microchip Technology DM164134 Data Sheet

Page of 402
© 2006 Microchip Technology Inc.
DS41159E-page 275
PIC18FXX8
FIGURE 24-2:
WAKE-UP FROM SLEEP THROUGH INTERRUPT
(1,2)
       
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
CLKO
(4)
INT pin
INTF Flag
(INTCON<1>)
GIEH bit
(INTCON<7>)
INSTRUCTION FLOW
PC
Instruction
Fetched
Instruction
Executed
PC
PC + 2
PC + 4
Inst(PC) = Sleep
Inst(PC – 1)
Inst(PC + 2)
Sleep
Processor in
Sleep
Interrupt Latency
(3)
Inst(PC + 4)
Inst(PC + 2)
Inst(0008h)
Inst(000Ah)
Inst(0008h)
Dummy Cycle
PC + 4
0008h
000Ah
Dummy Cycle
T
OST
(2)
PC + 4
Note
1:
XT, HS or LP Oscillator mode assumed.
2:
GIE = 1 assumed. In this case, after wake-up, the processor jumps to the interrupt routine. If GIE = 0, execution will continue in-line.
3:
T
OST
 = 1024 T
OSC
 (drawing not to scale). This delay will not occur for RC and EC Oscillator modes.
4:
CLKO is not available in these oscillator modes but shown here for timing reference.