Measure the gap between I²C accesses before replacing the oscillator. On the Epson RX-8025 SA/NB, clock-register updates are temporarily held during communication. The device makes up a pending seconds carry during recovery after the access. The manual requires at least 62 μs from STOP to the next START. Polling that shortens this interval may interfere with the correction. Successful data transfers alone do not prove that the clock keeps up under repeated access.
Check two independent timing limits
The AC table and Section 8.8.3 in the Japanese ETM10J-05 manual give two boundaries. First, the access from the initial START to STOP must finish within 0.5 s, including any repeated START. Second, the next START must be at least 62 μs after STOP. The first limits how long one access occupies the device; the second leaves time for internal work after the access. Changing speed or polling frequency can change one interval without automatically fixing the other.
The manual also explains that a repeated START restarts the hold and internal wait. Repeated starts in quick succession can therefore extend the pause. This does not prohibit a combined read that completes according to the manual. Do not count a repeated START as a STOP or count time spent waiting within an unfinished transaction as post-STOP recovery. An internal mechanism can resume the clock and reset the interface after a missing STOP, but it is not a substitute for the normal recovery gap.
The correction can make up only one seconds carry. Do not treat the hold like an unlimited software queue that catches up if you later leave the bus quiet for long enough. If the problem crosses several expected second boundaries, keep the raw clock and bus records. Then assess whether the time is still usable under the product requirements. A correctly formatted register value is not proof of valid time.
Short accesses can still leave too little recovery time
Suppose two transactions each last 0.20 ms and the measured gap is only 10 μs. Both are comfortably under 0.5 s, but the gap is 52 μs short of the minimum. With a measured gap of 80 μs, the margin over the minimum would be 18 μs. These intervals refer to physical edges decoded at the device. The example does not predict that every 52 μs shortfall loses a second or that an 18 μs margin covers every software and instrument uncertainty.
A successful return from a bus API does not necessarily coincide with the physical STOP. Some calls return later, while others queue work for a controller. Scheduling, retries and bus sharing also affect the next START. A delay inserted in an API can be part of the implementation, but the shortest measured gap determines qualification. If another task can initiate an access during the delay, controlling only one polling loop may not work. Check the actual effect of relevant conditions on a shared bus rather than guessing from one software log.
Save SDA, SCL and an optional host trace marker, then verify that the decoder’s STOP, START and repeated START labels match the electrical traces. The final acknowledgment is not a STOP. A controller’s transfer-complete marker can mean something different too. Near the boundary, check sample rate, timebase and logic thresholds. Do not pass a rounded result when the actual edge positions remain uncertain.
Separate drift, access effects and display errors
Run a quiet baseline first. Prepare the clock normally, record supply and calibration, then keep accesses low and compare elapsed time with an independent reference. In a second run, retain the same device, supply, time reference and correction but increase RTC polling. Record the distribution of gaps and cumulative time error. Do not compare just two short-term whole-second values. Align initial and final sampling phase or retain traceable evidence of their relation so that a read-time difference does not masquerade as lost time.
Log the shortest recovery interval, the longest individual transaction and total clock error separately. Raising the bus rate can shorten a transaction but also allow the driver to start the next one earlier. Slowing application polling can still leave occasional short gaps if the low-level driver retries immediately after an error. Exercise normal operation, retries, background synchronization and contention between threads, not just one idle read. If a run loses time, preserve the full traces around the event and the actual discrepancy before changing access policy and retesting.
The falling interrupt edge is also not the same as the seconds update on this device in pulse mode. If reading at the edge occasionally yields the previous second but time does not fall progressively behind, investigate the capture phase before blaming the recovery gap. If changing access frequency changes the accumulated difference against the same reference, the access policy deserves closer investigation. Also identify external time updates and ensure the application did not silently set the clock during testing and hide the issue.
For release, record the module suffix, manual, mechanism used to enforce the timing and paths that can restart transactions. A different controller, driver library or new shared-bus task can change the shortest gap. Recheck the driver evidence after those changes. If the supplier provides only a bus-speed table, supplement it with board-level evidence for reads, fault recovery and clock accuracy before reusing the previous approval.
If the application must poll frequently, consider reading the required contiguous fields in one controlled transaction and verify whether it actually reduces traffic. Follow the module’s address increment and termination rules, avoid an excessively long merged transaction, and cache only values whose age the application can tolerate. Keep the polling volume, physical bus occupancy and shortest recovery gap together so the effect of the change is clear. Where a backup supply is used, also validate the first access after wake-up and recovery from an interrupted access under allowed power conditions. A single capture at steady main power does not cover them.
RX-8025 recovery checklist
| Check | Evidence to retain | Insufficient substitute |
|---|---|---|
| Transaction | Initial START through STOP, including all repeated STARTs | Only the final segment |
| Recovery | Shortest physical STOP-to-next-START interval | Nominal application polling interval |
| Cumulative error | Quiet versus polled runs against the same reference | One acknowledgment |
| Fault recovery | Concurrency, retries, missing STOP and actual time behavior | A cleared error code |
Common questions
If I²C is below its maximum clock rate, can I omit the extra wait?
Still check the gap. Bus speed controls the timing of individual clock cycles. The post-STOP recovery rule applies between accesses. The controller following its generic bus timing does not ensure the RX-8025 receives 62 μs.
Can I fix overly aggressive polling by slowing the screen refresh?
Not necessarily. The screen is only one reader. Background sync, driver retries and other bus tasks can still produce short intervals. Capture the actual path at the module, change the logic that controls the physical gap, and recheck accumulated time.
