(Solved) : Q1 Write C Programs Demonstrate Code Atmega328p Xplained Mini Kit Performs Following Funct Q44113930 . . .

• Q1. Write down C programs and demonstrate the code for your ATmega328P XPlained mini kit so that it performs the following functions: (A) Initiate 2 switches SW1 and SW2 as input and 8 LEDs of port D as output. Write down the code to set up the blinking frequency of the 3rd LED to 3Hz and rest of the LEDs should be turned off. (B) Extend the Task A so that blinking frequency of LED will be increased by 1 Hz if the switch SW1 is pressed and blinking frequency will be decreased by 1Hz if the switch SW2 is pressed. (C) Modify code to change the position of the blinking LED if both SW1 and SW2 switches are pressed at a time. The position of the blinking LED should go left to right initially. After it goes to gth position the direction will be reversed. Once it goes to 1st position the direction will be reversed again. The process will be repeated. The position of the LED will be changed as in the Table. (D) Implement this task using both non-debounced and debounced switch. Show transcribed image text • Q1. Write down C programs and demonstrate the code for your ATmega328P XPlained mini kit so that it performs the following functions: (A) Initiate 2 switches SW1 and SW2 as input and 8 LEDs of port D as output. Write down the code to set up the blinking frequency of the 3rd LED to 3Hz and rest of the LEDs should be turned off. (B) Extend the Task A so that blinking frequency of LED will be increased by 1 Hz if the switch SW1 is pressed and blinking frequency will be decreased by 1Hz if the switch SW2 is pressed. (C) Modify code to change the position of the blinking LED if both SW1 and SW2 switches are pressed at a time. The position of the blinking LED should go left to right initially. After it goes to gth position the direction will be reversed. Once it goes to 1st position the direction will be reversed again. The process will be repeated. The position of the LED will be changed as in the Table. (D) Implement this task using both non-debounced and debounced switch.
Expert Answer
Answer to • Q1. Write down C programs and demonstrate the code for your ATmega328P XPlained mini kit so that it performs the fol…
OR