Multiplexers and Demultiplexers in Digital Electronics
1. Introduction
Multiplexers and demultiplexers are important combinational circuits used in digital electronics to control the flow of binary data.
A Multiplexer (MUX) selects one input from several input signals and forwards the selected signal to a single output.
A Demultiplexer (DEMUX) takes a single input signal and directs it to one of several outputs.
Both circuits use selection or control lines to determine how data flows through the circuit. They are widely used in communication systems, computers, microcontrollers, and digital data-processing systems.
2. Multiplexer (MUX)
A multiplexer is a digital circuit that selects one of multiple input signals and sends it to a single output line.
It is also called a data selector because it selects which input reaches the output.
A multiplexer generally contains:
- Multiple data inputs
- Select lines
- One output
- An optional enable input
The number of select lines required for a multiplexer with inputs is:
This relationship applies when the number of inputs is a power of two.
For example, a 4-to-1 multiplexer has four inputs and requires two select lines because:
3. Block Diagram of a Multiplexer
4-to-1 Multiplexer
Input I₀
Input I₁
Input I₂
Input I₃
MUX
Selects one input
Single Output (Y)
Select lines: S₁ and S₀
The select lines determine which input is connected to the output.
4. Types of Multiplexers
Common multiplexer configurations include:
- 2-to-1 multiplexer
- 4-to-1 multiplexer
- 8-to-1 multiplexer
- 16-to-1 multiplexer
The first number indicates the number of inputs, and the second number indicates the number of outputs.
4.1. 2-to-1 Multiplexer
A 2-to-1 multiplexer has two data inputs, one select line, and one output.
Let the inputs be and , the select line be , and the output be .
Its Boolean expression is:
The bar represents NOT, multiplication represents AND, and addition represents OR.
Truth table
| Select | Output |
|---|---|
| 0 | |
| 1 |
When , input is selected. When , input is selected.
4.2. 4-to-1 Multiplexer
A 4-to-1 multiplexer has four data inputs, two select lines, and one output.
Its select lines are and .
Truth table
| Selected input | Output | ||
|---|---|---|---|
| 0 | 0 | ||
| 0 | 1 | ||
| 1 | 0 | ||
| 1 | 1 |
The Boolean expression is:
Only the input selected by the two select bits contributes to the output.
5. Working Example of a Multiplexer
Suppose a 4-to-1 multiplexer has these inputs:
If the select lines are and , the selected input is .
Since , the output is:
The multiplexer does not combine all four inputs. It selects one input according to the select-line combination.
6. Applications of Multiplexers
Multiplexers are used in:
- Selecting data from multiple sources
- Communication systems
- CPU data-path design
- Microcontroller input selection
- Digital signal processing
- Routing data between registers
- Implementing Boolean functions
- Reducing the number of data lines in a system
For example, a digital system can use a multiplexer to choose which of several sensor signals should be processed by a shared circuit.
7. Demultiplexer (DEMUX)
A demultiplexer is a digital circuit that takes one data input and routes it to one of several output lines according to the select-line combination.
It is also called a data distributor.
A demultiplexer generally contains:
- One data input
- Select lines
- Multiple outputs
- An optional enable input
For a demultiplexer with outputs, the number of select lines is:
For example, a 1-to-4 demultiplexer has one input, four outputs, and two select lines.
8. Block Diagram of a Demultiplexer
1-to-4 Demultiplexer
Single Input (D)
DEMUX
Routes input to one output
Output Y₀
Output Y₁
Output Y₂
Output Y₃
Select lines: S₁ and S₀
The select lines determine which output receives the input signal. In a basic active-high design, the unselected outputs remain LOW.
9. Types of Demultiplexers
Common configurations include:
- 1-to-2 demultiplexer
- 1-to-4 demultiplexer
- 1-to-8 demultiplexer
- 1-to-16 demultiplexer
9.1. 1-to-2 Demultiplexer
A 1-to-2 demultiplexer has one data input , one select line , and two outputs and .
Its Boolean expressions are:
Truth table
| 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
When , the input is routed to . When , it is routed to . If the input is zero, both outputs are zero.
9.2. 1-to-4 Demultiplexer
A 1-to-4 demultiplexer has one input, two select lines, and four outputs.
Truth table
| Selected output | ||
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
In each row, the selected output equals the data input , while all other outputs are zero in a basic active-high design.
The Boolean expressions are:
10. Working Example of a Demultiplexer
Suppose a 1-to-4 demultiplexer has input , with select lines and .
The select combination 10 selects output .
Therefore:
All other outputs remain zero in a basic active-high implementation:
If , every output is zero, regardless of the selected output.
11. Applications of Demultiplexers
Demultiplexers are used in:
- Distributing data to different destinations
- Communication systems
- Memory address and control circuits
- Selecting output devices
- Microcontroller control systems
- Serial data distribution
- Digital signal routing
- Enabling one device among several devices
For example, a controller can use a demultiplexer to route a data signal to one of several output circuits.
12. Difference Between Multiplexer and Demultiplexer
| Feature | Multiplexer (MUX) | Demultiplexer (DEMUX) |
|---|---|---|
| Main function | Selects one input | Selects one output |
| Data inputs | Multiple | One |
| Data outputs | One | Multiple |
| Select lines | Choose the input | Choose the output |
| Data flow | Many-to-one | One-to-many |
| Other name | Data selector | Data distributor |
| Example | 4-to-1 MUX | 1-to-4 DEMUX |
13. Relationship Between MUX and DEMUX
Multiplexers and demultiplexers can work together in a digital communication system.
A multiplexer selects one of several input signals for transmission over a shared data path. At the receiving end, a demultiplexer can route the received signal to the intended destination using matching selection information.
For example:
Multiple Data Sources
Multiplexer (MUX)
Shared Data Channel
Demultiplexer (DEMUX)
Multiple Destinations
The select information must be coordinated between the sending and receiving sides when required by the communication design.
14. Summary
A multiplexer selects one signal from multiple inputs and sends it to a single output. A demultiplexer takes one input signal and routes it to one of several outputs.
The main difference is their direction of data selection: a MUX performs many-to-one selection, while a DEMUX performs one-to-many distribution. Both are essential combinational circuits in digital systems, communication networks, computers, and microcontroller applications.