Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i need assembly program with screenshot of output please 1. Write an assembly program that interfaces switches, SW1 and SW2, and LEDs, LED1 and LED2,
i need assembly program with screenshot of output please
1. Write an assembly program that interfaces switches, SW1 and SW2, and LEDs, LED1 and LED2, as follows (You should use interrupts for both switches) [50 pts] Initially, both the LEDs should be turned off. When SW2 is pressed for the first time, LED2 should be turned on. The next time SW2 is pressed, LED2 is turned off. The sequence continues hence each press changes the state of LED2. SW1 controls LED1 as follows: while SW1 is pressed, LED1 is on and when SW1 is released LED1 is turned off. Hint: Inside the ISR change the edge of P1IES to trigger the ISR as required a. b. cStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started