4.8 LED Display
4.8 LED Display
UNIT NO 4
III V
20ESEC502
MICROPROCECSSORS AND MICROCONTROLLERS
20ESEC502
There are several technologies used to make these digit-oriented displays but we
are discussing only the two major types.
These are
light emitting diodes (LED) and
liquid-crystal displays (LCD).
The 7-segment type is the least expensive, most commonly used and easiest to interface with, so we
will concentrate on how to interface with this type.
20ESEC502
7-segment display, it is composed of 8 LEDs, 7 segments are arranged as a rectangle for symbol
displaying and there is an additional segment for decimal point displaying. In order to simplify
connecting, anodes and cathodes of all diodes are connected to the common pin so that there are
Common Anode displays.
Common Cathode displays.
Segments are marked with the letters from A to G, plus DP, as shown in the figure below. On
connecting, each diode is treated separately, which means that each must have its own current limiting
resistor.
.
20ESEC5021
7 – SEGMENT TYPES
There are two types of seven segment display available,
Common anode display and
Common cathode display
As far we know all the segments are LEDs. Basically LED have Anode & Cathode. In order to simplify
connecting, anodes and cathodes of all diodes are connected to the common pin.
❑In Common Anode display, anodes of the all LEDs are connected to Vcc, cathodes are connected
to microprocessor port pins via 8255.
❑In Common Cathode display, cathodes of the all LEDs are connected to Gnd, anodes are connected to
microprocessor port pins via 8255.
.
20ESEC502
7 – SEGMENT TYPES
COMMON CATHODE 1 ON
0 OFF
COMMON ANODE 0 ON
1 OFF
DISPLAY FORMAT
Let us consider Common Anode display to understand well, the following table represents the
connection format of the Common Anode display
D7 D6 D5 D4 D3 D2 D1 D0
DP G F E D C B A
.Logic ‘0' in the above format will turn ON that particular segment. Logic ‘1' will keep the segment OFF.
The data for turning ON the display is through 8255.
20ESEC502
.
20ESEC502
The 7447 converts a BCD code applied to its inputs to the pattern of lows required to display the
number represented by the BCD code. This circuit connection is referred to as a static display because
current is being passed through the display at all times.
Since the seven segment display works on negative logic, we will have to provide logic 0 to the
corresponding pin to make an LED glow. Table below shows the hex values used to display
the different digits.
DIGIT a b c d e f g HEX
Value
0 0 0 0 0 0 0 1 0x40
1 1 0 0 1 1 1 1 0xF9
2 0 0 1 0 0 1 0 0x24
3 0 0 0 0 1 1 0 0x30
4 1 0 0 1 1 0 0 0x19
5 0 1 0 0 1 0 0 0x12
6 0 1 0 0 0 0 0 0x02
7 0 0 0 1 1 1 1 0xF8
. 8 0 0 0 0 0 0 0 0x00
9 0 0 0 1 1 0 0 0x10