Lab_3_Seven Segment Displays
Lab_3_Seven Segment Displays
Please read through all the suggested reading before you come to lab.
SOFTWARES REQUIRED:
▪ MPLAB IDE
▪ Proteus
---------------------------------------------------------------------------------------------------------------------
University of Engineering and Technology, Lahore
INTRODUCTION:
SEVEN SEGMENT DISPLAY
A seven-segment display (abbreviation: "7-seg(ment)
display"), , is a form of electronic display device for
displaying decimal and hexadecimal numbers. Seven-
segment displays are widely used in digital clocks,
electronic meters, and other electronic devices for
displaying numerical information. A seven segment
display, as its name indicates, is composed of seven
elements. Individually on or off, they can be combined
to produce simplified representations of the numbers.
Use your solder less breadboard to make the connections between the seven-
segment LED and your PIC18F4550.
Task 3.1:
Find out the Hexadecimal combination of values you need to send to PORTD in
order to display the digits correctly, and complete the table below
PORTD Value
DIGIT
Hexadecimal Binary
0
1
2
3
4
5
6
7
8
9
University of Engineering and Technology, Lahore
Task 3.2:
Write a program to display digits from 0 to 9 with a delay on the seven segment
display attached to PORTD. Use the delay function provided below.
1. Simulate it on MPLab-IDE simulator and Proteus ISIS™
2. Implement the circuit on a bread-board and program the microcontroller
using a programmer device.