Multiplexers and DeMultiplexers

Joe Haas
30 Dec 201714:53

Summary

TLDRThis video script offers an insightful explanation of multiplexers and demultiplexers, essential components in digital signal processing. A multiplexer (MUX) is a digital switch that consolidates multiple inputs into a single output, allowing users to select the desired input source for an output device, such as a stereo system. Conversely, a demultiplexer (DEMUX) takes a single input and routes it to one of several outputs, useful for devices like printers. The script delves into the symbols and functions of these components, their practical applications in home electronics, and how they work in tandem. It also provides a detailed look at the internal circuitry of these devices, built from basic logic gates, and their configurations in simulation software, highlighting the enable pins and inverted outputs.

Takeaways

  • 🔌 A multiplexer (MUX) is a digital switch that allows multiple inputs to be selected and sent to a single output.
  • 🎧 Common uses for multiplexers include routing audio from various sources like MP3 players, laptops, and satellite boxes to a single output device like speakers.
  • 🔄 The opposite of a multiplexer is a demultiplexer (DEMUX), which takes a single input and routes it to multiple outputs, such as printing a document to various devices like printers or fax machines.
  • 🔗 Multiplexers and demultiplexers often work together, with the former combining multiple inputs into one signal for transmission and the latter routing that signal to the correct output.
  • 📊 The number of inputs or outputs in a multiplexer or demultiplexer is always a power of 2 (e.g., 2, 4, 8, 16), requiring a corresponding number of selector inputs to determine the active path.
  • ⚙️ Internally, multiplexers are constructed using basic logic gates like AND, OR, and NOT gates, with the specific configuration depending on the number of inputs and outputs.
  • 🛠️ To select a specific input in a multiplexer, the selector inputs are set to enable the corresponding logic path, allowing the desired input signal to pass through to the output.
  • 🔄 In a demultiplexer, the process is reversed; selector inputs determine which output path is enabled, allowing the single input signal to be routed to the desired output.
  • 💡 The concept of multiplexing is essential for efficient data transmission, as it allows multiple signals to be sent over a single communication line, reducing the need for physical wiring.
  • 📚 Understanding the operation of multiplexers and demultiplexers is fundamental to grasping digital communication systems and their applications in everyday technology.

Q & A

  • What is a multiplexer?

    -A multiplexer is a digital switch that allows multiple inputs and a single output, enabling the selection of which input signal is sent to the output.

  • How does a multiplexer select which input to send to the output?

    -A multiplexer uses a set of selector inputs, typically binary, to determine which of the multiple inputs is connected to the single output.

  • What is the abbreviation for a demultiplexer?

    -The abbreviation for a demultiplexer is 'DEMUX', which is the opposite of a multiplexer.

  • How does a demultiplexer differ from a multiplexer?

    -A demultiplexer has a single input and multiple outputs, allowing it to select which output should receive the input signal.

  • What is the relationship between multiplexers and demultiplexers in a system?

    -Multiplexers and demultiplexers often work together, with the multiplexer combining multiple inputs into a single output line, and the demultiplexer then routing that single input to the correct output among many.

  • How are multiplexers and demultiplexers represented in circuit diagrams?

    -In circuit diagrams, multiplexers and demultiplexers are represented by trapezoidal symbols. A multiplexer (MUX) has multiple inputs and a single output, while a demultiplexer (DEMUX) has a single input and multiple outputs.

  • What is the significance of the number of inputs in a multiplexer?

    -The number of inputs in a multiplexer is always a power of 2 (e.g., 2, 4, 8, 16), which corresponds to the number of binary combinations needed to select one input out of the many.

  • Can you explain how a 4-to-1 multiplexer works using basic gates?

    -A 4-to-1 multiplexer uses a combination of AND, OR, and NOT gates to select one of the four inputs based on two selector inputs. The selector inputs determine which path is enabled, allowing the corresponding input to pass through to the output.

  • What is the purpose of the enable pin on a multiplexer chip?

    -The enable pin on a multiplexer chip is used to activate the chip. It is active low, meaning the chip is enabled when a 0 is sent to this pin.

  • How does the number of selector inputs relate to the number of outputs in a demultiplexer?

    -The number of selector inputs in a demultiplexer is determined by the number of outputs. For example, to select one output from 16, you would need 4 selector inputs, as 4 bits are required to represent 16 different combinations.

  • What does the bubble symbol next to the output of a multiplexer or demultiplexer indicate?

    -The bubble symbol next to the output of a multiplexer or demultiplexer in a circuit diagram indicates that the output is inverted, meaning a 0 input will result in a 1 output, and vice versa.

Outlines

00:00

🔌 Introduction to Multiplexers and Demultiplexers

The speaker begins by introducing the concept of multiplexers (MUX) and demultiplexers (DEMUX), explaining that a multiplexer is a digital switch that consolidates multiple input signals into a single output. Examples include connecting various devices like an MP3 player or a laptop to a stereo system. The multiplexer is represented by a diagram with four inputs and one output, where the output can be selected from the inputs. The video also touches on the concept of demultiplexers, which work in reverse, taking a single input and distributing it to multiple outputs. The speaker uses the example of sending a document to various output devices like a printer or a fax machine. The symbols for both MUX and DEMUX are shown, highlighting their respective functions and the way they are represented in circuit diagrams.

05:01

🛠️ Inside a Multiplexer: Basic Gates and Logic

This section delves into the internal workings of a multiplexer, revealing that it is constructed from fundamental logic gates such as AND, OR, and NOT gates, as well as inverters. The speaker explains the logic behind a 4-to-1 multiplexer, where four inputs are selected and sent to a single output based on the settings of two selector inputs. The concept of using binary signals to enable or disable gates within the multiplexer is discussed, with a focus on how a NAND gate behaves when provided with a zero input. The speaker uses a table to illustrate the relationship between the selector inputs and the corresponding output, demonstrating how specific input combinations result in the transmission of a particular input signal to the output.

10:02

🔄 Demultiplexers: Function and Internal Structure

The final paragraph shifts focus to demultiplexers, explaining their function as the counterpart to multiplexers. A demultiplexer takes a single input and routes it to one of several outputs, determined by the settings of selector inputs. The internal structure of a demultiplexer is explored, which, like a multiplexer, is composed of basic logic gates. The speaker uses a table to demonstrate how different combinations of selector inputs result in the input signal being sent to specific output lines. The concept of power-of-two relationships between inputs and outputs for both multiplexers and demultiplexers is reiterated, with an explanation of how the number of selector inputs is determined by the number of possible output combinations. The video concludes with a brief look at how multiplexers and demultiplexers are represented in a simulation software, highlighting the enable pins and the concept of active-low signals.

Mindmap

Keywords

💡Multiplexer (MUX)

A multiplexer is a digital switch that consolidates multiple input signals into a single output line. In the context of the video, it's likened to a device that allows one to select which of several audio sources, such as an MP3 player or a laptop, is sent to a stereo system. The video script uses the term to explain how multiplexing works, where several inputs are combined into one output, which is crucial for understanding data transmission in systems like fiber-optic cables.

💡Demultiplexer (DEMUX)

A demultiplexer is the counterpart to a multiplexer; it takes a single input signal and distributes it across multiple output lines. The video script describes it as a device that can route a document from a single source, like an old computer, to various output devices such as printers or fax machines. This concept is essential for understanding how data is directed to specific destinations in a network.

💡Digital Switch

A digital switch is a fundamental concept in digital electronics, used to control the flow of digital signals. In the video, the multiplexer is described as a type of digital switch that allows for the selection of one input from many to be sent to an output. This concept is key to understanding how multiplexers manage multiple data streams.

💡Input and Output

In the context of the video, inputs and outputs refer to the points at which data enters and leaves a system or device. A multiplexer has multiple inputs and a single output, while a demultiplexer has a single input and multiple outputs. These terms are central to understanding the functionality of multiplexers and demultiplexers.

💡Power of 2

The video script mentions that the number of inputs and outputs in a multiplexer or demultiplexer is always a power of 2 (e.g., 2, 4, 8, 16). This is because digital systems often use binary counting, which is based on powers of 2. Understanding this concept helps to grasp why multiplexers and demultiplexers have a specific number of inputs and outputs.

💡NAND Gate

A NAND gate is a type of logic gate used in digital circuits. The video explains how a multiplexer is built using basic gates like NAND gates. The script uses the NAND gate as an example to demonstrate how a multiplexer can be constructed to select which input is sent to the output.

💡AND Gate

An AND gate is another type of logic gate that the video uses to explain the inner workings of a multiplexer. The script describes how an AND gate can be used to enable certain pathways within a multiplexer, allowing specific inputs to be routed to the output.

💡Inverter Gate

An inverter gate, also known as a NOT gate, is used in the video to describe the components of a demultiplexer. The script mentions these gates as part of the basic building blocks that make up the circuitry inside a demultiplexer, which is used to invert signals to control the routing of data.

💡Selectors

Selectors in the context of the video refer to the inputs used to choose which of the multiple inputs is sent to the output in a multiplexer, or which output is activated in a demultiplexer. The script explains that the number of selectors needed corresponds to the number of inputs or outputs, which must be a power of 2.

💡Enable Pin

The enable pin is a specific input on a multiplexer or demultiplexer chip that must be activated (usually by a low signal, indicated by a circle on the schematic) to enable the device to operate. The video script mentions this as a necessary component for the proper functioning of the multiplexer chip, highlighting its importance in practical applications.

Highlights

A multiplexer is a digital switch that allows multiple inputs to be selected for a single output.

Examples of multiple inputs include an MP3 player, laptop, sound card, digital satellite box, or cable TV box.

A multiplexer is useful for selecting which input device's signal is sent to a single output device, like stereo speakers.

Demultiplexers (or 'DEMUX') are the opposite of multiplexers, having a single input and multiple outputs.

Demultiplexers can route a single input signal to the correct output device, such as a printer or fax machine.

Multiplexers and demultiplexers often work together, with the former combining signals and the latter routing them to specific outputs.

In telecommunications, multiplexing combines multiple signals into one high-speed line, while demultiplexing routes them to the correct recipient.

A multiplexer is constructed from basic logic gates, such as AND, OR, and NOT gates.

The number of inputs in a multiplexer is always a power of 2 (e.g., 2, 4, 8, 16).

Selectors are used to determine which input is routed to the output in a multiplexer.

A demultiplexer is also made from basic logic gates and has a single input with multiple outputs.

The number of outputs in a demultiplexer is a power of 2, and the number of inputs is determined by the number of outputs.

In a multiplexer, enabling a specific input path requires setting all other inputs to '1'.

The operation of a demultiplexer is similar to that of a multiplexer, but in reverse, selecting an output path for a single input.

Multiplexers and demultiplexers can be visualized and simulated using software like Multisim.

In practical applications, multiplexer chips have an enable pin that needs to be set to '0' to activate the chip.

Demultiplexer chips may have inverted outputs, indicated by a bubble on the output pin, which is a design choice for simplicity inside the chip.

Both multiplexers and demultiplexers are essentially switches that can be controlled to direct signals to specific inputs or outputs.

Transcripts

play00:00

in this video I'm going to talk about

play00:02

multiplexers and demultiplexers

play00:05

this is a diagram of a multiplexer a

play00:10

multiplexer is really just a digital

play00:12

switch that allows multiple inputs so

play00:15

here are my multiple inputs right here I

play00:18

have four inputs my mp3 player my laptop

play00:23

sound court card and so forth I might

play00:25

have a digital satellite box or a cable

play00:29

TV box and I want to be able to select

play00:32

which of these inputs goes to my output

play00:34

in this case my output might be my

play00:36

stereo speakers right here so a

play00:38

multiplexer has multiple inputs and a

play00:41

single output and you can select which

play00:44

of these inputs goes to your output and

play00:47

this actually might be something that

play00:48

you have connected at home at least I do

play00:50

I have a bunch of things to connect it

play00:51

into my stereo and I can select which

play00:54

one I want to play over my my sound

play00:57

system to play over my speakers so again

play00:59

multiplexing or a multiplexer is several

play01:03

inputs multiple inputs a single output

play01:06

and you can select which one of those

play01:08

inputs goes to that output

play01:12

ad multiplexer or D max as it's

play01:16

sometimes abbreviated as is the opposite

play01:19

of a multiplexer as you might have

play01:22

expected so I have one input here's my

play01:25

one input this very old-looking computer

play01:27

right here my single input and I have

play01:30

several output choices so perhaps I have

play01:33

a document that I want to print and I

play01:35

can select which of these outputs I want

play01:38

to send my document it might be my laser

play01:40

printer a fax machine and jet or a pen

play01:43

plot or so forth so ad multiplexer it's

play01:46

the opposite of a multiplexer I have one

play01:49

input and multiple output and perhaps

play01:51

you noticed that the multiplexer

play01:54

abbreviated MUX was was the same symbol

play01:58

as the D multiplexer but it was the

play02:00

other way around so my D multiplexer

play02:02

they're both trapezoids one input

play02:04

multiple outputs that's my D multiplexer

play02:07

my multiplexer was the exact

play02:10

in terms of its symbol it looked like

play02:12

that looked like that right it was had

play02:16

multiple inputs multiple inputs and a

play02:20

single output that was my multiplexer

play02:22

abbreviated MUX this is my D multiplexer

play02:26

a single input multiple outputs and you

play02:29

can select where that output should go

play02:32

where you have a bunch of different

play02:33

destinations

play02:35

as you might have expected multiplexers

play02:38

and demultiplexers

play02:40

often work together so here on the Left

play02:43

I have a multiplexer showing multiple

play02:46

inputs combined into one output now this

play02:50

output might be like a high-speed

play02:51

fiber-optic cable or something like that

play02:53

and on the other side I have a d

play02:56

multiplexer taking that single input and

play02:59

routing it to the correct output so

play03:03

multiplexer multiple inputs I have a

play03:05

bunch of inputs here one output D

play03:09

multiplexer that single input and it's

play03:13

it's sending it to the correct output

play03:15

and in this illustration it shows that I

play03:17

have a bunch of conversations all

play03:19

happening at once and these could be

play03:21

conversations between people or

play03:23

computers or whatever and they're all

play03:25

getting combined into this single

play03:27

high-speed line and then it's getting

play03:29

routed to the correct

play03:31

recipient on the other end using

play03:33

multiplexing to combine the inputs and

play03:36

de-multiplexing to take the input and

play03:38

send it to the correct output

play03:41

here's another diagram showing a similar

play03:44

thing actually as the previous diagram

play03:46

where I have a multiplexer in this case

play03:49

it's called a multiplexer demultiplexer

play03:51

because I might have several inputs

play03:54

that's the multiplexing part several

play03:56

inputs going to a single output a fast

play03:59

line as it says and then getting

play04:01

demultiplexed going to the correct

play04:04

output perhaps so that's the D

play04:07

multiplexing part but then on this side

play04:09

the communication might go the other

play04:12

direction as well where I have several

play04:14

inputs so this box is actually a

play04:16

multiplexer demultiplexer here I have

play04:19

might have several inputs

play04:21

going to my fast

play04:23

and then again getting sent to my

play04:26

correct output so depending on which way

play04:28

the communication is going the these

play04:30

boxes could either be multiplexing or D

play04:33

multiplexer either combining several

play04:34

inputs to a single output or taking that

play04:37

single input and sending it to the

play04:39

correct output I just thought this was a

play04:41

nice additional diagram to add

play04:44

now it's time to look inside a

play04:47

multiplexer and see how they work a

play04:49

multiplexer is just built out of basic

play04:51

gates here's a three input and gate for

play04:53

input or gate here's a couple of knock

play04:56

dates a couple of inverter gates and

play04:58

let's see what's going on inside here so

play05:00

this is a 4 to 1 multiplexer I have 4

play05:03

inputs the number of inputs is always

play05:05

going to be some power of 2 it's always

play05:08

going to be 2 to the n in this case it's

play05:10

2 squared 2 squared is 4 but it could be

play05:13

4 inputs a to put 16 and so forth and on

play05:16

the bottom here this is out how I select

play05:19

which of these inputs goes to the output

play05:21

so just real quick before we get into

play05:24

how this works just a jog your memory

play05:26

about how and gates work if I send in a

play05:29

0 to a NAND gate that output is always

play05:33

going to be 0 no matter what the input

play05:36

is so let's let's say I have a switch

play05:38

here called an e if I send in a zero to

play05:40

the other input the outputs always going

play05:42

to be 0 so if you send in a zero to a

play05:45

NAND gate you've effectively disabled a

play05:47

NAND gate it's always going to be 0

play05:49

here's another end date this time I'm

play05:52

going to send in a 1 to this and gate

play05:54

now I have a switch called a so I'm

play05:57

ending together a with a 1 that output

play06:01

is going to be whatever a is in other

play06:03

words if I switch a on I'll get a 1 out

play06:06

if I switch a to the 0 I'll get a 0 out

play06:10

so effectively if I make all the other

play06:14

inputs to a NAND gate ones the output

play06:17

will be whatever data is coming in on

play06:19

line a and that's the basics that's the

play06:22

basis for how these things work in other

play06:24

words if I want d0 to be transmitted to

play06:29

my output I have got to make sure that

play06:31

all the other inputs both these inputs

play06:33

are ones well how am I going to do that

play06:36

look at the table right here it says if

play06:38

I make a and B both zeros my output will

play06:42

be d0 let's see why if I if I make these

play06:45

both zeros I'm nodding them right here

play06:48

so that means they're gonna be ones I'll

play06:50

have a 1 going into both of these things

play06:53

and so yes in fact whatever d0 is will

play06:57

be my output and if we take a quick look

play07:00

at the other end dates at the same time

play07:04

let's see remember I have if I have 0 is

play07:07

going in so these two lines will be 0

play07:09

let's just check out the other ones real

play07:11

quick so this would be a 1 0 this would

play07:16

be a

play07:17

0 1 and this would be a it looks like I

play07:23

have a 0 0 yeah so notice when the

play07:27

inputs are 0 0 the only the only and

play07:30

gate that's enabled the only one that

play07:33

has two ones is this top one right here

play07:35

and I think if you if you follow the

play07:38

other

play07:39

examples like if I wanted to check out

play07:41

what happens when B is 0 and a is a 1 I

play07:45

think you will find that d1 will get 2

play07:49

ones and the output will come from this

play07:52

and gate it's really not that

play07:54

complicated but I hopefully you get

play07:56

what's going on here so again a

play07:58

multiplexer just built out of basic

play08:01

hands and or gates and it's always going

play08:03

to be some power of 2 in this case I

play08:06

have 4 inputs and I need to

play08:09

two digits to select which of the inputs

play08:13

goes to the output

play08:14

imagine I had 8 inputs let's say I had 2

play08:18

to the 3rd or 8 inputs how many how many

play08:23

different

play08:25

inputs what I need on the bottom to

play08:27

select which one I which one went to the

play08:30

output well it would be 3 why could I

play08:33

need 3 well because in binary you need 3

play08:35

bits to get 8 possible combinations from

play08:40

0 0 0 to 1 1 1 that's 0 to 7 that's 8

play08:44

possible combinations so I already need

play08:46

3 inputs on the bottom for my selectors

play08:50

if I had eight data inputs and of course

play08:54

if I had sixteen data inputs I would

play08:58

need four different selectors a B C and

play09:02

D perhaps on the bottom hopefully this

play09:04

makes sense now let's take a look at D

play09:06

multiplexers so here is what the inside

play09:10

of a demultiplexer looks like and

play09:12

amazingly it is also made out of basic

play09:15

AIDS so here are a bunch of three input

play09:18

NAND gates here's a couple of not gates

play09:21

or inverter gates and let's see how this

play09:23

works remember D multiplexer I have my 1

play09:27

input source and I can decide where I'm

play09:31

going to send that and put which one of

play09:33

these 4 outputs and of course as you

play09:35

guessed it the number of outputs is

play09:38

always going to be a power of 2 it's

play09:40

going to be 2 to the something to be n 2

play09:43

4 8 16 32 and so forth and the number of

play09:48

inputs is is n if well well go so let's

play09:52

say that I want my output to go to d0

play09:55

well as you already know if you want to

play09:59

transmit whatever the input is I've got

play10:02

to make the other inputs both ones well

play10:05

how am I going to do that let's look at

play10:07

this table right here if I make them

play10:09

both zeros let's do that I'll make a and

play10:13

B both zeros so if a 0 and B is a 0

play10:16

coming out of here I will have a 1 and 1

play10:23

and going into here yes I have two ones

play10:26

so my my input coming from X will be

play10:31

transmitted to d0 if I make them both 0

play10:33

so yes the output will be

play10:36

d0 the others will be just zeros if I

play10:40

want my data to come out of d1 or to be

play10:43

sent to d1 I make be a 0 and a 1 and you

play10:48

can follow through this this is very

play10:50

similar to the multiplexer diagram the

play10:52

whole idea is if you want to enable a

play10:55

NAND gate you've got to send all of the

play10:58

other inputs ones and then this last imp

play11:01

in this case it will be coming from X

play11:03

whatever X's will be transmitted to your

play11:06

output and again I'm over here this is

play11:09

the diagram of a demultiplexer one input

play11:13

multiple outputs and you can select

play11:15

where your input gets sent by using

play11:19

these selectors on the bottom and if I

play11:23

have let's say for example let's say I

play11:25

have

play11:26

16 outputs also known as two to the

play11:30

fourth I will need four different input

play11:33

selectors right because to get 16

play11:36

possible numbers in binary I need 4 bits

play11:40

I need to go from 0 0 0 0 to 1 1 1 1

play11:44

that's from 0 to 15 that's 16 possible

play11:47

combinations alright well hopefully that

play11:50

makes sense a couple more slides to go

play11:53

so here is a look at what a multiplexer

play11:57

will look like if you work in multi sim

play11:59

and here's a bunch of different

play12:00

multiplexer chips here's a 4 input

play12:03

multiplexer right I have 4 inputs and

play12:05

you can see that I will need 2 switches

play12:08

to select which of these 4 inputs I want

play12:11

and here is an 8 input multiplexer in

play12:15

this case I'm going to need 3 inputs to

play12:18

select which which of these inputs goes

play12:21

to my output and of course if I have a

play12:23

16 input multiplexer I'm going to need 4

play12:27

switches this this other little pin here

play12:31

this is an enable pin and notice it has

play12:33

a little bubble a little circle right

play12:35

there that circle means in order to

play12:37

enable this particular chip you need to

play12:40

send it a 0 that little circle indicates

play12:44

that it wants a 0 to do its job so

play12:47

another way of saying it is it's active

play12:50

low you will activate this chip if you

play12:52

send it a 0 notice that all the chips

play12:55

have have that little enable right there

play12:57

so in order for this chip to work

play12:58

properly and I don't know why they

play13:00

designed it this way in addition to your

play13:02

inputs and selectors and all that kind

play13:04

of stuff you have to send this little

play13:06

activation pin a 0 all right let's take

play13:09

a look at Dien bulky flexors finally

play13:13

let's take a look at the diagrams of

play13:16

demultiplexers so this is what it's

play13:18

going to look like in multi-sim if you

play13:19

work with demultiplexers here i have a a

play13:24

for output d multiplexer and of course i

play13:28

need two switches to determine which

play13:29

output it goes to this is my input right

play13:32

here here I have a one to eight D

play13:36

multiplexer then this is my data input

play13:39

line and I need of course three switches

play13:41

to determine which of these outputs it

play13:43

goes to and then I have my sixteen

play13:46

twenty multiplexer I need four switches

play13:49

to determine where my data is going to

play13:52

sent be sent from these sixteen right

play13:54

four switches 0 0 0 0 2 1 1 1 1 is 15 or

play14:00

rather 16 possible combinations i need

play14:04

16 combinations to determine which of

play14:07

these 16 outputs it's going to go to and

play14:09

notice also at the end these little

play14:12

bubbles here mean that the output is

play14:14

going to be inverted it's done that I

play14:17

it's I know that seems weird some chips

play14:19

are built like this and I presumably

play14:21

it's because it made the logic inside

play14:23

the chip a little bit simpler you really

play14:25

don't need to worry about that too much

play14:27

with multiplexers we'll talk more about

play14:29

that when we talk about other chips so

play14:32

hopefully you have a basic understanding

play14:34

of the difference between a multiplexer

play14:37

and a demultiplexer again they're just

play14:39

switches multiplexer multiple inputs 1

play14:43

output D multiplexer 1 data input

play14:46

multiple outputs and you can select

play14:49

where you want that output to go all

play14:51

right that's it

Rate This

5.0 / 5 (0 votes)

Связанные теги
Digital ElectronicsMultiplexersDemultiplexersMUXDEMUXElectronic SwitchesData TransmissionCircuit DesignLogic GatesDigital Signals
Вам нужно краткое изложение на английском?