Professional Documents
Culture Documents
Experiment No. 10
STUDY OF LINE DECODER
OBJECTIVE
To check the operation of 2-to-4 line Decoder and 3-to-8 line Decoder. Design a Binary
Code Decimal to the seven segment decoder.
EQUIPMENT
ePAL Trainer Board
2 resisters 1K ohm
Connecting wires
COMPONENTs
IC Type 7408 Quadruple 2-input AND gates
IC Type 7404 Hex Inverters
IC Type 7446/7447 BCD-to-Seven segment decoder/driver
Seven Segment Display
THEORY
The name “Decoder” means to translate or decode coded information from one format into
another, so a binary decoder transforms “n” binary input signals into an equivalent code using
2n outputs.
A decoder is a logic circuit that accepts a set of inputs that represents a binary number and
activates only the output that corresponds to that input number. In other words, a decoder circuit
looks at its inputs, determines which binary number is present there, and activates the one output
that corresponds to that number; all other outputs remain inactive.
Decoder can be referred to in several ways. For example 3-to-8 line decoder means that it has 3
input lines and 8 output lines. It can also be called binary-to-octal decoder or convertor because
it takes a three bit binary input code and activates one of the eight (octal) outputs corresponding
to that code.
7-segment display is used to display decimal characters 0 through 9 and sometimes the hex
characters A through G
1
Digital Logic Design Laboratory Hand Book
Its is called as 7-segment display because it has 7 segments ( a to g ) which glow in different
combinations to show decimal numbers from 0 to 9. Our task for this lab session is to design a
circuit that takes BCD input and produces an output that makes only required segments to glow
which could produce the display of exactly the same number whose BCD code has been given as
input to the circuit. So it can be decided that the circuit will have 4 input lines and 7 output lines
each being able to control one of the 7 segments of the display.
2
Digital Logic Design Laboratory Hand Book
3
Digital Logic Design Laboratory Hand Book
One of these four outputs will be ‘1’ for each combination of inputs. The Truth table of 2 to 4
decoder is shown below.
Inputs Outputs
A B D0 D1 D2 D3
x x 0 0 0 0
4
Digital Logic Design Laboratory Hand Book
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
Expressions:-
INPUTS OUTPUTS
A B D0 D1 D2 D3
x x 0 0 0 0
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
For D0 D0¿ A B
For D1 D1¿ A B
For D2 D2¿ A B
For D3 D3¿ A B
CONNECTION DIAGRAM
5
Digital Logic Design Laboratory Hand Book
One of these four outputs will be ‘1’ for each combination of inputs.
The Truth table of 3 to 8 decoder is shown below.
INPUTS OUTPUTS
A B C D0 D1 D2 D3 D4 D5 D6 D7
6
Digital Logic Design Laboratory Hand Book
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
Expressions:-
For D0 D0¿ A B C
For D1 D1¿ A B C
For D2 D2¿ A B C
For D3 D3¿ A B C
For D4 D4¿ A B C
For D5 D5¿ A B C
For D6 D6¿ A B C
For D7 D7¿ A B C
CONNECTION DIAGRAM
7
Digital Logic Design Laboratory Hand Book
8
Digital Logic Design Laboratory Hand Book
TRUTH TABLE
9
Digital Logic Design Laboratory Hand Book
K-Maps:
For output a: For output b:
10
Digital Logic Design Laboratory Hand Book
11
Digital Logic Design Laboratory Hand Book
12
Digital Logic Design Laboratory Hand Book
For output g:
CONNECTION DIAGRAM
13
Digital Logic Design Laboratory Hand Book
14
Digital Logic Design Laboratory Hand Book
15
Digital Logic Design Laboratory Hand Book
stands for Blanking Input. When is low the display is blank so all the segments on the
7seg display are off regardless of DCBA.
stands for Ripple Blanking Input. When is low and DCBA=0000 the display is blank
otherwise the number is displayed on the display. This is used to remove leading zeroes from a
number (e.g. diplay 89 instead of 089). To use with more than one display connect (Ripple
Blanking Output) from most significant 74xx47 to the of the next 74xx47. Connect of
the least significant 74xx47 to 5v unless you want the display to turn off when the number is 0.
This type of decoder is probably the most widely used in all digital systems because it changes
the inherent binary codes used within the system to the decimal code used by the human
operators. Figure 1 illustrates the function block of a basic BCD-to-decimal decoder. Four input
lines, representing the decimal numbers 0 through 9. This type of decoder is often used in
combination with decade counters and with decimal displays. BCD-to-decimal decoders are
used for code conversion, address decoding, memory selection control, read-out decoding, and
de-multiplexing in digital systems such as mini-and microcomputers, digital voltmeters, etc.
TRUTH TABLE
INPUTS OUTPUTS
BCD Code Decimal Code
A B C D D0 D1 D2 D3 D4 D5 D6 D7 D8 D9
0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 0 0 1 0 1 0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0 0 0 0 0 0 0
16
Digital Logic Design Laboratory Hand Book
0 0 1 1 0 0 0 1 0 0 0 0 0 0
0 1 0 0 0 0 0 0 1 0 0 0 0 0
0 1 0 1 0 0 0 0 0 1 0 0 0 0
0 1 1 0 0 0 0 0 0 0 1 0 0 0
0 1 1 1 0 0 0 0 0 0 0 1 0 0
1 0 0 0 0 0 0 0 0 0 0 0 1 0
1 0 0 1 0 0 0 0 0 0 0 0 0 1
Important Note:
Make a K-Map according to the above truth table of each output (If you think it required
in this case). If not required then simply write expression directly for each output.
Simplify expression using K-Map. (If you think it required in this case.)
Construct the circuit based on the simplify expression or expression
17
Digital Logic Design Laboratory Hand Book
INPUTS OUTPUTS
A B D0 D1 D2 D3
0 0
0 1
1 0
1 1
18
Digital Logic Design Laboratory Hand Book
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
19
Digital Logic Design Laboratory Hand Book
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
CONCLUSION
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
20