After I²C is raised from 100 kHz to 400 kHz, two independent clock reads can arrive too close together. An ACK in each transaction does not establish that the spacing is compliant. On the Epson RX-8035 SA/LC, an RTC with a built-in 32.768 kHz crystal, measure from the first STOP to the next START at the device pins. Byte rate, callback timing, and the duration of one transaction are different quantities.
The RX-8035 application manual lists this recovery time as tRCV and specifies at least 62 μs in its communication instructions. It also supports 400 kHz SCL under the applicable operating conditions. The two limits apply to different intervals and neither determines the other. Configuring a generic controller for Fast-mode does not prove that it enforces a device-specific recovery interval.
Distinguish the two types of boundary
A calendar read often writes an address pointer, uses a repeated START to switch into reading, and issues STOP at the end. Electrically this is one combined transaction. Its repeated START is not the beginning of a new transaction after a STOP. Inspect the waveform and the read sequence the manufacturer permits, not just the number of application calls. A library may split the pointer write and data read into independent transactions, creating an actual STOP-to-START gap where none existed before. The manual also requires START to STOP within 500 ms. Combining transactions or adding an internal pause does not remove this independent limit.
With SCL high, a rising SDA transition forms STOP and a falling SDA transition forms START. Measure between the actual transitions; use both the protocol decode and the analog levels to confirm the edges. Some drivers notify software before the hardware has produced STOP; others notify afterward. A delay started at an early callback may not fall entirely inside the required gap. Starting at a later event does not shorten the gap, but can add unnecessary latency. Before adding a sleep, check what the controller actually puts on the bus.
The manual explains that calendar carries that occur during access are corrected during the recovery period. Test near second, minute, or date rollovers as well as checking a string of ACKs during idle operation. One unexpected calendar jump does not establish that short recovery caused it or that the internal crystal stopped. First find out whether the waveform shows a short gap. Then lengthen only that interval, keep the power and read sequence unchanged, and see whether the result is reproducible. Data consistency within a transaction still has to follow the device's documented read rules.
Include the gap in the best-case latency calculation
Consider an ideal example. Five independent reads are sent to the same device, each with an address for writing, a pointer, an address for reading, and one data byte. These are four segments with a response slot. Even when the last data byte is followed by NACK, each segment uses nine SCL clocks, so five transactions use 180 pulses. At 400 kHz the ideal shifting time is 450 μs. Four intervening gaps at the 62 μs minimum add 248 μs. Their sum of 698 μs is only a theoretical lower bound. It excludes START and STOP setup overhead, controller delays, bus contention, and any idle interval after the final transaction. If another task reads immediately, the boundary to that next group must also be checked.
At 100 kHz with the same assumptions, shifting takes 1800 μs and the four gaps still take at least 248 μs, for a lower bound of 2048 μs. Slower SCL lengthens shifting but does not automatically change the actual STOP-to-START gap. Equally, a fourfold SCL increase does not quadruple application throughput. With a 1 ms control deadline, Fast-mode only leaves a theoretical 302 μs for overhead; it gives no product-level guarantee. The slower case already exceeds the deadline before overhead. Change the read sequence, schedule, or requirement rather than shortening the mandatory recovery time.
Measure the existing driver too. If the closest pair shows only 18 μs on the scope, it is already 44 μs short of 62 μs. The correction should cover the difference and leave room for resolution, scheduling granularity, and the earliest execution path. Then remeasure the shortest physical gap. Simply adding 44 μs to a delay setting cannot establish compliance: even when the average grows, the shortest gap under stress can still be wrong if the timer starts from the wrong event.
Put the rule into driver and replacement validation
The driver can retain the last completion time for the device or use an appropriate controller idle constraint so that subsequent requests share the same rule. Calendar refresh, alarm reads, and diagnostic polling all need to observe it. A diagnostic tool using another driver instance does not create extra recovery time on the same hardware. On a shared bus, do not assume that addressing another device substitutes for the required recovery period without confirmation. Capture the real boundaries and record the addresses and any intervening START before applying the project's validated bus policy.
Verify the original and new driver paths, different bus loads, and the real features that issue consecutive reads. Record the shortest gap, trigger conditions, supply, firmware revision, and calendar data. Save a worst-case capture as a regression case and rerun it after a library update, DMA change, or transaction merge. An oscilloscope checks the electrical transitions, a logic analyzer reconstructs the sequence, and software logs identify the caller. Each supplies a different part of the evidence.
When sourcing a substitute, compare more than 32.768 kHz, interface type, and maximum SCL. Compare the minimum interval between transactions, whether the planned combined reads are supported, and calendar readback around rollover. Record the manual revision and exact part suffix instead of treating the RX-8035 timing as a rule for every Epson module. A substitute may fit the footprint and still require a new driver. Record both the firmware change and validation on the original board as approval conditions.
If the system can combine several operations, first confirm that the sequence still means the same thing. Sequential address reads apply only to contiguous registers that may be accessed. Crossing reserved locations, combining data groups with incompatible read procedures, or collapsing samples intended for different times can change the result. Retain the original parsing as a reference and validate both request sequences with the same application input rather than selecting on latency alone. For a real-time device, accept the shortest measured recovery gap and the longest application response separately. Surplus in one budget cannot offset a shortfall in the other.
Crystal RTC I²C read checklist
| Check | Capture | Acceptance rule |
|---|---|---|
| Transaction boundary | Previous STOP, next START, and their difference | Measure at the device, not in application calls |
| Combined read | Repeated START and final STOP | Check the approved sequence and transaction duration separately |
| Batch access | Shortest gap, total latency, and stress condition | Meet both recovery and application deadlines |
| Substitute | Part, manual, driver revision, and rollover results | Do not infer compatibility from frequency or ACK alone |
Frequently asked questions
Can 62 μs be divided by four at 400 kHz?
No. The 400 kHz figure describes SCL transfer speed. The 62 μs limit is the elapsed time from a real STOP to the next START, not a number of SCL periods that scales with clock rate.
How many recovery gaps are there in five reads?
From the start of the first to the end of the fifth there are four intervening gaps. For continuous batches or another immediately following task, also check the gap from the fifth STOP to the next START.
