The Emulating a Digital MUX software example demonstrates how to use GPIO interrupts to emulate a digital MUX. Similar to a logic based MUX, the MCU uses select signals (S0 and S1) to determine which input channel (C0, C1, C2, and C3) is output at a given time. Doing this through the MCU not only eliminates the need for an external MUX, but also allows flexible pin assignments that can help aid PCB routing. This specific example emulates a 4-input channel, 2-select-signal digital MUX.
Figure 1-1 displays the functional block diagram for this subsystem.
This application requires seven GPIO pins and GPIO interrupts.
Subblock Functionality | Notes |
---|---|
GPIO | Pin groups are referred to as INPUT, OUTPUT, and SELECT in code |
Based on the requirements in Table 2-1, the compatible devices are listed in Table 3-1. The corresponding EVM can be used for quick evaluation.
Compatible Devices | EVM |
---|---|
MSPM0C | LP-MSPM0C1104 |
MSPM0Lx | LP-MSPM0L1306 |
MSPM0Gx | LP-MSPM0G3507 |