EE 106 - Lab Assignment 7
EE 106 - Lab Assignment 7
In this lab you will analyze a seven-segment display and the design of a seven-segment decoder. You will simulate a
decoder design and test a physical circuit using a 7-segment display and decoder IC to show the values from a 4-bit
binary number.
Background Information
A seven-segment LED display (Figure 1) is an arrangement of light-emitting diodes (LEDs). Turning on specific LEDs
allows the display of numbers or letters. To show the decimal value of a binary number, the number must be
decoded to provide the correct signals for each LED segment a through g. The diagram at right in Figure-1 shows a
seven-segment decoder. A binary number made up of input signals D, C, B, A is converted to a set of output signals a
through g to turn the correct LEDs on or off.
• If common-anode, the common anode pin connects to VCC. The segments are active-LOW: a ‘0’ turns an LED
on, a ‘1’ turns it off.
• If common-cathode, the common-cathode pin connects to GND. The segments are active-HIGH: a ‘1’ turns an
LED on, a ‘0’ turns it off.
A seven-segment decoder/driver will have active-LOW or active-HIGH outputs. If active-LOW, the decoder works
with common-anode displays. If active-HIGH, the decoder works with common-cathode displays.
Develop a 7-segment decoder design using a truth table. The table will have four inputs D, C, B, A representing a 4-bit
binary number (A is least significant bit). The table will have 7 outputs (a, b, c, d, e, f, g) – one for each segment of a
7-segment display.
1. Assume active-HIGH outputs for the driver. Complete the truth table by filling in the output values on the
table to turn on the correct LED segments for each input combination. Since we are only concerned with
values 0 through 9, all output values for 10 through 15 will be don’t-cares.
2. Determine a minimum sum-of-products (SOP) equation for the ‘a’ segment using a K-map.
3. Using the “Digital” simulator, enter your truth table values to produce equations and a circuit. Record the
resulting equations.
4. Connect the outputs to a seven-segment display component. Connect the decimal point (dp) to ground.
Simulate the circuit, testing each input combination and record your results. Compare to expected results.
For this part you will breadboard and test a seven-segment decoder and display circuit, as described in Figure 2.
1. Determine which decoder and 7-segment display parts you have. They may be active-LOW or active-HIGH.
2. Connect the circuit in Figure 2 on the Proto-board. Use resister values between around 200 ~ 250 Ω.
a. If 74LS47 decoder: Connect ̅𝐿𝑇
̅̅̅, ̅̅̅ ̅̅̅̅̅̅, and ̅̅̅̅̅
𝐵𝐼 /𝑅𝐵𝑂 𝑅𝐵𝐼 to +5 V.
̅̅̅̅ ̅̅̅̅
b. If CD4511B decoder: Connect 𝐿𝑇 and 𝐵𝐿 to +5 V, connect 𝐿𝐸/𝑆𝑇𝑅𝑂𝐵𝐸 ̅̅̅̅̅̅̅̅̅̅̅ to GND.
3. Run a test of numbers 0 through 9. Remember to record all your measurements.
4. Try the rest of the values (10 through 15). Does the display show anything?