Microchip Technology AC244044 Data Sheet

Page of 448
 2010-2012 Microchip Technology Inc.
DS41440C-page 85
PIC16(L)F1825/1829
8.0
INTERRUPTS
The interrupt feature allows certain events to preempt
normal program flow. Firmware is used to determine
the source of the interrupt and act accordingly. Some
interrupts can be configured to wake the MCU from
Sleep mode.
This chapter contains the following information for
Interrupts:
• Operation
• Interrupt Latency
• Interrupts During Sleep
• INT  Pin
• Automatic Context Saving
Many peripherals produce Interrupts. Refer to the
corresponding chapters for details.
A block diagram of the interrupt logic is shown in
.
FIGURE 8-1:
INTERRUPT LOGIC 
D
CK
R
Q
D
CK
R
Q
RBx
IOCBNx
IOCBPx
Q2
D
CK
S
Q
Q4Q1
data bus =
0 or 1
write IOCBFx
IOCIE
to data bus
IOCBFx
edge
detect
IOC interrupt
to CPU core
from all other 
IOCBFx individual 
pin detectors
Q1
Q2
Q3
Q4
Q4Q1
Q1
Q2
Q3
Q4
Q1
Q2
Q3
Q4
Q4
Q4Q1
Q4Q1
Q4Q1