Lab 03
Lab 03
EEE-342
Lab Report 3
Class BEE-5C
Softwares Used:
• AVR Studio/ Microchip Studio
• Proteus ISIS
• AVRDUDESS
Pre-Lab:
Seven Segment Display: A seven-segment display is a set of seven
barshaped LEDs (light-emitting diodes) arranged to form a squared-off
figure 8. If all LEDs are activated, the display shows a numeral 8.
When some of the elements are activated but not others, any single-
digit numeral from 0 to 9 is shown. Every LED is assigned a name
from 'a' to 'h' and is identified by its name. Seven LEDs 'a' to 'g' are
used to display the numerals while eighth LED 'h' is used to display
the dot/decimal.
In-Lab Tasks:
Task 1:
a. Implement Pre-lab task on hardware to test all segments of a 7-Segment display.
b. b. Use DMM to test the 7-segment display and identify whether it is a common
cathode or common anode (Lab instructor should explain the method of testing a 7-
segment with
DMM).
Task 2/ Post-Lab:
Critical Analysis:
In this lab experiment I got to know about 7 Segment Display, its important features and
pins configurations. We connected common Anode 7-Segment with PORT D, PORT C and
Port B. AVR code was written and implemented. Firstly, if we wanted to use Tx and Rx pins
as output we had to disable them by 2 lines code provided to us in lab manual(BUT SIR AS
YOU SAID IT WORK WITHOUT IT SO WE DIDN’T USE IT ). While displaying the
counter we were provided with an array which we had to modify by filling the look up table
given above. In Proteus simulation we observed counter changing upon which resultant
segment displayed the digits. Hardware was implemented using ATmega328P by burning
code in Arduino uno. 7 segment was connected to by 5 Volts and connect the 7 seg two
display to respectively pin of port A,B and Port D of Arduino UNO/Nano.