1 Hui Xie Interrupt Processing (web) │ Chapter 6 │
2 Hui Xie 300044 Microcontrollers Overview Definition of interrupt Types of interrupts Operation of interrupts Description of the functions of INTCON, IOCAP, IOCAN, and IOCAF registers Configuration for interrupt - on - change and Timer0 interrupts
3 Hui Xie 300044 Microcontrollers 6.0. Motivation Microcontroller: temperature measurement via A/D conversion delay generation using a loop delay generation using Timer0 wake CPU from sleep mode
4 Hui Xie 300044 Microcontrollers 6.0. Interrupt Serve several devices --- interrupt or polling. In the interrupt mode, whenever a device needs service, the device notifies the CPU by sending it an interrupt signal. Upon receiving an interrupt signal, the CPU suspends what it currently executes, and serves the device by executing a program associated with that interrupt. The program is called interrupt service routine (ISR).
5 Hui Xie 300044 Microcontrollers 6.0. Interrupt In polling mode, the CPU continuously monitors the status of a device and when conditions are met, it provides service to the device.
6 Hui Xie 300044 Microcontrollers 6.0. Interrupt The interrupt mode allows multiple events to run in parallel in the MCU, such as timing and ADC. Some interrupts can be configured to wake the MCU from Sleep mode.