English
Language : 

PIC16F1847_13 Datasheet, PDF (83/440 Pages) Microchip Technology – 18/20/28-Pin Flash Microcontrollers with XLP Technology
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.
FIGURE 8-1:
INTERRUPT LOGIC
Peripheral Interrupts
(TMR1IF) PIR1<0>
(TMR1IE) PIE1<0>
TMR0IF
TMR0IE
INTF
INTE
IOCIF
IOCIE
PIRn<7>
PIEn<7>
PEIE
GIE
PIC16(L)F1847
Wake-up
(If in Sleep mode)
Interrupt
to CPU
 2011-2013 Microchip Technology Inc.
Preliminary
DS40001453D-page 83