PIC16C745/765
FIGURE 13-5: WAKE-UP FROM SLEEP THROUGH INTERRUPT
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
CLKOUT(4)
INT pin
Tost(2)
INTF flag
Interrupt Latency(2)
(INTCON<1>)
GIE bit
Processor in
SLEEP
(INTCON<7>)
INSTRUCTION FLOW
PC
PC+2
PC+2
PC + 2
0004h
0005h
Instruction
fetched
Inst(0004h)
Inst(PC + 2)
Inst(0005h)
Instruction
executed
Dummy cycle
Dummy cycle
Inst(PC + 1)
Inst(0004h)
Note 1: HS oscillator mode assumed.
2: TOST = 1024TOSC (drawing not to scale). This delay is not present in EC osc mode.
3: GIE = ’1’ assumed. After wake- up, the processor jumps to the interrupt routine. If GIE = ’0’, execution will continue in-line.
4: CLKOUT is not available in these osc modes, but shown here for timing reference.
FIGURE 13-6: INTERRUPT LOGIC
PSPIF(1)
PSPIE(1)
Wake-up (If in SLEEP mode)
ADIF
ADIE
T0IF
T0IE
RCIF
RCIE
INTF
INTE
Interrupt to CPU
TXIF
TXIE
RBIF
RBIE
USBIF
USBIE
PEIE
GIE
CCP1IF
CCP1IE
TMR2IF
TMR2IE
TMR1IF
TMR1IE
CCP2IF
CCP2IE
The following table shows the interrupts for each device.
Device
T0IF INTF RBIF PSPIF ADIF RCIF TXIF USBIF CCP1IF TMR2IF TMR1IF CCP2IF
PIC16C745
Yes
Yes
Yes
—
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
PIC16C765
Yes
Yes
Yes
Yes
Note 1: PIC16C765 only.
DS41124A-page 104
Advanced Information
1999 Microchip Technology Inc.