Bird
0
0

Which of the following is the correct way to enable an interrupt using NVIC in ARM Cortex-M?

easy📝 Factual Q12 of 15
ARM Architecture - Exception and Interrupt Model
Which of the following is the correct way to enable an interrupt using NVIC in ARM Cortex-M?
ANVIC_SetPriority(IRQn, priority);
BNVIC_DisableIRQ(IRQn);
CNVIC_EnableIRQ(IRQn);
DNVIC_ClearPendingIRQ(IRQn);
Step-by-Step Solution
Solution:
  1. Step 1: Identify function purpose

    NVIC_EnableIRQ is used to enable a specific interrupt request (IRQ).
  2. Step 2: Compare other options

    NVIC_DisableIRQ disables interrupts, NVIC_SetPriority sets priority, NVIC_ClearPendingIRQ clears pending interrupts.
  3. Final Answer:

    NVIC_EnableIRQ(IRQn); -> Option C
  4. Quick Check:

    Enable interrupt function = NVIC_EnableIRQ [OK]
Quick Trick: Enable interrupts with NVIC_EnableIRQ function [OK]
Common Mistakes:
  • Confusing enable with disable functions
  • Mixing priority setting with enabling
  • Using clear pending instead of enable

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes