Concept Flow - Interrupt priority levels
Interrupt Occurs
Check Current CPU State
Compare Interrupt Priority
Preempt
Execute ISR
Return to Main or Lower ISR
When an interrupt happens, the CPU checks if its priority is higher than the current task. If yes, it pauses the current task and runs the interrupt. Otherwise, it waits.