All trademarks are the property of their respective owners.
MCUs are often used to monitor analog inputs by measuring the voltage via the internal ADC of the MCU. Frequently, a buffer may need to be added to source current to the ADC in cases where the analog signal being monitored does not drive enough current for the ADC to register the voltage variations. The amount of these signals an MCU can register is limited by the amount of I/O pins incorporated in their architecture. In a scenario where an MCU has only a single ADC input available but 4 sensing elements that require monitoring, the input count would fall 3 short of the system requirements. This scenario can be resolved with a multiplexing stage between the MCU and the sensors, as Figure 1-1 shows. This eliminates the need for a second processor or investing in a larger, pricier MCU or extra buffers that may be needed saving time, money, and reducing system size and complexity.
When selecting a proper multiplexer for your design it is important to first understand the equivalent circuit of the multiplexer, using passive components. Ideally, these switches will appear to be invisible to the circuit, as if they are not there. The reality is, as with any component, there is an accumulation of parasitic capacitances and resistances associated with the device in its use in real world applications. Figure 1-2 shows a simplified circuit model of a FET switch when the switch path is selected.
The parasitic on-resistance (RON) and on-capacitance (CSON/CDON) create a low pass filter through the chip. Although the load impedance heavily impacts the bandwidth of the multiplexers, minimizing the RON and CON can help limit bandwidth limitations associated with the switch itself. The leakage current introduced can contribute to DC errors and should be limited as much as possible for high accuracy applications. Some of the important considerations when selecting a multiplexer for expanding the MCU are the voltage range of the input signals, on-resistance, on-capacitance, on-leakage, and charge injection. These are explained in further detail in the Multiplexer Specifications section.
Similarly, MCU expansion can be used in generic GPIO pins on the MCU, where the ADC is not necessary to utilize. Here, there may be a need to monitor digital triggers or digital signals or send a plethora of digital cues. This may take a toll on the total GPIO count while requiring fairly limited processing. Multiplexing across these digital I/Os, as shown in Figure 2-1, can reduce the number of GPIOs required to do this.
It is important to note that TI multiplexers are passive FET switches that simply allow any signal through as long as they meet the recommended operation conditions listed in the datasheet. While many of multiplexers and switches from TI are defined as analog multiplexers and signal switches, this does not limit their ability to pass through digital signals. That is to say, digital signals can pass through these analog multiplexers as well, as long as they meet the recommended operation conditions for the switch in use. The important considerations to take into account when picking a multiplexer when implementing GPIO expansion is the On-Capacitance, Leakage Current and Signal Voltage Range. For more information see the Multiplexer Specifications section.