Question: Question 6 - Interrupt handling gone wrong ( 8 pts ) In class, we have discussed the ultimate ISR as an homage to Claude Shannon's

Question 6- Interrupt handling gone wrong (8 pts)
In class, we have discussed the ultimate ISR as an homage to Claude Shannon's ultimate machine: The ultimate ISR does nothing except clearing the interrupt flag. Below is an ultimate ISR that serves push buttons S1 and S2. You can assume that the IVT has been correctly populated.
```
Ultimate_ISR:
check_S1: ; Confirm the source of the interrupt
bit.b #BIT1, &P1IFG
jnc check_S2
; Do nothing, just clear the interrupt flag for S1
bic.b #BIT1, &P1IFG
check_S2: ; Confirm the source of the interrupt
bit.b #BIT2, &P1IFG
jnc ret_from_ISR
; Do nothing, just clear the interrupt flag for S2
bic.b #BIT2, &P1IFG
ret_from_ISR:
ret
```
What will happen when you press push button S2?
Give a short but precise answer that explains what happens at the register level. This will be text entry in Carmen. One sentence suffices.
Question 6 - Interrupt handling gone wrong ( 8

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 Electrical Engineering Questions!