7 Segment Decoder Report
7 Segment Decoder Report
Objective:
The objective of this project is to design and implement a 7-segment decoder that
can convert binary-coded decimal (BCD) inputs into a readable numerical
display, accurately rendering the numbers 0 to 9 on a 7-segment LED. This
project is intended to deepen understanding of digital-to-visual conversions in
electronics, with a focus on displaying binary information in an intuitive and
accessible format. The decoder will act as a bridge, transforming digital data into
visual representation, which is essential in devices where numerical displays play
a central role, such as in digital clocks, calculators, and measurement
instruments.
Circuit diagram:
At the core of the 7-segment decoder is its function to translate a 4-bit binary
input, usually in Binary-Coded Decimal (BCD) format, into a pattern that
activates specific segments of the display. A 4-bit BCD code represents the
decimal numbers 0 through 9 using binary digits. Each BCD input corresponds to
one decimal digit and has a unique combination of activated segments that form
the number visually on the display.
For example:
From this truth table, Boolean expressions for each segment (a, b, c, d, e, f, g)
can be derived. These expressions identify which binary conditions will result in
a segment being on (1) or off (0). For example, the Boolean expression for
segment "a" might involve a combination of BCD input variables in expressions
like a = (A AND NOT B) OR (B AND C). Each segment’s expression is
simplified using Boolean algebra to minimize the required logic gates and
optimize circuit design.
3. Logic Gate Implementation of the Decoder
The Boolean expressions derived for each segment can be implemented using
basic logic gates (AND, OR, NOT) to build the decoder circuit. This decoder
circuit is responsible for interpreting the BCD inputs and activating the
appropriate segments. The combination of gates ensures that the correct segments
light up according to the BCD input, accurately displaying the desired numeral
on the 7-segment display.
The choice of display type dictates the output polarity of the decoder. Therefore,
when designing or selecting a 7-segment decoder IC, it’s essential to ensure
compatibility with the display type being used.
Once the decoder circuit is complete, it undergoes testing to confirm that each
BCD input from 0000 to 1001 produces the correct visual display:
Testing Procedure: Each BCD input is applied sequentially, and the output
display is observed. The segments should light up to form each number
accurately.
Verification: If any discrepancy occurs, the circuit must be checked for
errors in Boolean expressions, logic gate connections, or wiring.
Digital Clocks: The decoder helps display time by converting binary time
data into a readable format.
Counters and Timers: Used in laboratories and industrial applications to
show count values.
Calculators: A 7-segment decoder allows calculators to display numerical
results.
Results:
1. Input-Output Accuracy: The decoder was tested for all BCD inputs from
0000 (0 in decimal) to 1001 (9 in decimal), which represent the decimal
range 0-9. Each input resulted in the precise activation of segments required
to display the correct number. For each test input, the segments displayed
as expected based on the truth table and Boolean logic designed for each
segment.
Examples:
o BCD Input 0000 (Decimal 0): All segments except segment g were
illuminated (segments a, b, c, d, e, and f) to display the number “0.”
o BCD Input 0100 (Decimal 4): Only segments b, c, f, and g were
illuminated to display the number “4.”
o BCD Input 1001 (Decimal 9): Segments a, b, c, f, and g were
illuminated to display the number “9.”
Each BCD input produced the expected display output, verifying the
accuracy of the Boolean logic implemented in the decoder circuit.
The results showed the decoder worked accurately with both display types,
with only minor adjustments in output polarity required. This compatibility
demonstrates the decoder’s versatility, as it can be integrated into systems
with either type of display.
Observation Table
BCD Input (Binary) Activated Segments Displayed Number
0000 a, b, c, d, e, f 0
0001 b, c 1
0010 a, b, d, e, g 2
0011 a, b, c, d, g 3
0100 b, c, f, g 4
0101 a, c, d, f, g 5
0110 a, c, d, e, f, g 6
0111 a, b, c 7
1000 a, b, c, d, e, f, g 8
1001 a, b, c, f, g 9
This table verifies that each BCD input results in the correct segments being
illuminated, forming the desired decimal digits on the display.
Additional Observations
Conclusion
Hardware picture: