0% found this document useful (0 votes)
14 views2 pages

EE 106 - Lab Assignment 7

This lab focuses on analyzing a seven-segment display and designing a seven-segment decoder to display values from a 4-bit binary number. Students will create a truth table, simulate the decoder design, and test a physical circuit with a seven-segment display. The lab also includes discussions on the behavior of the display for values beyond 9 and considerations for displaying octal and decimal numbers.

Uploaded by

legen d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

EE 106 - Lab Assignment 7

This lab focuses on analyzing a seven-segment display and designing a seven-segment decoder to display values from a 4-bit binary number. Students will create a truth table, simulate the decoder design, and test a physical circuit with a seven-segment display. The lab also includes discussions on the behavior of the display for values beyond 9 and considerations for displaying octal and decimal numbers.

Uploaded by

legen d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab 7 – Seven-Segment Display and Decoder

EE 106 – Spring 2025

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

Figure 1: (Left): Seven-segment display. (Right): Seven-Segment Decoder.

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.

A 7-segment display will be either Common-Anode or Common-Cathode:

• 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.

A resistor is required to limit the current through each LED.

Image source: https://www.hnhcart.com/blogs/passive-components/everything-to-know-about-resistors

EE 106 – Spring 2025


Part 1: Design and Simulation of a 7-Segment Decoder

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.

Part 2: Seven-Segment Display with Decoder IC

For this part you will breadboard and test a seven-segment decoder and display circuit, as described in Figure 2.

Figure 2: Seven-segment display circuit.

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?

In your analysis or conclusions, include a discussion of the following:


• What was shown on the display for values 10 through 15? If your design from Part 1 was used for the
decoder instead, would you expect the same results? Why or why not? If not, what would you expect to see?
• If only octal digits were needed, how many inputs would be required? Could the decoder IC still be used for
octal digits? Why or why not?
• Say we wanted to display the value of binary numbers in the range from 010 to 9910 using two displays. Would
it be easier to design a circuit that displayed decimal numbers or hexadecimal numbers. Why?

EE 106 – Spring 2025

You might also like