BCD To 7-Segment Decoder (1) - 2
BCD To 7-Segment Decoder (1) - 2
Submitted by:
Supervised by:
Summer 2022
1
Table of contents
No Topic Page no
1 Introduction 4
2 Simulation 7
3 Result and discussion 13
4 Summary 18
2
Abstract
3
1 . Introduction
A digital system like computer can understand and easily read a large
binary number in binary format. However, a human cannot read large
numbers. To solve this problem we need to display it as a decimal digit
using 7- segment display.
LCD and LED segments provide the display output of numerical numbers
and characters. However to display the characters and numbers ( in order to
produce the decimal readout). A display decoder is used to convert a binary
code in to a seven segment code. It generally has four input lines and seven
output lines.
4
The key components are 7-segment display and 7-segment decoder
(CD4511 chip). Making this project you need to assemble the following
materials button, seven segment display (common cathode), CD4511 chips,
resistors and jumpers.
5
Simulation steps that we follow are analysis of the common cathode seven-
segment display, constructing truth table and drawing combinational logic
circuit.
Digits A B C D
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
f b
e c
6
d
Seven segment displays contains 7 LED segments arranged in a shape given
figure above. There are 8 input pins in a seven segment display, 7 input pins
for each of the 7 LEDs and one pin for the common terminal.
2. Simulation study
7
BCD to seven segment display decoder simulated in the following steps
Step1: the first step of the design involves analysis of the common cathode
7-segment display. A 7-segment display consist of an arrangement of LEDs
in an ‘H’ form. A truth table is constructed with the combination of inputs
for each decimal number. For example decimal number 1 would command a
combination of b and c (refer the diagram given below).
7 segment LED
Step 2: the second step involves constructing the truth table listing the seven
display input signals, decimal number and corresponding 4 digit binary
numbers.
The truth table for the decoder design depend on the seven type of
7-segment display. As we mentioned above that for common cathode
seven-segment display, the output of decoder or segment driver must be
active high in order to glow the segment.
8
The figure below shows the truth table of a BCD to seven-segment decoder
with common cathode display. In the truth table, there are seven different
output columns corresponding to each of the seven segments.
Suppose the column for segment a shows the different combinations for
which it is to be illuminated. So ‘a’ is active for the digits 0, 2, 3, 5, 7, 8 and
9.
From the above truth table, the Boolean expression of each function can be
written as
c = F3 (A, B, C, D) = ∑m (0, 1, 3, 4, 5, 6, 7, 8, 9)
9
d = F4(A, B, C, D) = ∑m (0, 2, 3, 5, 6, 8)
e = F5 (A, B, C, D) = ∑m (0, 2, 6, 8)
f = F6 (A, B, C, D) = ∑m (0, 4, 5, 6, 8, 9)
g = F7 (A, B, C, D) = ∑m (2, 3, 4, 5, 6, 8, 9)
Step3: The third step involves constructing the karnoughs map for each
output term and then simplifying them to obtain a logic combination of
inputs for each output.
K-Map simplification
The below figures shows the k-map simplification for the common cathode
seven segment decoder in order to design the combinational circuit.
10
From the above simplification, we get the output values as
1 . a=A + C + BD + BD
2 . b= B + CD + CD
3.c=B+C+D
4 . d = BD + CD + BCD + BC+A
5 . e = BD + CD
6 . f= A + CD + BC + BD
7 . g= BC + CD + BC + BC + A
Step4: the final step involves drawing a combinational logic circuit for each
output signal. Once the task was accomplished, a combinational logic circuit
11
can be drawn using 4 inputs (A, B, C, D) and a 7- segment display (a, b, c,
d) as output.
A B C D
The circuit operation can be understood through the truth table itself. When
all the inputs are connected to low logic, the output of the combinational
logic circuit would be so as to drive all the output LEDs except ‘g’ to
conduction. Thus the number 0 will be displayed. Similar operation would
take place for all other combinations of the input switches.
12
digit A B C D a b c d e f g
0 0 0 0 0 1 1 1 1 1 1 0
1 0 0 0 1 0 1 1 0 0 0 0
2 0 0 1 0 1 1 0 1 1 0 1
3 0 0 1 1 1 1 1 1 0 0 1
4 0 1 0 0 0 1 1 0 0 1 1
5 0 1 0 1 1 0 1 1 0 1 1
6 0 1 1 0 1 0 1 1 1 1 1
7 0 1 1 1 1 1 1 0 0 0 0
8 1 0 0 0 1 1 1 1 1 1 1
9 1 0 0 1 1 1 1 1 0 1 1
For combination where all the inputs (A, B, C and D) are zero(truth table),
our output lines are a= 1, b= 1, c=1, d=1, e=1, f=1 and g=0. So seven
segment display shows ‘Zero’ as output.
Similarly for combination where one of the input is one( D=1) and rest are
zero, our output lines are a=0, b=1, c=1, d=0, e=0, f=0 and g= 0. So only
LEDs ‘b’ and ‘c’ (see diagram above) will glow and 7-segment display
shows “one” as output.
13
To display the digit 2 we need to turn on the segments a, b, d, e, g. and turn
off the LED segments c, f.
To display the digit 4 we need to turn on the segments b, c, f, g. and turn off
the LED segments a, d, e.
14
To display the digit 5 we need to turn on the segments a, b, c, d, f, g. and
turn off the LED segments b, e.
To display the digit 7 we need to turn on the segments a, b, c. and turn off
the LED segments d, e, f, g.
15
To display the digit 8 we need to turn on all the segments .
16
4 . Summary
It is not the best solution to output changing numbers for application such
as counters. It is possible to display the decimal value of a binary number on
a 7-segment display using a BCD decoder. However, this method will allow
displaying only digits from 0 to 9 and letters A to F. In the case of the
decoder circuit any binary numbers between 1010 through 1111( A to F) is
an invalid input and would provide distorted shapes on the LCD display.
17
Reference
www.thelearningpit.com
Electronic tutorial books
Integrated electronics book
Digital electronics book
Basic electrical book
tolotra.com
Nexperia website
https://www.electronicshub.org/bcd-7-segment-led-display-
decoder-circuit/
https://tolotra.com/2018/04/11/lab-report-on-binary-coded-
decimal-bcd-to-a-7-segment-decoder/
18