Ugenz Academy/IoT Tutorial

Multiplexers And Demultiplexers

7 min read1,339 words

Reading progress

Keep learning

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 NN inputs is:

S=log⁡2N\boxed{S=\log_2 N}

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:

22=42^2=4

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 I0I_0 and I1I_1, the select line be SS, and the output be YY.

Its Boolean expression is:

Y=S‾I0+SI1\boxed{Y=\overline{S}I_0+SI_1}

The bar represents NOT, multiplication represents AND, and addition represents OR.

Truth table

Select SSOutput YY
0I0I_0
1I1I_1

When S=0S=0, input I0I_0 is selected. When S=1S=1, input I1I_1 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 S1S_1 and S0S_0.

Truth table

S1S_1S0S_0Selected inputOutput
00I0I_0I0I_0
01I1I_1I1I_1
10I2I_2I2I_2
11I3I_3I3I_3

The Boolean expression is:

Y=S1‾,S0‾I0 +S1‾S0I1 +S1S0‾I2 +S1S0I3\begin{aligned} Y={}&\overline{S_1}\\,\overline{S_0}I_0\\\ &+\overline{S_1}S_0I_1\\\ &+S_1\overline{S_0}I_2\\\ &+S_1S_0I_3 \end{aligned}

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:

  • I0=0I_0=0
  • I1=1I_1=1
  • I2=1I_2=1
  • I3=0I_3=0

If the select lines are S1=1S_1=1 and S0=0S_0=0, the selected input is I2I_2.

Since I2=1I_2=1, the output is:

Y=1\boxed{Y=1}

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 NN outputs, the number of select lines is:

S=log⁡2N\boxed{S=\log_2 N}

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 DD, one select line SS, and two outputs Y0Y_0 and Y1Y_1.

Its Boolean expressions are:

Y0=DS‾\boxed{Y_0=D\overline{S}} Y1=DS\boxed{Y_1=DS}

Truth table

DDSSY0Y_0Y1Y_1
0000
0100
1010
1101

When S=0S=0, the input is routed to Y0Y_0. When S=1S=1, it is routed to Y1Y_1. 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

S1S_1S0S_0Selected output
00Y0=DY_0=D
01Y1=DY_1=D
10Y2=DY_2=D
11Y3=DY_3=D

In each row, the selected output equals the data input DD, while all other outputs are zero in a basic active-high design.

The Boolean expressions are:

Y0=DS1‾,S0‾Y_0=D\overline{S_1}\\,\overline{S_0} Y1=DS1‾S0Y_1=D\overline{S_1}S_0 Y2=DS1S0‾Y_2=DS_1\overline{S_0} Y3=DS1S0Y_3=DS_1S_0

10. Working Example of a Demultiplexer

Suppose a 1-to-4 demultiplexer has input D=1D=1, with select lines S1=1S_1=1 and S0=0S_0=0.

The select combination 10 selects output Y2Y_2.

Therefore:

Y2=1\boxed{Y_2=1}

All other outputs remain zero in a basic active-high implementation:

Y0=0,Y1=0,Y3=0Y_0=0,\quad Y_1=0,\quad Y_3=0

If D=0D=0, 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

FeatureMultiplexer (MUX)Demultiplexer (DEMUX)
Main functionSelects one inputSelects one output
Data inputsMultipleOne
Data outputsOneMultiple
Select linesChoose the inputChoose the output
Data flowMany-to-oneOne-to-many
Other nameData selectorData distributor
Example4-to-1 MUX1-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.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy