English
Language : 

PIC16F1946 Datasheet, PDF (85/440 Pages) Microchip Technology – 64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt XLP Technology
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 and Figure 7-2.
FIGURE 7-1:
INTERRUPT LOGIC
TMR0IF
TMR0IE
INTF
INTE
From Peripheral Interrupt
Logic (Figure 7-2)
IOCIF
IOCIE
PEIE
GIE
PIC16F/LF1946/47
Wake-up (If in Sleep mode)
Interrupt to CPU
 2010 Microchip Technology Inc.
Preliminary
DS41414A-page 83