Question: You have AVR ATmega 16 microcontroller, one yellow LED and one bicolor LED. Write a program to make the bicolor LED start out red for

 You have AVR ATmega 16 microcontroller, one yellow LED and one

You have AVR ATmega 16 microcontroller, one yellow LED and one bicolor LED. Write a program to make the bicolor LED start out red for 3 seconds (connected at I/O pin PB0 ). After 3 seconds, change the bicolor LED to green (connected at I/O pin PB1). When the bicolor LED changes to green, flash the yellow LED (connected at I/O pin PB2) on and off once every second for ten seconds. When the yellow LED is done flashing, the bicolor LED should swing between the two colors blinking at a delay of 1Sec for 20 times and then stops. Draw the schematic diagram for the circuit

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!