Mux Demux Encoder Decoder
Mux Demux Encoder Decoder
Marks 20%
Q1) Objective questions (1)
1) ---- means many into one.
Multiplexer.
2) Multiplexer is also known as ----- (M15)
Data selector.
3) An ---- converts active input signal into coded output signal.
Encoder.
4) The basic function of ---- is to detect the presence of specified combination of bits
on its input and to indicate the presence by specified output level.
Encoder.
5) IC ----- decimal decoder.
7446 OR 7447
6) IC ---- is dual 1:4 DEMUX
74139.
7) IC ---- is dual 4:1 MUX
74153.
8) The multiplexer is used to convert -----
N inputs to one output.
9) The demultiplexer is used to convert -----
One input into many outputs.
10) --- is an input that disables or enables a circuit.
Strobe
11) If encoder produces a BCD output corresponding to the highest order decimal
digit appearing on the input ignoring the other input then it is known as ---
Priority encoder.
12) IC 74147 is ----
Priority encoder.
13) Demultiplexer accept ---- input (M 03)
Single
14) 1:32 de- multiplexer can be design with --- select lines. (M 02)
5
15) In MUX for selecting n inputs for connecting to the out a set of m select lines
are required where ------ (O 06)
2m = n
16) Active high output decoders (IC 7448) are used to drive ------ (M11)
Common Cathode type LED Display.
17) In combinational logic circuit strobe signal is used for ----- (M14)
Cascading
18) In multiplexer relation between data lines and m select lines is given by ----
a) 2m = n (b) 2m-1 = n, (c) 2m+1 = n, (d)2n = m (M17)
Q1) What are multiplexers and de-multiplexer? Write their working with rotary
switch. (O 01, 02, 05, 06, 09, M 01, 08, 11)
Q1) Why multiplexing is required? Explain basic multiplexer using 4 way
single pole switch.
Q1) What is multiplexer? Explain working of 4 to 1 MUX using Rotary Switch.
Q1) What is multiplexer? Explain its concept using block diagram. (M14)
Q1) Explain need of multiplexing and de-multiplexing. (M18)
(3 Marks = 1 Marks for Necessity, 2 Marks for explanation) (M13, O13)
(4 Marks = 2Marks for MUX, 2 Marks for DEMUX)
Ans: - Multiplexer means many into one. Multiplexer is a special combinational
circuit widely used in digital circuit to select data. Multiplexer is also known as Data
selector. It has several inputs and only one output, the selection of input is
controlled by a set of select inputs.
Need of multiplexer: - Multiplexer is the circuit in which by using control signal
more number of inputs is connected to single output. Due to multiplexer logic design
becomes simple. It minimizes the components required hence the cost also
decreased. Due to this multiplexer are widely used in T.V., Radio transmission and
Telephone.
Multiplexer (MUX) basically has `n` numbers of input data lines, `m` numbers of
select (control) lines and only one output terminal. The minimum numbers of control
lines are calculated by using formula 2m =n,
Where m is control lines, n is input lines.
Simple multiplexing action is obtained by using rotary switch. It has many ways
and single pole for example SP 7 WAY has single pole and 7 ways. The inputs are
connected to way terminals and output is connected to pole terminal. This pole is
manually connected to anyway and data connected to this terminal appears across
the output terminal. In multiplex circuits the same concept is used.
Advantages: - 1) It minimizes the number of IC required.
2) Simplification of circuits is not required.
3) Designing circuits becomes simple.
4) Cost of the circuit is reduced.
Demultiplexer means one into many. The action of demultiplexer is the exact
reverse of multiplexer. It has one input, and many outputs input is connected to one
of the output terminal and that terminal is selected by control terminal.
Demultiplexer is also known as Data Distributor.
Need of demultiplexer: - It is the circuit which gives exact opposite action of
MUX, hence along with MUX DEMUX is required. To design multi output circuit
DEMUX is very useful. DEMUX can be used binary to decimal decoder.
DEMUX has `n` numbers of output lines and `m` numbers of select lines and only
one input terminal. The minimum number of control lines are calculated by using
formula 2m =n,
Where m is control lines, n is output lines.
Similar to MUX rotary switch is used as DEMUX but in this case input data is
connected to the pole terminal and outputs are connected to the way terminals.
When pole is connected to different ways data is connected to this terminal
Advantages: - 1) De- multiplexer can be used as binary to decimal decoder.
2) It needs minimum ICs hence cost reduced.
Q2) What is multiplexer? Explain the working of 4: 1 multiplexer using gates.
Q2) Draw logic diagram of 4 to 1 MUX using 4 AND gates, 1 OR gate and two
select lines and explain its working giving the truth table.
Q2) Draw logic diagram of 4 to 1 MUX. Explain its working and write its truth
table. (O 01, 05, 07, 09, M 01, 02, 05, 10, 11, 12, 13, 15, 18)
(4Marks = 2 Marks for Diagram & Truth table, 2 Marks for explanation)
Ans: - In digital circuits 4:1 MUX is constructed by using basic gates. As there are
four data inputs minimum two control lines are required to select data input. Four
AND gates and one four bit OR gate is required to construct the circuit.
Logic Diagram:- Truth Table:-
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
S2 S1 S0 Y
0 0 0 Y0
0 0 1 Y1
0 1 0 Y2
0 1 1 Y3
1 0 0 Y4
1 0 1 Y5
1 1 0 Y6
1 1 1 Y7
If control inputs are 010 as strobe input is low upper demux is in enable mode and due
to remaining control inputs input data is connected to output terminal Y 2.
If control inputs are 110 as strobe input is high the lower demux becomes enable and due
to remaining control inputs input data is connected to output terminal Y 5.
Q5) What is Encoder? Explain decimal to BCD encoder with necessary logic
diagram.
Q5) Explain decimal to binary encoder by using four OR gates with logic
diagram. (O 01, 02, 03, 04, 05, 06, 09, M 01, 02, 03, 05, 06, 10, 11, 12, 15, 16,
18)
(3 Marks = 1 Mark diagram, 2 Marks for explanation)
(4Marks = 1 Mark for definition 1 Marks for dia., 2 Marks for explanation)
Ans: - It is a combinational circuit which converts input signal into coded signal.
In many digital circuits inputs applied by us is in decimal form but all digital
instruments use binary numbers hence it is necessary to convert given input signal
into binary and for that purpose encoder is used. The process of converting
information to binary form is known as encoding and circuit used is known as
encoder.
One of the most commonly used input devices for digital systems is a set of ten
switches, one for each number between 0 to 9. These switches generate high or low
logic in response to make on or off. When particular number has to feed to a digital
circuit switch corresponding to that number is pressed.
In this circuit when particular key is pressed high logic is passed through that
track and applied to OR gate. As in case of OR gate when any one input is high
output is high therefore output of circuit becomes high and it will depends upon
decimal number.
Decimal to BCD encoder: -
diagram: - Truth Table: -
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
For example, key of decimal number 5 is pressed
output of 1st and 3rd gate becomes high i.e. DCBA = 0101. 8 1 0 0 0
Similarly, by using other keys we can get equivalent BCD
output. In this encoder 0-digit input is not connected 9 1 0 0 1
because the output at this stage is low i.e. DCBA = 0000
Q6) Explain priority encoder with an example. (M 04, 10, O 07)
Q6) Explain Decimal to BCD Encoder using OR gates with logic diagram. What
do you mean by Priority Encoder. (O13)
Q6) Explain working of BCD to Decimal decoder. Write its truth table. (M16)
(3 Marks = 1 Mark for diagram, 1 Marks for truth table,1 mark explanation)
(4 Marks = 1 Mark for diagram, 1 Marks for truth table,1 mark explanation, 1 mark for
explanation of Priority Encoder)
Ans: -
1 2 3 4 5 6 7 8 9 D C B A
1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 0
× 0 1 1 1 1 1 1 1 1 1 0 1
× × 0 1 1 1 1 1 1 1 1 0 0
× × × 0 1 1 1 1 1 1 0 1 1
× × × × 0 1 1 1 1 1 0 1 0
× × × × × 0 1 1 1 1 0 0 1
× × × × × × 0 1 1 1 0 0 0
× × × × × × × 0 1 0 1 1 1
× × × × × × × × 0 0 1 1 0
For Decimal to BCD Encoder using OR gates refer question no 5 page no 153
0 0 0 0 0 0 0 0 0 0 1 0
0 0 0 1 1 0 0 1 1 1 1 1
0 0 1 0 0 0 1 0 0 1 0 2
0 0 1 1 0 0 0 0 1 1 0 3
0 1 0 0 1 0 0 1 1 0 0 4
0 1 0 1 0 1 0 0 1 0 0 5
0 1 1 0 1 1 0 0 0 0 0 6
0 1 1 1 0 0 0 1 1 1 1 7
1 0 0 0 0 0 0 0 0 0 0 8
1 0 0 1 0 0 0 1 1 0 0 9
Q8) What is decoder? Explain BCD to decimal decoder with appropriate gates.
Q8) Explain the working of decimal to binary encoder by using 4 OR gates
with help of circuit diagram. (M13)
Q8) Draw logic diagram of one of ten decoder write its truth table. (M14)
(M 01, 04, 06, 07, 08, 09, 10, 11, 12, 16, 17 Oct 01, 04, 05, 08, 09, 13)
(3 Marks = 1 Mark diagram, 2 Marks for explanation)
(4Marks = 1 Mark for definition 1 Marks for dia., 2 Marks for explanation)
(3 Marks = 2 Mark diagram, 1 Marks for truth table)
Ans: - Decoder is the electronic circuit which converts digital data into decimal form
(original form). This circuit is nothing but DEMUX but there is no data inputs, only
BCD inputs which are applied as control bits. BCD to decimal decoder is also known
as 1 of 10 decoder because only one of the 10th outputs becomes high.
Logic diagram: - Truth Table: -
Working: -
Case 1) When DCBA = 0000: - In this case only 1st AND gate becomes active
because its all inputs are high, hence output of only 1 st gate becomes high which is
decimal number 0
Case 2) When DCBA = 0001: - In this 2nd AND gate becomes active and output of
this gate becomes high which is decimal number 1
Case 3) When DCBA = 0010: - In this case 3rd AND gate becomes active and output
of this gate becomes high which is decimal number 2.
This process continues and as per BCD input particular one of the AND gate
becomes active and gives high output which decimal equivalent of BCD number.
Q9) Write the difference between MUX and DEMUX. (O 03)
(3 Marks = 1 Marks for each difference)
Q17) Implement the following multi output combinational logic circuit using
4:16 decoder.
F1 = m (2,3, 6,9,12), F2= m (4,8,12), F3 = m (5,10,13) (O 09)
(3 Marks = 1 Mark explanation, 2 Marks for diagram)
Ans: - Data F1 = m (2,3, 6,9,12), F2= m (4,8,12), F3 = m (5,10,13)
As decoder used are active low output therefore NAND gates are used in the
output stage. NAND gate is used because it gives high output when any one input is
low. Therefore, input is connected to the one of the output terminals which is
maintained in the expression.
Q19) Design 16:1 Mux using two 8:1 Mux and write truth table. (M 11)
(4Marks = 3 Marks for designing, 1Marks for truth table)
Ans: - In case of 8:1 Mux three control or select lines are used but in this circuit two
Mux are connected to get 16:1 Mux hence there should be four control lines. Control
line S3 is known as Strobe or Enable because this input makes one of the Mux enable
at a time, while other control line selects the one of the data input terminals and fed
that data to output terminal. When the strobe input is high then only the Mux is in
enable mode. The Mux 1 is in enable mode when strobe input is low it is because the
complement of strobe is connected to Mux 1 and when strobe input is high Mux 2 is
in enable mode. In this circuit as there are two output terminals OR gate is used to
convert two outputs into single output.
Logic Diagram: - Truth Table:-
S3(Strobe) S2 S1 S0 Y
0 0 0 0 D0
0 0 0 1 D1
0 0 1 0 D2
0 0 1 1 D3
0 1 0 0 D4
0 1 0 1 D5
0 1 1 0 D6
0 1 1 1 D7
1 0 0 0 D8
1 0 0 1 D9
1 0 1 0 D10
1 0 1 1 D11
1 1 0 0 D12
1 1 0 1 D13
1 1 1 0 D14
1 1 1 1 D15
Q20) Realize 4:1 multiplexer using NAND gates. NAND gates used should have
four inputs viz. Strobe, data, and two select Inputs.
Ans: - This question is out of syllabus.
Q21) Implement the expression using multiplexer.
f (A, B, C) = M (1,2,4,6,7) (M12)
(3 Marks = 1 .5 Mark explanation, 1.5 Marks for diagram)
Ans: - Data f(A,B,C) = M( 1,2,4,6,7)
ABC are variable i.e. control inputs. As there are three control inputs 8:1 MUX
is used because 23 = 8
In this case given input terminals has to be connected to output terminals
hence they are connected to high logic.
A B C Y
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
1) Y1 = A B C D + A B C D + A B C D + A B C D
2) Y2 = A B C D + A B C D + A B C D + A B C D
(4Marks = 1Marks for explanation, 3 Marks for designing,)
Ans: For the first equation we get function as F1 = m (7, 14, 6, 9) and for the
second equation it is F2= m (11, 12, 13, 6)
As the equation contains four variables 4:16 decoder (1:16 Demux) is used
As decoder used are active low output therefore NAND gates are used in the
output stage. NAND gate is used because it gives high output when any one input is
low. Therefore, input is connected to the one of the output terminal which is
maintained in the expression.
Q25) Implement the following multi out combinational logic circuit using 1:16
demultiplexer. (With active high output) (M16)
F1 = m (3,5,8,11,14)
F2 = m (2,4,6,10)
F3 = m (1,7,9,12,13)
Ans: - Data F1 = m (3,5,8,11,14), F2= m (2,4,6,10), F3 = m (1,7,9,12,13)
As decoder used are active high output therefore OR gates are used in the output
stage. OR gate is used because it gives high output when any one input is high.
Therefore, input is connected to the one of the output terminals which is maintained
in the expression.
--------------------------------------------- --------------------------------------------