The old revision of an RTC module responds after power-up. The new module occasionally stops partway through a register read. A scope shows SCL held low, so someone suspects the board's crystal stopped. Leave the crystal in place while checking the bus. I²C generally uses open-drain lines, and more than one device can pull SCL down. Some targets stretch the low interval until they can proceed. Identify who is pulling it down, how long it stays there, and whether the same transaction resumes on release.
When the controller wants SCL high, it releases the line and the pull-up raises it. If another device still pulls it low, no high level appears yet. In normal clock stretching, one low phase is longer than those around it, then the bus proceeds. Slow analog rise can also delay the point at which a receiver sees high. A driven low phase may remain flat, while an underpowered or heavily loaded pull-up starts rising slowly after release. Use the analog waveform alongside the digital decode to distinguish these cases.
Recognize three different waveforms
Assume one controller and one target that supports stretching. The ordinary period is 10 µs. During one byte, SCL stays low for an extra 80 µs, rises normally, and the same transaction continues. This hypothetical trace makes target stretching worth investigating. A software timeout of 50 µs would abandon the read before release. Improving the oscillator from 50 ppm to 10 ppm does not shorten the target's 80 µs wait to within that timeout. Reproduce the same instruction and device state and log the low duration and timeout point.
The second pattern follows a controller reset: SCL can toggle, but SDA remains low. A target might still believe that a byte is in progress. NXP's I²C manual describes bus clear when SDA is stuck, using nine recognizable clock pulses to allow the target to release the data line. Confirm that the controller can take over safely in this hardware and current mode. Inspect the actual number of valid transitions before deciding whether to reinitialize or use the approved device reset procedure.
The third pattern is SCL continuously low, with no high level even after release. Software issuing nine operations does not establish nine pulses on the wire. NXP recommends a hardware reset when available or a power cycle under the system's design. Check for shorts, unpowered-device clamp paths, missing pull-ups, isolator state, and a device actively pulling low. Forcing push-pull high can cause contention. Leave that out of a recovery script without board validation.
Validate the controller, target, and hardware together
Start with one controller, one target, and a short connection. Probe SCL and SDA at the device and record supply state, instruction, and read or write direction. Restore adapters, long wiring, another target, and different power sequences one step at a time. Check the device documentation for pull-ups, supported bus speed, clock stretching, and reset behavior where the fault returns. If a second controller shares the bus, distinguish normal arbitration and avoid recovery during its transaction.
For a same-package replacement, purchasing can ask whether the target stretches at the selected mode and speed, whether the controller waits for actual SCL high, and whether the target can reset independently. Check level shifters and external pull-ups by specification and photos. The RTC's crystal can run while I²C communication is stalled, and successful register access can coexist with an RTC that is not counting. Test the interface and timekeeping separately.
A production test also needs a recovery check. Read known registers after power-up, reset the controller deliberately, and check whether both access and RTC counting recover. Save good and failed traces, the byte at timeout, and the recovery coverage. A future report of a low clock line can then be classified as a recoverable stretch, stuck SDA, or SCL that cannot rise.
After timeouts, check the state of the interrupted operation. A failed read can often restart, but a partial configuration write can require checking registers already written. A responding device address verifies bus access. Rerun the application test to verify functional state before releasing a replacement module.
