Книга: Advanced PIC Microcontroller Projects in C
1.3.6 Interrupts
1.3.6 Interrupts
Interrupts are an important concept in microcontrollers. An interrupt causes the microcontroller to respond to external and internal (e.g., a timer) events very quickly. When an interrupt occurs, the microcontroller leaves its normal flow of program execution and jumps to a special part of the program known as the interrupt service routine (ISR). The program code inside the ISR is executed, and upon return from the ISR the program resumes its normal flow of execution.
The ISR starts from a fixed address of the program memory sometimes known as the interrupt vector address. Some microcontrollers with multi-interrupt features have just one interrupt vector address, while others have unique interrupt vector addresses, one for each interrupt source. Interrupts can be nested such that a new interrupt can suspend the execution of another interrupt. Another important feature of multi-interrupt capability is that different interrupt sources can be assigned different levels of priority. For example, the PIC18F series of microcontrollers has both low-priority and high-priority interrupt levels.
- 1.3.1 Supply Voltage
- 1.3.2 The Clock
- 1.3.3 Timers
- 1.3.4 Watchdog
- 1.3.5 Reset Input
- 1.3.6 Interrupts
- 1.3.7 Brown-out Detector
- 1.3.8 Analog-to-Digital Converter
- 1.3.9 Serial Input-Output
- 1.3.10 EEPROM Data Memory
- 1.3.11 LCD Drivers
- 1.3.12 Analog Comparator
- 1.3.13 Real-time Clock
- 1.3.14 Sleep Mode
- 1.3.15 Power-on Reset
- 1.3.16 Low-Power Operation
- 1.3.17 Current Sink/Source Capability
- 1.3.18 USB Interface
- 1.3.19 Motor Control Interface
- 1.3.20 CAN Interface
- 1.3.21 Ethernet Interface
- 1.3.22 ZigBee Interface
- 2.1.12 Interrupts
- 9.2.4. Traps, Exceptions, and Interrupts
- Chapter 10: Exceptions and Interrupts
- 10.2 What are Exceptions and Interrupts?
- 10.3 Applications of Exceptions and Interrupts
- 10.4 A Closer Look at Exceptions and Interrupts
- 10.4.1 Programmable Interrupt Controllers and External Interrupts
- 10.6 The Nature of Spurious Interrupts
- Interrupts
- 1.3.2 The Clock
- 1.3 Microcontroller Features
- 1.3.1 Supply Voltage