An analog multiplexer can briefly connect an unintended channel when several address bits change one after another. The final address may be correct and the software may never request the intermediate value, but the physical pins still present it. This is especially visible when channels sit at widely different voltages.
Follow the pin states, not just the variable
The TMUX1108 data sheet provides an address-controlled decoder and an enable input that turns all switches off when inactive. Use the exact truth table and timing for the selected part. Break-before-make prevents specified overlap during switching; it does not make a sequence of valid but unintended address codes disappear.
For example, changing a three-bit address from 011 to 100 through separate GPIO writes can pass through 010 and 000, depending on write order. If a pause or interrupt occurs between writes, an unintended selection may last much longer than an internal switch transition. Updating a software variable atomically does not guarantee an atomic update of pins on different hardware ports.
Choose an update sequence
One option is to disable the multiplexer, wait for the specified off behavior, change the address, allow the controls to settle, and then enable the intended channel. Another is a hardware-latched control interface that transfers the address together. A single port write can reduce external skew, but still requires checking the device’s response and logic thresholds.
- Capture all address pins, enable, and the analog common node.
- Exercise transitions in which every address bit changes.
- Insert a deliberate firmware delay between individual writes.
- Verify the all-off interval is acceptable for the receiving circuit.
- Wait for analog acquisition after the final channel becomes active.
Protect the measurement during transition
An unintended source can charge the common-node capacitance and lengthen settling even if the ADC does not sample during the brief selection. Distinguish this voltage history from charge injection by changing intermediate channel voltages while keeping the desired endpoints fixed. Do not leave unused analog channels floating if their defined treatment matters to the sequence.
Combine the update test with channel settling measurements and switch charge-injection testing. If the multiplexer is in a feedback path, separately verify that disabling it does not remove required feedback. Preserve the physical pin-update sequence as part of the interface contract, since a firmware refactor can change it without altering the final channel number.
Move from reading to a build-ready project
Use the fabrication and assembly checklists to prepare drawings, production files and test requirements.
Open the DFM checklist