Question: Question 6: (10 points) 25 % this function using Interrupt with priority 2 for $1 5p a- 4P (CLO1: 20% CLO2 40% CLO4 40%) A

Question 6: (10 points) 25 % this function using Interrupt with priority 2 for $1 5p a- 4P (CLO1: 20% CLO2 40% CLO4 40%) A pushbutton on RB7 is pressed, then released, then pressed, then released; assume no switch bounce. What is the value of INTOIP. Put your answer in the given table. A-1 seconds after first press B-2 seconds after first release C-5 seconds after the second press D-3 seconds after the second release void ISR_INTOInterrupt(void) { INTOIF = 0; ++_INTOIP; } nt main(void) { J/ Config code (not shown) Makes RB7 a digital input with pullups enabled. INTOIP Case B C D INTOIF -0: _INTOIP - 1: _INTOLE - 11 INTOEP 0; // Rising edge. while (1) 1/ Do nothing b- Repeat your answer ir _INTEP - 1 Determin 2p
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
