Concept Flow - NVIC (Nested Vectored Interrupt Controller)
Interrupt Occurs
Is Interrupt Enabled?
No→Ignore Interrupt
Yes
NVIC Checks Priority
Save Current Context
Jump to Interrupt Handler
Execute Handler
Restore Context
Return to Main Program
When an interrupt occurs, NVIC checks if it is enabled and its priority, then saves the current state, runs the interrupt handler, and finally restores the state to continue the main program.