Read back the interrupt mode first. In pulse mode on the Epson RX-8025 SA/NB, the seconds register increments about 92 μs after the /INTA falling edge. A host that captures the time before that update can still obtain the old second. In the once-per-second level mode, the manual describes the falling edge and increment as synchronous. Both modes can produce a once-per-second event, so seeing a falling edge each second does not establish its meaning for the application.
The same cadence can have a different relationship to the register
ETM10J-05 and the English ETM10E-04 list CT2:CT0 = 011 for 1 Hz pulse mode and 100 for once-per-second level mode. In pulse mode the falling edge precedes the register increment. The manual gives an approximate interval, not a guaranteed 92 μs maximum for software timing. In level mode the interrupt is asserted at the increment. If the previous request is still active, the presence or absence of another falling edge cannot by itself tell the host whether another second passed. Service the request and verify release according to the mode.
The active-low /INTA line is open drain. Make sure a trace labeled “falling edge” comes from the module’s /INTA pin, not a GPIO that the host toggles after an inversion or a software delay. Alarm D shares the pin. Isolate the periodic source in a controlled test first, then restore both sources and test their interaction. Capturing the pin and bus with one instrument puts the electrical edge, bus activity and application processing markers on the same timeline.
Do not mix writes to the seconds register into an ordinary read test. Epson says that writing seconds resets the subsecond counter and makes /INTA go low again in pulse mode. If a test script sets seconds before each group of reads, annotate the write, the first pulse after initialization and the samples taken in steady operation. An initialization-induced edge should not be the only evidence of normal phase.
Why a delay of microseconds can look like a one-second discrepancy
Suppose /INTA falls at 0 μs. In this example only, assume the increment occurs at 92 μs and that samples obtained according to the applicable read procedure correspond to 55 μs and 150 μs. The earlier capture is 37 μs before the increment; the second is 58 μs after it. At a minute boundary, the first can represent :59 of the previous minute and the second :00 of the next. Their labels differ by a second, but the RTC did not necessarily lose a second. These times are not device tolerances or a promise for any particular bus speed.
Separate the interrupt edge, the time at which the device data is captured, and the time the application finishes processing it. The timestamp on a log message often reflects only the last event. A capture can precede the increment even if the log appears considerably later. Bus queues, mutexes, interrupt nesting and task switches can move two runs of the same driver to opposite sides of the update. Rather than tuning a fixed delay until the symptom disappears, identify where the actual reads fall under the documented read procedure.
At boundaries, retain complete time data obtained using the manufacturer’s read procedure and record whether any fields were assembled across transactions. A valid sample can be early without proving that its fields are incoherent. Distinguish the plausible old second from invalid dates, skipped values or bus errors. A transition from 59 to 00 across midnight requires normal calendar rollover handling, not an assumption that time moved backward.
Fix the driver without moving the error to the next second
If the requirement is to read the new time around each increment, evaluate once-per-second level mode and verify both read timing and request release. In single-step testing, confirm that CTFG is serviced as specified in level mode and that Alarm D is not holding the shared line low. On a host configured for falling-edge interrupts, an uncleared previous request can hide the next edge. A GPIO trace cannot alone distinguish a missing increment from a line already driven low. Changing 011 to 100 changes the interrupt service requirements, not just one register value.
If pulse output must remain a hardware reference, stamp the edge and read separately against a common capture clock. The application can distinguish “interrupt arrived” from “new time confirmed.” Where it delays a read, set a budget using applicable manufacturer limits and system validation; about 92 μs is not a hard upper bound. For deterministic handoff, use a verified method to establish that the update has occurred. If the hardware or driver cannot guarantee the required alignment, expose that uncertainty to the application instead of adding a second to every early-looking value.
Test ordinary seconds, minute transitions and calendar rollover separately, then exercise earlier and later host service under processor load. If digital correction is enabled, the manual describes the periodic interrupt interval as being adjusted once every 20 seconds. Do not mix such observations into the uncorrected phase dataset; record the correction settings along with the traces. If only one older board is affected, check actual mode readback, pull-up and probe location rather than qualifying different assemblies against one timing plot.
Keep separate counts for unsuitable read phase and host service losses. Use hardware-captured records for the first set and compare read timing under different queue delays. For the second, correlate capture sequence, request release and host service counts to spot a line held low, merged events or repeated service. Two reads within one service invocation do not imply an extra increment. Application interpolation does not turn a missing event into an observed hardware event. When an external reference is available, also state what its comparison edge denotes in this test.
For a repair to an existing board, retain a baseline capture with unmodified firmware. Rerun the changed firmware on the same hardware, with the same bus conditions and workload. Determine whether the difference came from the interrupt mode, the read strategy or the debug outputs you added. If instrumentation changed service timing, run a control without it or calibrate its effect. Finish the report with the module suffix, manual revision, enabled interrupt sources, raw data and failing sample identifiers so that the real failure conditions can be reproduced.
RX-8025 interrupt and time-read checklist
| Check | What to observe | What is not enough |
|---|---|---|
| Interrupt mode | CT2:CT0 readback and actual /INTA timing | One falling edge per second |
| Capture phase | Falling edge, bus activity and returned seconds | Application log timestamp |
| Boundaries | Ordinary seconds, minute and calendar rollover, and correction settings | The seconds field on its own |
| Level-mode release | CTFG service, Alarm D, and physical line release | Sending a clear command |
Common questions
Does waiting 100 μs guarantee a read of the new second?
No. That leaves only 8 μs beyond the published approximate interval, which is not an upper bound. The actual capture point and the system requirement both matter. Correlate the hardware edge with returned data before choosing a mode or validation strategy.
Can software add one second to every time read on a pulse interrupt?
Do not do that. Some transactions may already have captured the new second, so adding one produces an error in the other direction. The application also has to handle minute and date rollover. Establish which event each sample belongs to before assigning its time label.
