Expt 2 For Print
Expt 2 For Print
Experiment No: 2
Study of IC-74LS138 as a Demultiplexer / Decoder.Design and Implement full
adder and subtractor function using IC-74LS138.Design & Implement 3-bit
code converter using IC-74LS138. (Gray to Binary/ Binary to Gray).
1) IC 74138
2) IC 7400: 3) IC 7432
THEORY:
Demultiplexer:
Demultiplexer is a logic circuit used to perform exactly reverse function performed by
multiplexer.
It accepts a single input and distributes among several outputs. The selection of a particular
output line is controlled by a set of selection line. Hence, demultiplexer is equivalent to a
single pole multiple way switch.
There are ‘n’ output lines & ‘2 m’ is the number of selection line whose bit combinations
determine which output to be selected.
Types of Demultiplexer
1:4 Demux:
The 1:4 Demux is shown in fig. & its truth table is given below.
Input D is connected to Y0 when S 1S0= 00 it is connected to Y1 when S1S0= 01 & so on, the
other output will remain zero. The enable input ‘E’ needs to high in order to enable the
Demux. If E=0 then all the outputs will be low irrespective of any input.
Decoder:
A decoder is a combinational circuit. Figure shows block diagram of decoder. It has ‘m’ inputs
and ‘n’ outputs where ‘n= 2m’ outputs. Decoder is identical to demultiplexer without any data
input.
2: 4 Decoder
The block diagram of 2:4 decoder is shown in figure A and B are the two inputs where as Y0 to
Y3 are the four outputs. Truth table shows output is ‘1’ for only a specific combination of inputs.
Truth Table
In order to operate 1:8 demux as 3:8 decoder, the connections are to be made as shown in
figure. The data input Din is connected to logic 1 permanently. The three select inputs S0, S1, S2
will act as three inputs of the decoder and Y0 to Y7 are the 8- outputs of the decoder.
From the truth table we can write the functions for Sum and Carry as,
For SUM = Σ m (1, 2, 4, 7) and
For CARRY = Σ m (3, 5, 6, 7)
From the truth table we can write the functions for Difference and Borrow as,
For Difference= Σ m (1, 2, 4, 7) and
For Borrow = Σ m (1, 2, 3, 7)
Ex: Design & Implement 3-bit Binary to Gray code converter using IC-74LS138.
Following table shows the truth table for Binary to Gray code converter.
From the truth table we can write the functions for G3, G2 and G1 as,
Ex: Design & Implement 3-bit Gray to Binary code converter using IC-74LS138.
Following table shows the truth table for Gray to Binary code converter.
From the truth table we can write the functions for B3, B2 and B0 as,
PROCEDURE:
1) Design given Boolean equation according to requirement.
2) Check all the components for their working.
3) Give biasing to the IC.
4) Make connections as shown in the diagram and observe output.
CONCLUSION:
APPLICATIONS: