How a Multiplexer Works.
A multiplexer is a switch that connects many inputs to one output according to a given digital code. In fact, multiplexers come in two kinds: analog and digital. Analog ones are built on field-effect transistors and pass the signal in both directions, while digital ones replicate the signal from the selected input to the output. Below we'll talk about the analog multiplexer.
As written above, the channel is selected according to a given digital code, as shown in the picture below.

Let's imagine the following situation: we have an ADC and several analog sensors whose information it must process. Since there is only one ADC and many sensors, it can only service them one at a time, and a multiplexer will help it with this.

Using an ordinary voltage divider and a multiplexer, you can attenuate a signal by the required factor.

And by adding a multiplexer and a few resistors to the feedback of an op-amp amplifier, you can amplify a signal by the required factor.

In the pictures above the multiplexer was drawn schematically for easier understanding; in schematics it is drawn like this.


Now that we know where a multiplexer is used, let's look at how it differs from a switch.
First, modern multiplexers are built using CMOS technology, and as a result the open channel has some resistance; this resistance can be less than 1 Ohm and depends on the supply voltage. The channel resistance can be found in the datasheet; it is denoted Ron.
Second, the voltage the multiplexer can switch, as well as the voltage on the control inputs, must not exceed the supply voltage. The maximum switching current of modern multiplexers can reach 400mA. Again, the maximum current can be found in the datasheet; it's denoted differently in different datasheets.
Third, since the multiplexer is built using CMOS technology, its structure contains capacitances that degrade its characteristics. The equivalent circuit of a two-channel multiplexer looks like this.
The equivalent circuit also shows current sources representing the leakage current, which in turn can be a source of error.

Fifth, switching doesn't happen instantly: it takes some time for the switch to open/close, determined by the time needed to recharge the gate-channel capacitance.

The article describes only a small part of how a multiplexer works, but one that many can understand; I'll leave here a document I found while preparing the article, which describes all this in much more detail and gives recommendations for using multiplexers.multiplexer.pdf
As written above, the channel is selected according to a given digital code, as shown in the picture below.

Let's imagine the following situation: we have an ADC and several analog sensors whose information it must process. Since there is only one ADC and many sensors, it can only service them one at a time, and a multiplexer will help it with this.

Using an ordinary voltage divider and a multiplexer, you can attenuate a signal by the required factor.

And by adding a multiplexer and a few resistors to the feedback of an op-amp amplifier, you can amplify a signal by the required factor.

In the pictures above the multiplexer was drawn schematically for easier understanding; in schematics it is drawn like this.


Now that we know where a multiplexer is used, let's look at how it differs from a switch.
First, modern multiplexers are built using CMOS technology, and as a result the open channel has some resistance; this resistance can be less than 1 Ohm and depends on the supply voltage. The channel resistance can be found in the datasheet; it is denoted Ron.
Second, the voltage the multiplexer can switch, as well as the voltage on the control inputs, must not exceed the supply voltage. The maximum switching current of modern multiplexers can reach 400mA. Again, the maximum current can be found in the datasheet; it's denoted differently in different datasheets.
Third, since the multiplexer is built using CMOS technology, its structure contains capacitances that degrade its characteristics. The equivalent circuit of a two-channel multiplexer looks like this.
- The picture shows that there is some capacitance Css and Cdd between the channels, through which the signal from one channel can leak into another.
- The presence of capacitance Cds means that at high frequencies the signal passes through an open switch.
- The resistance Ron together with the capacitance Cd forms a low-pass filter that limits the bandwidth.
The equivalent circuit also shows current sources representing the leakage current, which in turn can be a source of error.

Fifth, switching doesn't happen instantly: it takes some time for the switch to open/close, determined by the time needed to recharge the gate-channel capacitance.

The article describes only a small part of how a multiplexer works, but one that many can understand; I'll leave here a document I found while preparing the article, which describes all this in much more detail and gives recommendations for using multiplexers.multiplexer.pdf


