Bird
0
0

What happens if you call NVIC_DisableIRQ(7); in your ARM Cortex-M program?

medium📝 Analysis Q5 of 15
ARM Architecture - Exception and Interrupt Model
What happens if you call NVIC_DisableIRQ(7); in your ARM Cortex-M program?
AInterrupt number 7 is disabled and will not trigger
BAll interrupts are disabled
CInterrupt number 7 priority is set to highest
DInterrupt number 7 is enabled
Step-by-Step Solution
Solution:
  1. Step 1: Understand NVIC_DisableIRQ function

    This function disables the specified interrupt number, preventing it from triggering.
  2. Step 2: Apply to IRQ number 7

    Calling NVIC_DisableIRQ(7) disables interrupt number 7 only.
  3. Final Answer:

    Interrupt number 7 is disabled and will not trigger -> Option A
  4. Quick Check:

    NVIC_DisableIRQ disables specified IRQ only [OK]
Quick Trick: DisableIRQ disables only the given interrupt number [OK]
Common Mistakes:
  • Thinking it disables all interrupts
  • Confusing disable with enable

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes