ARM Architecture - Exception and Interrupt ModelWhich 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);Check Answer
Step-by-Step SolutionSolution:Step 1: Identify function purposeNVIC_EnableIRQ is used to enable a specific interrupt request (IRQ).Step 2: Compare other optionsNVIC_DisableIRQ disables interrupts, NVIC_SetPriority sets priority, NVIC_ClearPendingIRQ clears pending interrupts.Final Answer:NVIC_EnableIRQ(IRQn); -> Option CQuick Check:Enable interrupt function = NVIC_EnableIRQ [OK]Quick Trick: Enable interrupts with NVIC_EnableIRQ function [OK]Common Mistakes:Confusing enable with disable functionsMixing priority setting with enablingUsing clear pending instead of enable
Master "Exception and Interrupt Model" in ARM Architecture9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More ARM Architecture Quizzes Bus Architecture - Peripheral clock enable - Quiz 4medium Bus Architecture - DMA controller on bus - Quiz 7medium Control Flow Instructions - Loop implementation in assembly - Quiz 4medium Exception and Interrupt Model - Why exceptions handle hardware events - Quiz 12easy Exception and Interrupt Model - Vector table structure - Quiz 6medium Power Modes - Deep sleep mode - Quiz 7medium Power Modes - Clock gating for power saving - Quiz 12easy Power Modes - Low-power design strategies - Quiz 7medium Subroutines and Stack - Why subroutines enable modular assembly code - Quiz 14medium Subroutines and Stack - Nested subroutine calls - Quiz 6medium