Question: 1 - [ 2 . 5 Marks ] Which of the following will be true if the instruction NVIC _ Enable _ IRQO ( line#

1-[2.5 Marks] Which of the following will be true if the instruction NVIC_Enable_IRQO (line# 30) is removed? (Select all applicable)
a- Only the first interrupt will be executed and then the processor will operate infinitely in sleep mode;
b- PORTD Interrupt will be active since it is configured in line 7;
c- No interrupt will occur, and the microcontroller will operate infinitely in sleep mode;
d- None of the above
2-[12.5 Marks] Modify the above program in such a way that the variable "count" is incremented alternatively by 4 and 6(e.g., increment by 4, then by 6, then by 4, and so on...) each time a high to low transition occurs on PTD6 is done.
Provide your answer inside this box ONLY
void PORTD_IRQHandler(void){
// clear pending interrupts
NVIC_ClearPendingIRQ(TIMO_IRQn);
if ((PORTD->ISFR & MASK(SW_POS))){
}
// clear status flags
PORTD->ISFR =0xfffffff;; //clear interrupt flag register
 1-[2.5 Marks] Which of the following will be true if the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!