Interfacing 7-segment display using 7447 decoder

Monday, August 17th, 2009

The Light Emitting Diode (LED), finds its place in many applications in this modern electronic fields. One of them is the Seven Segment Display. Seven-segment displays contains the arrangement of the LEDs in “Eight” (8) passion, and a Dot (.) with a common electrode, lead (Anode or Cathode). The purpose of arranging it in that passion is that we can make any number out of that by switching ON and OFF the particular LED‟s. Here is the block diagram of the Seven Segment LED arrangement. Pin configuration of a seven segment display:

LED’s are basically of two types:
1. 2. Common Cathode (CC) All the 8 anode legs uses only one cathode, which is common. Common Anode (CA) The common leg for all the cathode is of Anode type.

For the discussion purpose, we use CC LED, where by just reversing the logical voltages we can implement the same for CA LED also. In a CC LED, all the 8 legs („a‟ through „h‟) are of anode type and the common cathode will be connected to the GND of the supply. By energizing any of the legs with +5 Volts will lead to switch the correspondent segment ON. In the microprocessor binary system, 0Volts will be considered as Binary 0, and 5Volts will be considered as Binary1. Considering these two condition, we can make an arrangement as the microcontroller gives OUT the 0s and 1s through its ports, which is connected to the 8 legs of the LED. Of course, we can control the Port Output; implicitly we can Switch-ON required legs of the display. There 2 methods of interfacing LED with the Microcontroller Intel 8051/8951.
1. 2. Using lookup table. This uses 7 output pins of microcontroller Using 7447 decoder. This method uses 4 output pins of microcontroller

The difference between the two main methods is simple and clear. In both the cases, microcontroller communicates with external world through its ports. But, in the 1st case, we connect all the 8 pins of the port directly to the LED and control the voltage through the ports manually to display the desired number. But, in the second case, we send the BCD of the number that we wanted to display to a middleware IC 7447, the BCD to LED code converter, which by itself gives out the correspondent 7 segment codes to the LED. Here we explain using lookup table. Click here for the method “using 7447 decoder” Using 7447 decoder:

the IC7447 takes the Binary Coded Decimal (BCD) as the input and outputs the relevant 7 segment code. Te circuit diagrams are shown below. Circuit diagram for interfacing Common Anode 7-Segment Display Circuit diagram for Common Cathode 7-Segment Display . the first figure is interfacing the CA LED where as the second is of CC LED.The IC7447 is a BCD to 7-segment pattern converter. We connect first four pins of the microcontroller Port 2 to the 7447 and the Output 8 pins of 7447 to the 8 legs of the LED as shown in the figure. The 7447 converts the four input bits (BCD) to their corresponding 7segment codes. The outputs of the 7447 are connected to the 7-segment display. This setup is the advanced form of the <previous> setup where we entered the patterns manually to display the desired character. The number required to display is sent as the lower nibble of the Port 2 of the Microcontroller. Here in this case.

963 .:3 : 6. 769.:. 096065. 1:91 54/9  . 769.-0 %8:8084:95:9538412.5.3      &8344:59.9  0 / .  973.963395.5:536627.  5 ..6 1:73.61:510619 :510619 .  .4/07 %82094/:8084:95:9538412.96 ...4397407 ' 1950 /.36931.96339 064450..:769. .4397407 &83/0.61:65.: .. 4113.33.1:73.1 .:   :51 .05.: 4.74..6 4..6 .  6 . 54/9 . 190.0..9.95.6  061 0659.  '94.061:.75:6.6. .96.  . .51 065.9  5 /6. .  :45.: 06550.33 .:. :0651 0.5.4.3 .51 03.74."!98913:6.61: : :473 . 0699:76515. .5 ./3 302969.6 .::  4096065. 5. 63.6 1:73. .  . 0.5 4.9    .

':..6.

6..6.5..961104.1.9:.96339#69.7 9  5.0.. ..51.:45../.95: 4..9 '090..1. 3:6.. 1:91 0.9  9 5 .4096065.5.9:5.: 0.3695//3 6.7.:.4:."...:.6975:6.:45.9:65/36 .:0651:6 '54/99891.5.:.:  .7:.61:73.5016946.9.33 . .93.2:..9.96339 '0659.05 .:.57.90699:76515.6957.6.:  .7.7.9 '::.796: :.3  .91 .75:6.::5.516. 096065. 7.9.::655.:.061  06550.6.#69.9:.950659.6 1:73.9.

.6.1.061: '6.906550.7.. :45.:6.

4695.0564465561.1.   90.9.:45.1:73.9.

46964465.:73..1.61.&45. 90.9.

  .&45.:73.

Sign up to vote on this title
UsefulNot useful