Concept Flow - NVIC advanced features
Interrupt Request
NVIC Receives IRQ
Check Priority Grouping
Determine Preemption Priority
Determine Subpriority
Check Pending and Enable Flags
Preempt Lower Priority Interrupt?
Yes→Switch Context
Execute ISR
Execute ISR if Enabled
Clear Pending Flag
Return to Main Program
This flow shows how NVIC handles interrupts using priority grouping, preemption, and subpriority to decide which interrupt to execute.
