Ch 6 - Interrupts-web.pdf - \u2502 Chapter 6\u2502 Interrupt Processing(web Hui Xie 1 300044 Microcontrollers Overview Definition of interrupt Types of

Ch 6 - Interrupts-web.pdf - │ Chapter 6│ Interrupt...

This preview shows page 1 - 11 out of 41 pages.

1 Hui Xie Interrupt Processing (web) Chapter 6
Image of page 1
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
Image of page 2
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
Image of page 3
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).
Image of page 4
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.
Image of page 5
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.
Image of page 6