Bird
0
0

Given the following code snippet, what is the priority level set for IRQ number 3?

medium📝 Analysis Q4 of 15
ARM Architecture - Exception and Interrupt Model
Given the following code snippet, what is the priority level set for IRQ number 3?
NVIC_SetPriority(3, 1);
APriority level 0
BPriority level 3
CPriority level 1
DPriority level 2
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the NVIC_SetPriority function parameters

    The first parameter is the IRQ number (3), the second is the priority level (1).
  2. Step 2: Identify the priority assigned

    The code sets priority level 1 for IRQ number 3.
  3. Final Answer:

    Priority level 1 -> Option C
  4. Quick Check:

    NVIC_SetPriority IRQ 3 = Priority 1 [OK]
Quick Trick: Second argument in NVIC_SetPriority is the priority level [OK]
Common Mistakes:
  • Confusing IRQ number with priority
  • Assuming priority starts at 0 always

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More ARM Architecture Quizzes