Types of Multiplexers
Types of Multiplexers
Types of Multiplexers
Module -8
1 Introduction
2 Principles of Multiplexing and Demultiplexing
3 Multiplexer
3.1 Types of multiplexer
3.2 A 2 to 1 multiplexer
3.3 A 4 to 1 multiplexer
3.4 Multiplex ICs
3.5 Cascading multiplexer
3.6 Applications of multiplexers
4 Demultiplexer
4.1 A 1 to 2 demultiplexer
4.2 A 1 to 4 demultiplexer
4.3 Demultiplexer ICs
4.4 Applications of demultiplexers
5 Summary
Learning objectives
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
2
1. Introduction
There are many applications where many devices or system needs to access a common
transmission media. Let us consider our cable TV system, in which multiple TV channels are
received at home via a shared transmission media. Similarly, in computer networking, many
computer needs to access a common printer or other shared hardware. In Smart instrumentation,
a PC or microcontroller can acquire data gathered from many sensors through a single ADC. Our
telephone exchanges utilize these multiplexers and demultiplexers extensively.
Multiplexer and demultiplexers are normally used for sharing resources. Multiplexers routes the
data from many sources to one destination and demultiplexer redistributes data back from one
source to many destinations.
In this module you will learn about the basic architecture of multiplexer and demultiplexers
along with real life applications.
The multiplexed data is transmitted over a single line to a common destination. Demultiplexer
accepts this data and redistributes it to the n outputs. Data select lines are used in many into one
operation of multiplexer and one to many operation of demultiplexer. In short, multiplexers and
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
3
demultiplexers are combinational circuits designed to provide sharing of resources. The keyword
is sharing.
3. Multiplexer
Multiplexer means many to one. A multiplexer (MUX) is a combinational circuit which is often
used when the information from many sources must be transmitted over long distances and it is
less expensive to multiplex data onto a single wire for transmission.
Multiplexer can be considered as multi-position or rotary switch as shown in fig. 2. There are n –
inputs and one output. The switch position is controlled by the selector lines. The select inputs
decide which input is connected to the output.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
4
Multiplexer are also called as DATA Selector or router because it accepts several data inputs and
allows only one of them to get through to the output at a time. The basic multiplexer has n input
lines and single output line. It also has m – select or control lines. The relation between number
of select lines and number of data inputs are
2m = n
D0
D0
2 to 1 D1 4 to 1
Y
MUX MUX
D2
Y
D1
D3
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
5
S2 S1 S0 S3 S S1 S0
2
D0
D0
D1 16 to 1
D1 8 to 1 Y
MUX
MUX Y
D15
D7
Similarly we can extend the idea to 8 to 1 multiplexer and 16 to 1 multiplexer as shown in Fig.
4(b). For example 8 to 1 multiplexer with 8 inputs namely D0, D1,… D7, 3 select line S2, S1,
So as the select line and Y as the single output. Similarly, the 16 to 1 multiplexer has 16 inputs
D0, D1, … D15 , 4 select input S3,S2, S1 and S0 and Y as the output.
3.2 A 2 to 1 multiplexer
S D D Y
0 1 0
S0
0 0 0 0
0 0 1 1
Select Output 0 1 0 0
D0 Y input S0 Y
2 to 1 0 1 1 1
MUX 0 D0
D1 1 0 0 0
1 D1
1 0 1 0
1 1 0 1
1 1 1 1
Figure 5 indicates the logic symbol, function table and truth table of 2 to 1 multiplexer. In this
multiplexer, D0 and D1 are the data inputs, S0 is the select line and Y is the output of the
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
6
multiplexer. In a function table, Select line S0 is shown as the input and Y is the output. When
S0 = 0 then the data D0 appears at output Y and when S0=1, the output Y receives the data D1.
Let us now prepare a detailed truth table for 2 to 1 mux. In this truth table S0, D1, D0 are the
inputs and Y is the output. For S0=0, we have 4 possible combinations for the inputs 00,01,10
and 11. It is observed that Y always follows D0. For S0=1, we have similar 4 possible
combinations for the inputs 00,01,10 and 11. It is observed that Y always follows D1.
The k-map required for this multiplexer is of three variables. Let us consider two rows for S0 and
4 columns for the data D1D0. Map the truth table into k-map by writing ‘1’ to the appropriate
minterm as shown in fig. 6.
Y = S0 D0 + S0 D1
From the first pair we can eliminate the D1, as it is changing in the pair. Thus this pair contribute
S0’D0 in the output. Similarly, in the second group D0 gets eliminated as it is changing in the
pair. Therefore, we get S0D1 as the second term in the Boolean expression.
The final Boolean expression is in sum of two product terms as shown here. This indicates either
D0 or D1 will appear at the output decided by the value of Y.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
7
The 2 to 1 multiplexer can be implemented using two AND gates and one OR. The Not gate
provides complemented and un-complemented form of S0 i.e. select line. The interconnections
are made to AND gate to provide the necessary product term.
3.3 A 4 to 1 multiplexer
The second type of multiplexer is 4 to 1 multiplexer. The logic symbol (as shown in fig. 7)
indicates that there are 4 data inputs namely D0, D1, D2,D3 and single output (Y) . For 4 data
inputs there are two select lines namely S0 and S1. While preparing the function table we write
S1 as MSB and S0 as LSB. The 2 select inputs provide 4 input combinations for selecting the
proper data input at the output Y.
For 4 to 1 multiplexer, two bit binary code on select inputs (S1S0) allows the data from selected
input (either from D0,D1,D2,D3) to pass to the output.
The output Y receives D0 only when S1=0 and S0=0. Similarly, output Y receives D1 only when
S1S0=01. Output Y receives D2 only when S1S0=10. Output Y receives D3 only when
S1S0=11.
S1 S0
Select inputs Output
S S Y
1 0
D0
0 0 D
0
D1 4 to 1 Y
0 1 D
D2 1
MUX
D3 1 0 D
2
1 1 D
3
Figure 8: Logic symbol, Function table and Boolean expression for 4 to multiplexer
From the function table, the Boolean Expression can be written in SOP form. Each row of the
function table provides the product term. Referring to the Boolean expression, it is possible to
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
8
draw the logic circuit consisting of a OR gate with 4 inputs. Each product term is represented by
three input AND gate. One of the input of AND gate is the respective data input. The Select lines
S1 and S0 along with inverter provide select input either in un-complemented or complemented
form. Figure 8 indicates the logic diagram of 4 to 1 multiplexer. The data inputs and select lines
are connected to the AND gates as per the requirement of the product term to generate the
desired output.
Figure 8: 4 to 1 multiplexer
The first AND gate receives D0, S1’ and S0’ as inputs. Similarly rest of the AND gates receives
the appropriate inputs as per the product term.
As the data can be selected form any of the input lines, the multiplexer is also known as a data
selector. In this fashion, it is possible to construct 8 to 1 multiplexer and 16 to 1 multiplexer.
Note that the 8 to 1 multiplexer require three select inputs to select data from 8 inputs to the 1
output whereas the 16 to 1 multiplexer require 4 select lines.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
9
IC Description Output
number
74150 16 to 1 mux Inverted input
74151 8 to 1 mux Complementary outputs
74152 8 to 1 mux Inverted input
74153 Dual 4 to 1 mux Same as input
74157 Quad 2 to 1 mux Same as input
74158 Quad 2 to 1 mux Inverted input
IC number Description
4051 8-channel analog multiplexer/ demultiplexer
4052 Dual 4-channel analog multiplexer/demultiplexer
4053 Triple 2-channel analog multiplexer/ demultiplexer
In many situations, an enable or gating input is added to the multiplexer. The multiplexer will be
enables or operative only when the Enable input is active. In this case Enable is active high.
When E=0, Multiplexer function is disabled. To enable multiplexer, E must be set to ‘1’ as shown
in fig. 11.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
10
S1 S0 E
Select Inputs Output
S S E Y
1 0
D0 X X 0 X
D1 4 to 1 Y 0 0 1 D
0
D2 MUX
0 1 1 D
1
D3
1 0 1 D
2
1 1 1 D
3
As number of inputs to the multiplexers is limited say up to 16. To meet the larger input needs of
multiplexers, smaller multiplexers can cascaded together for further expansion. This method of
expansion of multiplexers is also known as tree multiplexing. Higher order multiplexers can be
constructed by using lower order multiplexers as shown in Figure 12 and 13.
S0
D0 or D1 0 0 D0
2 to 1
MUX Y 0 1 D1
S0
1 0 D2
D2 or D3
D2 2 to 1 1 1 D3
MUX
D3
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
11
0 0 0 D0
0 0 1 D1
0 1 0 D2
0 1 1 D3
1 0 0 D4
1 0 1 D5
1 1 0 D6
Multiplexer or data selectors are combinational circuits which transfer data from many sources to
output under the control of data select lines. Multiplexer has many applications right from data
routing, time division multiplexing, function generator to parallel to serial converter etc. A
single multiplexer can replace several logic gates ICs, saving PCB area, interconnections, design
efforts and cost. A list of popular applications is given below.
1. Data routing
2. Data bussing
3. Switch setting comparator
4. Multiplexer as a function generator
5. Parallel to serial converter
6. Cable TV signal distribution
7. Telephone network
8. Sharing printer /resources
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
12
1. Data Routing
Multiplexer can be used to rout digital data under the control of data select inputs. To display
the contents of one of the two BCD counters on a common seven segment display is one of
the important applications.
S Display
0 Counter #1
\ 1 Counter #2
2. Data Bussing
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
13
Multiplexers can be used to construct a data bus structure for microprocessors and
microcontrollers. In this case multiplexers are used in such a manner that it accepts data from
various multiple bit sources e,g, registers and connects the desired source to a data bus under
the control of data selection inputs.
S1 S0 OUTPUT
0 0 Reg – A
0 1 Reg – B
1 0 Reg – C
1 1 Reg – D
Figure 16: Register selection logic
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
14
For N- input variables , a total of 2N different functions are obtainable . One can generate desired
function using following procedure:
1. First write function in SOP form and identify the required multiplexer.
2. Assign appropriate input line to each product term . Use the decimal number
corresponding to each term in the expression.
4. All other inputs which do not contribute to output function be connected to logic 0 level.
å m(1,3,5)
Sum = å m(1,2,4,7)
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
15
A B C SUM
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
4. Demultiplexer
Demultiplexer has a single input and n output lines. Demultiplexer can be visualized as reverse
multi-position switch. The select lines permit input data from single line to be switched to any
one of the many output lines as shown in fig. 20.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
16
Demultiplex means one into many. A demultiplexer reverses the multiplexing operation. In
other words, the demultiplexer takes one data input source and selectively distributes it to 1 of N
output channels just like multi-position switch.
It also has ‘m’ select lines for selecting the desired output for the input data as shown in fig. 21.
The mathematical relation between select lines and ‘n’ output are:
2m = n
As a demultiplexer takes data from one input line and distributes over a 2m output line, hence it is
often referred to as 1 to 2m line converter. There are four basic types demultiplexers: 1 to 2
demultiplexer, 1 to 4 demultiplexer, 1 to 8 demultiplexer and 1 to 16 demultiplexer as shown in
fig. 22. Number of select lines decides this classification.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
17
S0 Y0 Y1
0 D 0
1 0 D
To distribute the input data D to Y0, the select input So should be 0 and Y1 will receive data
input D when So=1. The Boolean expressions for the outputs are
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
18
The implementation of 1 to 2 demultiplexer requires two 2 input AND gate and a NOT gate as
shown in fig. 24. The product term for the output decides the interconnections between the gates
data input and select lines.
4.2 A 1 to 4 demultiplexer
Inputs Outputs
S1 S0 Y0 Y1 Y2 Y3
0 0 D 0 0 0
0 1 0 D 0 0
1 0 0 0 D 0
1 1 0 0 0 D
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
19
S1S0=10, the input data is distributed to Y2 and when S1S0=11, the output Y3 receives the input
data.
The implementation of 1 to42 demultiplexer requires four 3 input AND gates and two NOT gates
as shown in fig. 26. The product term for the output decides the interconnections between the
gates data input and select lines.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
20
CMOS ICs provide a combination of Multiplexer and Demultiplexer in a single chip IC. These
are also popular amongst the Digital system designer because of low power consumption.
Digital demultiplexers are combinational devices controlled by a selector address that routes
input data to one of many outputs of the demultiplexers. These can be used in following
applications.
1. Data demultiplexing
2. Clock demultiplexing
3. Memory addressing
6. Switch encoding
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer
21
5. Summary
· A multiplexer is a logic circuit which routes data from many inputs to a single output and
are available in 2 to 1, 4 to 1, 8 to 1 and 16 to 1 LSI forms. The multiplexer has 2m input
lines, m select lines and a single output.
1) Data routing
2) Data bussing
7) Telephone network
· The multiplexer is a universal logic circuit because it can generate any truth table.
· A demultiplexer is a logic circuit which takes data from one input line and distributes
them to one of many output lines under the control of data select lines.
1. Data demultiplexing.
2. Clock demultiplexing.
3. Memory addressing.
6. Switch encoding.
Digital Electronics
Electronic Science
8. Multiplexer & Demultiplexer