Question: 8. Consider a push button switch SWO connected to pin INTO external interrupts of an ATMegas AVR. 8 LEDS are connected to port PBO PB7

 8. Consider a push button switch SWO connected to pin INTO

8. Consider a push button switch SWO connected to pin INTO external interrupts of an ATMegas AVR. 8 LEDS are connected to port PBO PB7 on the same AVR. These LEDS are connected such a lit LED displays that the output port is on logic level 1. On start-up, TASK1 is executed and continue indefinitely. If the push-button switch SWO is pressed, TASKI is paused and TASK2 is carried out after which TASK1 is resumed TASKI- A roll action is performed using the LEDs: The first LED is lit and roll down to the last LED then back to the first LED. This operation is done indefinitely TASK2- ALL the LEDs blink five (5) times. Write a complete C program that implements the desired tasks

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!