Interrupt Service Routine
Interrupt Service Routine
ISR
How interrupts are handled is dependent on both the
1. The Interrupt 2. The ISR
hardware
occursand
while the Real-Time
runs and Operating System (RTOS). A
An ISR (also called an interrupt handler) takes its priority Figure 2. The Deferred Processing Model
from that of the interrupt. Priorities Time assigned to interrupts are
entirely separate from priorities assigned to Tasks; ISRs will
pre-empt any running Task.
3. The ISR handles the interrupt,
and activates Task 2, which has
4. Task 2 completes processing
requested by the interrupt, and enters
higher priority than Task 1. the Blocked state until triggered by the
Interrupts are now enabled again. ISR again. Task 1 resumes.