Adobe Scan 25 Dec 2022
Adobe Scan 25 Dec 2022
fwo inverters provide the complement of the inputs, and each one of tour
11,15.10 one of the minterms
AND gates generates
The Table 1.15.1 shows the truth table for a 2-to-4 decoder.
tf enable input is 1 (EN = ) , one, and only one, of the outputs Yg to Yy is active
Possible
given input.
output for a
The output Yo is active, 1.e. Yo= l when inputs A = B = 0, the output Y, is active
oulp
Th =0 and B =1,
when inputs A
is 0, 1.e. EN =
0, then all the outputs 0.
ecoder If enable input are
complement of the inputs, and each one of the eight AND gates
provide the
puts inverters
xXX0 0 0 0 0 0 0 0 D--Xet
01
1 00 0 0 0 0 0 0 0 =D--Hsc
1 0 01 0 0 0 0 01 0 0
1 0
1 0 000 0 01 0 0
10 110 0 001 0 0 0 D-YABC
1 1 00 0 0 010 0 00
1 1 0 10 0 10 00 0 0
1 1 1 0 0 1 0 0 0 00 0 Y,ABC
1 1 1 1 1 000 0000 Enable (EN)
Table 1.15.2 Truth table for a 3 to 8
decoder Fig. 1.15.3 3:8 line decoder
Decoders
1.15.2 Expanding Cascading
decoder circuits can be connected together to form a larger decoder circuit
Binary
Fig. 1.154 shows the 4 x 16 decoder using two 3 x 8 decoders.
decoders. 1A -
is used to enable/disable the
D
Here, one input line (D) s-Y
and the other is disabled. Thus
When D 0, the top decoder is enabled
=
th
bottom decoder outputs are all 1s, and the top eight outputs generate minter
erms
-Ys
0000to 0111.
When D=1, the enable conditions are reversed and thus bottom decoder outn 74LS132(3)
decoder all 1s.
minterms 1000 to 1111, while the outputs of the top are Yob-Y18
generate Y Y7
5-to-32 decoder using one 2-to-4 and four 3-to-8 decoder 1Cs.
Example 1.15.2 Design -Y18
AU:Dec.-11,May-15,Marks16 -Y9
Solution: The Fig. 1.15.5 shows the construction of 5-to-32 decoder using four 74LS138 -21
and half 74LS139. The half section of 74LS139 IC is used as a 2-to-4 decoder to decode
28 73
the two higher order inputs, D and E. The four outputs of this decoder are used to
enable one of the four 3 to 8 decoders. The three lower order inputs A, B and Care 4LS138(4)
connected in parallel to four 3 to 8 decoders. This means that the same output pin of
each of the four 3-to-8 decoders is selected but only one is enabled. The remaining
enable signals of four 3-to-8 decoder ICs are connected in parallel to construct enable
signals for 5-to-32 decoder.
EN
(See Fig. 1.15.5 on next page.) ENg
1.15.3 Realization of Boolean Function using Decoder Fig. 1.15.5 5-to-32 decoder using 74LS138 and 74L$139
Step 2: Logically OR the outputs correspond to present minterms to obtain the output.
TECHNICAL PUBLICATIONS an up-thrust for knowledge TECHNICAL PUBLICATIONS an up-thrust for knowledge
DIgital Pninciples and Computer Organ Digital Principles and Computer Organization
1 89
Y 2 - A B C D + A B C D + A B C D + A B C D
4:16
Y3 =ABCD+ABCD +ABCD.
Solution
Decoder Yg
Y40
D
Step 1 :
Y =
Write the
m,3,2 6,
function in their minterm
10, 11) Y
torms
13
D
of decoder corresponding
to the minterms in
Step 2 : Logically OR the outputs
functions.
Y15
Fig. 1.15.8
Example 1.15.6 Design and
innplement a full adder circuit
O using a 3:8 decoder.
O
O2 Y1 Solution: Truth table for full adder is AU : May-11. Marks 5
O3 as shown in the Table 1.15.3.
Inputs Outputs
D
B Cin Carry Sum
4:16
C
D Decoder Og
7 o Y2
0
1 0 A A
3:8
O10 0 0
Decoder -Cary
O11 0 0
Cin C
O12 Y3
O13 0 0
O14 0 -Sum
O15
Fig. 1.15.7 Table 1.15.3 Truth table for full-adder Fig. 1.15.9
knowledge
Combinational Logic
and Computer
Organi
anizafion - 91
Principles
Digital
90
1 . 1 6 Encoders
AU Dec.06.10.12.14 18 May070510.19
Computer
Organze d e c o d e r
and
ates
Phnciples
and using
encoder is a digital circuit that
DIgital
converter
.
An data
BCD
code
+
e n p l e
2x4
circuit
+ bcde An Enable
output lines.
abc
Dsign logic =
andn
1.15.8
combinational F2
lines inputs
+ abcd
c x a m p l e
suitable d.
a acd
the output lines generate the
Example 1.15.9
Design
Fl=&bc+
+
abcde using
suitalble
decoder . I n encoder
to the input
g . 1.16.1 General
structure of encoder
F3=abel+ab
cd fiunction
code corresponding
output binary
multiple
following 3) value.
the 7)+d(2,
in the
Implement
4 shows the general structure of the encoder circuit. As shown
1.15.10
B
O=m(0,
5, 6
The Fig. 1.16.1
Example flA. the decoded information is presented as 2" inputs producing n possible
Fig. 1.16.1
)=m(1,
a4,
B 2, 4 6)
C)-m0,
fs(4, B,
outputs.
D e c o d e r s
of
Applications
I m p l e m e n t a t i o n
of
combinational
The decoded
decimal data acts as (1 6 ) BCD outputs
Decimal (2 5
encoder and encoded inputs D(14)
aninput for
1.15.5 Decoder ICs Function
BCD output is available on the (3)
IC number
3 8 Decoder four output lines. (4)
74138
Dual 2: 4
Decoder
. The Fig. 1.16.2 shows the logic 58
74139 decoder
BCD to
decimal symbol for decimal to BCD
7442 decoder
encoder IC, IC 74XX147.
BCD to 7-segment Fig. 1.16.2 Logic symbol for 74XX147 (Decimal
7447
Decoder ICs I t has nine input lines and four to BCD encoder)
Table 1.15.4
output lines.
Review Questions Both input and output lines are asserted active low.
1. Define decoder. When this
I t is important to note that there is no input line for decimal zero.
2. Define binary decoder.
decoder. condition occurs, all output lines are 1.
the working of 2: 4 binary
AU:May-07, Dec.-12, Marks 2
3. Explan
3 8 decoders.
4x 16 decoder constructed with two
x
4. Draw a .The function table for the 74XX147 is shown in Table 1.16.1.
Boolean function using decoder.
5. State the procedure to implement
6. Mention the uses of decoders. AU Dec.-06, Marks 2 Decimal value Inputs Outputs
7. What is decoder ? Draw the block diagram and truth table for 2 to 4 decoder.