What does the priority grouping in NVIC control?
Think about how NVIC decides which interrupt is more important when multiple occur.
Priority grouping splits the priority bits into pre-emption priority and subpriority bits. Pre-emption priority decides if an interrupt can interrupt another, while subpriority decides order when priorities are equal.
Which NVIC register is used to enable a specific interrupt?
Look for the register that sets bits to enable interrupts.
The NVIC_ISER register is used to enable interrupts by setting bits corresponding to interrupt numbers.
Given two interrupts with different pre-emption priorities, what happens when both occur simultaneously?
Consider how NVIC prioritizes interrupts based on priority levels.
NVIC uses pre-emption priority to decide which interrupt can interrupt another. The higher priority interrupt runs first and can pre-empt the lower priority one.
Which feature distinguishes the NVIC from traditional interrupt controllers?
Think about how NVIC improves interrupt handling efficiency.
NVIC provides hardware support for nested interrupts and flexible priority levels, allowing interrupts to pre-empt others efficiently.
If all interrupts are configured with the same pre-emption priority but different subpriorities, what is the effect on interrupt handling?
Recall the role of pre-emption priority versus subpriority in NVIC.
When pre-emption priorities are equal, no interrupt can pre-empt another. Subpriority only affects the order of pending interrupts but not pre-emption.