Interupts

An alternative to pooling. Allows the CPU to run a routine when an external device sends an interrupt request. The CPU will return to the normal program after the interrupt is executed.

Microcontrolers usually have designated interrupt pins.

When an interrupt is triggered, the interrupt handler adds the interrupt to a cue for execution.

All interrupts can be enabled/disabled by the global interrupt (for atmega32A).

AtMega32A Interrupts


Backlinks