What does NVIC stand for and what is its primary role in ARM Cortex-M processors?
NVIC stands for Nested Vectored Interrupt Controller. Its primary role is to manage interrupts and exceptions efficiently, allowing the processor to respond quickly to events.
Click to reveal answer
intermediate
Explain the concept of interrupt priority grouping in NVIC.
Interrupt priority grouping allows dividing the priority field into group priority and subpriority. This helps decide which interrupt to serve first and how to handle interrupts of the same group priority.
Click to reveal answer
intermediate
What is tail-chaining in NVIC and why is it useful?
Tail-chaining is a feature where the NVIC automatically switches to the next pending interrupt without restoring the context of the previous interrupt. This reduces latency and speeds up interrupt handling.
Click to reveal answer
advanced
Describe the concept of late-arriving interrupt in NVIC.
A late-arriving interrupt occurs when a higher priority interrupt arrives while the processor is finishing a lower priority interrupt. NVIC can preempt the current interrupt to handle the higher priority one immediately.
Click to reveal answer
beginner
How does NVIC support dynamic interrupt enabling and disabling?
NVIC allows software to enable or disable interrupts dynamically by setting or clearing bits in specific registers. This helps control which interrupts are active at any time.
Click to reveal answer
What feature of NVIC allows it to handle multiple interrupts efficiently by automatically switching without restoring context?
ALate-arriving interrupt
BPriority grouping
CTail-chaining
DDynamic enabling
✗ Incorrect
Tail-chaining lets NVIC switch to the next interrupt quickly without restoring the previous context, improving efficiency.
In NVIC, what does interrupt priority grouping help to determine?
AThe total number of interrupts supported
BThe order of interrupt servicing and subpriority handling
CThe clock speed of the processor
DThe memory size for interrupt vectors
✗ Incorrect
Priority grouping divides priorities into groups and subpriorities to decide interrupt order and handling.
What happens during a late-arriving interrupt in NVIC?
AA higher priority interrupt preempts the current one
BThe current interrupt finishes before the new one starts