0% found this document useful (0 votes)
35 views1 page

Lab Demo

Uploaded by

Yohannes Dereje
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Lab Demo

Uploaded by

Yohannes Dereje
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

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.

You might also like