LAB Exercise (it we be done before the next lab class)
1. Write an AVR C program to monitor bit 5 of port
C. If it is HIGH, send 55H to Port B; otherwise,
send AAH to Port D.
2. A door sensor is connected to bit 1 of Port B,
and an LED is connected to bit 7 of Port C.
Write an AVR C program to monitor the door
sensor and, when it opens, turn on the LED.
3. The data pins of an LCD are connected to Port D.
The information is latched into the LCD, whenever
its Enable pin goes from LOW to HIGH to. The
enable pin is connected to pin 5 of Port B (6th pin).
Write a C program to send The “Am software
Engineering students" to this LCD.