A logger occasionally produces a timestamp out of order around a minute boundary. The seconds field looks valid and the minutes field does too, yet their combination gains almost a minute. Reading takes time. The first field can belong to the old minute and the second to the new one. This is a consistency problem rather than a measure of clock accuracy.
Section 4.12 of the Micro Crystal RV-8803-C7 application manual says the time and calendar registers cannot be frozen for reading because of the temperature compensation and hundredths-of-a-second timestamp behavior. It requires completing the read within one second and recommends a second read when the initial seconds value is 59. A driver for an earlier RTC may have relied on a latched calendar. Check the read behavior before assuming interface and register compatibility.
Reproduce one mixed read
Suppose the first transaction sees seconds at 59 and the true time is 10:34:59. The RTC then advances to 10:35:00 before it returns minutes, which are now 35. Software combines these values into 10:35:59. That result is 59 seconds ahead of the new instant and 60 seconds ahead of the original instant. Report the comparison point when describing the error. Date and hour fields can be affected during a rollover too even where every field is in range.
Following the manual, repeat the required time and calendar read if the first seconds field is 59. Within the specified timing, the first set is valid if the second seconds field is still 59. If the second read advances to 00, use the confirmed second set. If firmware can be interrupted for a much longer time, identical seconds values alone are insufficient. Preserve separate indications for a confirmed read, communication failure, and timeout.
Force the rollover during a read
A few unaligned checks may never hit the window. On a controlled test board arrange a read so that the first seconds byte arrives just before the calendar increments and the minutes byte arrives afterward. Save raw bus traffic and the resulting timestamp. Compare the old driver's mixed result with the new driver's confirmation sequence. An additional test at the end of a day can exercise hours, dates, and log filenames together. Confirm weekday and calendar encoding from the applicable documentation.
Bus frequency covers only part of the elapsed time. A 90-bit transaction at 100 kHz is roughly 0.9 milliseconds on the wire. Two similar transactions are about 1.8 milliseconds, excluding start, stop, and software overhead. A software task preempted for more than a second can still fail the timing requirement while the bus is set at 100 kHz. Record the longest complete sequence in the real design, including lock, scheduling, and reread time.
Specify accuracy and read consistency independently
Test frequency or accumulated time at the planned temperatures for accuracy. Deliberately cross minute and date boundaries, and exercise busy firmware, for consistency. The output should be a valid confirmed reading or an explicit failure to confirm. For a logger that orders alarm records by timestamp, inspect the resulting records too. Save a raw example for regression testing.
For an alternative part, confirm the device configuration and application manual before running the tests. Receiving can verify the configuration and its documentation. Engineering should reproduce the boundary with synchronized software and bus records. That evidence keeps an occasional extra minute from being attributed to oscillator drift.
