Multiplexers
(Data Selectors)
Module 47
LCST – Logic Circuits and Switching
th
Theory
Source: Digital Fundamentals by Floyd, T. 11 Edition
Module 47 - Multiplexers (Data Selectors) 1
Prepared by: fscjr.
Introduction
A multiplexer (MUX) is a device that allows digital
information from several sources to be routed onto a single line
for transmission over that line to a common destination.
The basic multiplexer has several data-input lines and a single
output line.
It also has data-select inputs, which permit digital data on any
one of the inputs to be switched to the output line.
Multiplexers are also known as data selectors.
Module 47 - Multiplexers (Data Selectors) 2
Prepared by: fscjr.
Learning Objectives
After completing this module, the learners
should be able to:
1. Explain the basic operation of a multiplexer
2. Describe the 74HC153 and the 74HC151 multiplexers
3. Expand a multiplexer to handle more data inputs
4. Use the multiplexer as a logic function generator
5. Use VHDL to describe 4-input and 8-input multiplexers
Module 47 - Multiplexers (Data Selectors) 3
Prepared by: fscjr.
1-of-4 data selector/multiplexer.
In a multiplexer, data are switched from several lines to one
line.
Module 47 - Multiplexers (Data Selectors) 4
Prepared by: fscjr.
1-of-4 data selector/multiplexer. cont’d
Module 47 - Multiplexers (Data Selectors) 5
Prepared by: fscjr.
1-of-4 data selector/multiplexer. cont’d
Module 47 - Multiplexers (Data Selectors) 6
Prepared by: fscjr.
1-of-4 data selector/multiplexer. cont’d
EXAMPLE 6–14
The data-input and data-select waveforms in Figure 6–45(a) are
applied to the multiplexer in Figure 6–44. Determine the output
waveform in relation to the inputs.
Module 47 - Multiplexers (Data Selectors) 7
Prepared by: fscjr.
IMPLEMENTATION:
EIGHT-INPUT DATA SELECTOR/MULTIPLEXER cont’d
Fixed-Function Device
Module 47 - Multiplexers (Data Selectors) 8
Prepared by: fscjr.
IMPLEMENTATION:
EIGHT-INPUT DATA SELECTOR/MULTIPLEXER
cont’d
Programmable Logic Device (PLD)
The logic for the eight-input multiplexer is implemented by first
writing the VHDL code. For the 74HC151, eight 5-input AND
gates, one 8-input OR gate, and four inverters are required.
Module 47 - Multiplexers (Data Selectors) 9
Prepared by: fscjr.
IMPLEMENTATION:
EIGHT-INPUT DATA SELECTOR/MULTIPLEXER
cont’d
Programmable Logic Device (PLD)
Module 47 - Multiplexers (Data Selectors) 10
Prepared by: fscjr.
IMPLEMENTATION:
EIGHT-INPUT DATA SELECTOR/MULTIPLEXER cont’d
EXAMPLE 6–15
Use 74HC151s and any
other logic necessary
to multiplex 16 data
lines onto a single
data-output line.
Module 47 - Multiplexers (Data Selectors) 11
Prepared by: fscjr.
Applications
A 7-Segment Display
Multiplexer
Use 74HC151s and any
other logic necessary
to multiplex 16 data
lines onto a single
data-output line.
Module 47 - Multiplexers (Data Selectors) 12
Prepared by: fscjr.
Applications cont’d
A Logic Function Generator
EXAMPLE 6–16
Implement the logic function specified in Table 6–9 by using a
74HC151 8-input data selector/multiplexer. Compare this method
with a discrete logic gate implementation.
Module 47 - Multiplexers (Data Selectors) 13
Prepared by: fscjr.
Applications cont’d
A Logic Function Generator
Module 47 - Multiplexers (Data Selectors) 14
Prepared by: fscjr.
Applications cont’d
A Logic Function Generator
Related Problem
Use the 74HC151 to implement the
following expression:
Module 47 - Multiplexers (Data Selectors) 15
Prepared by: fscjr.
Applications cont’d
Implementing a 4-variable truth table with 8x1 MUX
Module 47 - Multiplexers (Data Selectors) 16
Prepared by: fscjr.
Applications cont’d
Implementing a 4-variable truth table with 8x1 MUX
EXAMPLE 6–17
Implement the logic function in Table
6–10 by using a 74HC151 8-input
data selector/ multiplexer. Compare
this method with a discrete logic
gate implementation.
Module 47 - Multiplexers (Data Selectors) 17
Prepared by: fscjr.
Applications cont’d
Implementing a 4-variable
truth table with 8x1 MUX
Module 47 - Multiplexers (Data Selectors) 18
Prepared by: fscjr.
Mastery Exercises
The output is 0.
(a) 74HC153: Dual 4-input data selector/multiplexer
(b) 74HC151: 8-input data selector/multiplexer
Module 47 - Multiplexers (Data Selectors) 19
Prepared by: fscjr.
Mastery Exercises cont’d
The data output alternates between LOW
and HIGH as the data-select inputs
sequence through the binary states.
Module 47 - Multiplexers (Data Selectors) 20
Prepared by: fscjr.
Mastery Exercises cont’d
4. Briefly describe the purpose of each of
the following devices in Figure 6–49:
(a) 74HC157
(b) 74HC47
(c) 74HC139
a) The 74HC157 multiplexes the two BCD
codes to the 7-segment decoder.
b) The 74HC47 decodes the BCD to energize
the display.
c) The 74HC139 enables the 7-segment
displays alternately.
Module 47 - Multiplexers (Data Selectors) 21
Prepared by: fscjr.