



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




To familiarize the student with the seven-segment LED display, and the process of converting one type of binary information to another (encoding/decoding). A good understanding of BCD (Binary Coded Decimal) should also result.
ECE 201 Lab Kit & Digi-Trainer Simulation Software
Improper connections to the seven-segment display can destroy it. Double check your connections before applying power.
The seven-segment LED (Light Emitting Diode) display is a common device in consumer electronics, from calculators to clocks to microwave ovens. In this lab, you will learn the basic principles of operation of the seven-segment display and the process of converting BCD values to the proper signals to drive this display. The display has seven separate bar-shaped LED's arranged as shown. In addition, many seven-segment displays have one (or two) circular LED used as a decimal point.
Figure 1. A Seven-Segment Display
Inside the seven-segment display, one end of each LED is connected to a common point. This common point is tied either to ground or to the positive supply, depending on the specific device. If your seven- segment display is designed to have the common connection tied to the positive supply, +5V, it is called a common anode configuration as shown below. To light these LED segments, the inputs must be a logic low.
Figure 2. Common Anode Seven-Segment Display Circuitry
To actually light up a single LED segment, a resistor must be added to limit the current through the LED.
This resistor is critical! If you connect the LED between +5V and ground without the resistor, the LED will momentarily glow bright and then never glow again. For this display use, a 220-Ω resistor as shown below.
Figure 3. Resistors used with a Common Anode Seven-Segment Display
Figure 6. Digi-Designer LED Wiring
Now consider how the ten decimal numerals can be formed using the seven-segment display. The figure below shows these digits 0 through 9.
Figure 7. Seven-Segment Display Decimal Representations
What we wish to do is input a BCD (4-bit) binary number to some combinational circuit which causes the appropriate segments of the display to light up. For example, if a 0000 is input to the circuit, all of the LED pins on the seven-segment display should go low (to light the segments) except the pin connected to the center (horizontal) LED. That is, segments a through f (See Figure 1.)
What we need to do now is determine the appropriate combinational circuit to light each segment. That is, the each segment is turned on by certain Boolean function. For example, segment a is lit for 0, 2, 3, 5, 6, 7, 8 and 9. Therefore the circuit must produce a logic zero for these numbers to light segment a. That is, it must produce a logic one for the numbers 1 and 4.
Remember that BCD numbers use only ten of the sixteen possible combinations of four bits (0-9).
since these inputs should never occur. The resulting symbol for these inputs should be whatever it takes to produce the least complicated circuit.
For the function of segment a , we have the following truth table. D C B A Fa D C B A Fa 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 0 0 1 0 0 0 1 0 0 1 0 1 0 X 0 0 1 1 0 1 0 1 1 X 0 1 0 0 1 1 1 0 0 X 0 1 0 1 0 1 1 0 1 X 0 1 1 0 0 1 1 1 0 X 0 1 1 1 0 1 1 1 1 X
we do not care what the output of the function is. Using Boolean algebra, we can write the minimum
Now, make up a truth table for all seven segments and find a function (MSOP) for each.
You need not make a separate truth table for each segment - just list the inputs once, and have seven output columns as shown below.
D C B A FA FB FC FD FE FF FG 0 0 0 0 0 0 0 0 0 0 1 ... ... 1 1 1 1 X X X X X X X
We need not build all of these individual circuits with separate IC’s, however, in order to use the seven-segment display. Because this function is so common to electronics, a single chip has been standardized to perform this conversion. This chip (which you have in your lab kit) is the 7447 and is called a BCD-to-seven-segment display. A block diagram for this chip is show below.
Remember to be very careful wiring this circuit, making sure that no resistor leads are shorted anywhere and that the power to the seven-segment display is connected to the correct pin. Do Not connect any pin of the common anode seven-segment display directly to ground! This will short out the segment forever. Likewise, do not connect any pin of the common cathode display to + 5 V or it to will be shorted out forever.
Check the six unused input combinations (1010 through 1111) and report which segments light up.
Does this match what you would expect from the seven equations you got for the decoder? If not, can you think of one reason why the output might not match your equations?