Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why does a TCA9548A acknowledge while the sensor stays unreachable on a 24 MHz controller board?

A 24 MHz active oscillator provides the reference on a controller board. A TCA9548A routes sensors with identical addresses to different connectors. After a bus driver change, the analyzer shows the switch acknowledging the channel byte. The next sensor read sometimes fails and sometimes produces a plausible value. Check whether the channel byte was followed by a STOP. The data sheet specifies that the selected channel takes effect after STOP. Acknowledgment shows the control byte arrived. It does not establish that the downstream bus has been connected.

Finish the route selection before addressing the sensor

With all three address inputs low, the switch has the seven-bit address 0x70. Select channel 3 alone with control byte 0x08. A capture should contain START, the switch write address, ACK, the control byte, ACK and STOP. Each bit selects the corresponding channel when high. Channel numbering here starts at zero. If connector labels are numbered from one, trace their schematic nets to the switch before changing a channel value that may already be correct.

Start the downstream transaction afterward. If the sensor requires a register-pointer write followed by a repeated START, that repeated START belongs in the downstream transaction. The earlier STOP has already applied the switch selection. A common failure combines routing and sensor access in one library transaction. To preserve a combined transfer, the library emits a repeated START where the switch needed a STOP. Source code still appears to select the channel before reading. Only the wire capture establishes the ordering.

Time spent waiting does not substitute for STOP. A host may pause for hundreds of microseconds in an open transfer without applying the channel selection as intended. Check the analyzer's decoded STOP against the raw signal. SDA must rise while SCL is high. A glitch or a slow rise can cross the analyzer's threshold differently from the device's threshold. When the digital decode disagrees with downstream behavior, probe SCL and SDA on both sides of the switch.

Calculate bus bits and measure the actual route-change time

Assume the clock configured by the controller from the 24 MHz active oscillator measures 400 kHz and no device stretches it in this test. The switch address and control byte occupy nine clocks each, including acknowledgment. The eighteen periods take 45 µs at 400 kHz or 180 µs at 100 kHz. STOP and the next START also have timing requirements. Bus-free time and software scheduling add to the measured interval. Check the controller's timing registers and the actual bus high and low times. Dividing the nominal reference by the nominal bus frequency is insufficient to determine either.

For eight same-address sensors with one selection write per sensor, the route-byte portion alone adds eight times 45 µs, or 360 µs, per scan at 400 kHz. Cutting out STOP is not a throughput improvement. If the application permits several reads from one channel before moving on, that grouping reduces switch writes. Check whether the changed sampling times still meet the application requirement. Temperature channels and fast feedback channels can need different schedules. Preserve the intended port number with each reading so that a routing mistake stays visible during throughput testing.

Fast mode also requires bus-free time between STOP and the next START. TI gives a 1.3 µs minimum in Fast mode and 4.7 µs in Standard mode. When the routing and bus-free intervals are correct but only 400 kHz fails, measure the affected branch's SCL high and low widths and its data rise time. TI specifies at least 0.6 µs high, at least 1.3 µs low and an input rise-time maximum of 300 ns for Fast mode. Repeat with the longest real harness and its load. A pass on an empty connector or short lead cannot distinguish a missing STOP from a marginal edge under load.

Prove that the returned value belongs to the selected branch

Give two same-address sensors distinct known inputs, for example a steady low reading on one and a steady high reading on the other. Select one branch at a time and alternate. A read-success percentage misses a valid response from the old branch. With both channels accidentally enabled, same-address acknowledgments may overlap and either target may pull read bits low on the shared open-drain bus. ACK cannot count the responders. Record the connector number, switch bit and expected reading together and check that only the intended bit is set.

For a separate recovery check, deliberately hold one downstream branch from returning high using a controlled fixture or a known faulty branch. Observe the upstream side when the switch's active-low reset deselects all channels and reinitializes its bus state. Recovery after isolation locates the fault on that branch. Confirm that the reset source can operate while the host bus is held low. The 24 MHz active oscillator remains part of the controller's electrical acceptance checks. For this failure, the STOP, traces across the switch and distinct downstream data identify whether routing actually happened.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.