English
Language : 

PIC16LF18854 Datasheet, PDF (127/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
7.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 7-1.
FIGURE 7-1:
INTERRUPT LOGIC
Peripheral Interrupts
(TMR1IF) PIR1<0>
(TMR1IE) PIE1<0>
PIRn<7>
PIEn<7>
TMR0IF
TMR0IE
INTF
INTE
IOCIF
IOCIE
PEIE
GIE
Rev. 10-000010A
1/13/2014
Wake-up
(If in Sleep mode)
Interrupt
to CPU
 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 127