MUX and DEMUX
MUX and DEMUX
OTHER COMBINATIONAL
LOGIC CIRCUITS
1
DIGITAL SYSTEMS TCE1111
MULTIPLEXERS (Data Selectors)
2
DIGITAL SYSTEMS TCE1111
MUX-continued...
A modern stereo system may have a switch that selects
music from one of four sources: a cassette tape, CD, a
radio tuner , or an auxiliary input such as audio from a
VCR or DVD. The switch selects one of the electronic
signals from one of these four sources and sends it to the
power amplifier and speakers.
In simple terms, this is what a multiplexer (MUX) does;
it selects one of several input signals and passes it on to
the output.
3
DIGITAL SYSTEMS TCE1111
4
DIGITAL SYSTEMS TCE1111
Two-input multiplexer
5
DIGITAL SYSTEMS TCE1111
Four-input multiplexer
6
DIGITAL SYSTEMS TCE1111
7
DIGITAL SYSTEMS TCE1111
S1 S0
8
DIGITAL SYSTEMS TCE1111
9
DIGITAL SYSTEMS TCE1111
8-input multiplexer
10
DIGITAL SYSTEMS TCE1111
• The 74LS157 contain of quad two−input multiplexers, I0a I0b I0c I0d and
I1a I1b I1c I1d.
• Notice that each of the four multiplexer shares a common data select
line and a common Enable.
• Each multiplexer has only one data select input because there are only
two groups of inputs to be selected.
11
DIGITAL SYSTEMS TCE1111
12
DIGITAL SYSTEMS TCE1111
• Input is LOW − allows the selected input data to pass through to the
output.
• Input is HIGH − will disable the multiplexers, all of the outputs will
be LOW.
13
DIGITAL SYSTEMS TCE1111
Exercise 1:
Implement the logic circuit function specified in the table given below by
using 74LS151 8-input data selector/multiplexer.
Input Output
A2 A1 A0 Y
0 0 0 0 0
0 0 1 1 1
0 1 0 0 2
0 1 1 1 3
1 0 0 0 4
1 0 1 1 5
1 1 0 1 6
1 1 1 0 7
14
DIGITAL SYSTEMS TCE1111
Solution :
15
DIGITAL SYSTEMS TCE1111
16
DIGITAL SYSTEMS TCE1111
0
1
2
3
17
DIGITAL SYSTEMS TCE1111
• The two variables x and y are applied to the selection lines in that
order; x is connected to the S1 input and y to the S0 input.
• The values for the data input lines are determined from the truth
table of the function
– For ex., when xy=00, output F is equal to z because F=0 when
z=0 and F=1 when z=1. This requires that variable z is applied
to the data input 0
18
DIGITAL SYSTEMS TCE1111
0
1
2
3
4
5
6
7
19
DIGITAL SYSTEMS TCE1111
DEMULTIPLEXERS
20
DIGITAL SYSTEMS TCE1111
General demultiplexer
Functional diagram:- The large arrow indicates one or
more lines. The select i/p code
determines to which output the
DATA input will be transmitted
A 1-line-to-4-line demultiplexer.
22
DIGITAL SYSTEMS TCE1111
The serial data input waveform (Data in) and data select inputs (So and S1) and
the corresponding data output waveforms (D0 through D3) are shown below
23
DIGITAL SYSTEMS TCE1111
1-line- to-8 line demultiplexer
24