No. Under normal oscillation, the Epson RTC-72423 needs time to process its 30-second adjustment command. The counter registers from S1 through W are inaccessible for 76.3 µs after writing ADJ to one, and ADJ normally clears itself. Epson warns that if the crystal stops, the automatic clear cannot complete and a polling loop may hang. Protect the normal access window, but provide an independent deadline and error route for abnormal polling.
The 76.3 Microseconds Protect Counter Access
The 30 seconds in the function's name refers to rounding to the nearest minute, not a thirty-second execution time. The driver needs the 76.3 µs figure. Epson specifies the inaccessible area as addresses 0–C, the counter registers from seconds units to weekday. Do not immediately read seconds to verify the command or update the date while processing continues. Epson's procedure polls ADJ in a control register. A restriction on counter registers does not prohibit access to every register.
Epson gives polling examples with and without an explicit wait between unsuccessful reads. Its register discussion also says that, during normal operation, making no RTC access for at least 76.3 µs makes another ADJ check unnecessary. These are normal operation methods, not a guarantee of success if the oscillator stops. If the product must detect abnormal operation, a fixed wait cannot distinguish command completion from enough elapsed time without counter activity.
Do not start timing the device's internal window from an arbitrary application call. Controller scheduling can defer the physical write, while debug output can occur well after it. Capture the effective command write and later accesses on one timebase. That distinguishes premature access from a command that never finished.
The 0.5–1.0 Millisecond Recommendation Is an Error Exit
Epson notes that stopping oscillation prevents the regular automatic clear. It recommends a route into error handling if the loop persists beyond 0.5–1.0 ms. This is protection against a hang. It is not an extended completion limit or permission to access the counters when the timer expires. Distinguish confirmed completion, inability to read the control register, and a valid read showing ADJ continually high until timeout.
| Observation or phase | What it establishes | Host action |
|---|---|---|
| ADJ just written to one | The command has entered processing | Do not access S1 through W yet |
| ADJ reads zero under normal conditions | The command no longer requires waiting | Apply normal counter-access rules |
| Polling exceeds the allowed wait | Completion was not verified | Follow the timeout path |
| The control register cannot be read | Actual ADJ state is unknown | Report the access fault, not a zero |
Choose a time source separate from the RTC under test. A deadline based on the same calendar may stop progressing when the crystal stops. An independent host timer should still let the wait end. Record timeout, scheduling delay and lack of bus access as separate observations rather than merging them into one log string.
Do Not Blindly Replay the Adjustment Command After Failure
Issuing ADJ and obtaining trustworthy time are separate milestones. If ADJ remains set or access fails, do not clear a local variable and silently continue logging. Record the attempted write, last interpretable read, host timeout and validity of the time. The caller can preserve a trusted previous value, stop using the unverified time, or follow the product's approved resynchronization process.
ADJ not clearing does not by itself prove a broken crystal. Epson explains that stopping oscillation can produce that result, but incorrect selection signaling, misread bits or a write that never reached the device can also look like a stuck procedure. Obtain independent evidence of supply and communication, then use an appropriate manufacturer-compatible method to investigate timekeeping. Do not load internal oscillator circuitry with an unsuitable probe. If reinitialization is needed, preserve useful fault evidence before erasing the state.
Other bits in the same control register have their own effects. Exiting a timeout loop does not justify clearing the entire control register or repeatedly issuing the same command. Follow the documented access semantics and the product's error state machine. Without a valid source, keep time explicitly unconfirmed rather than showing success because the button handler reached its end.
Verify the Normal Window and the Failure Exit Separately
For a normal bench run, start from valid recognizable time. Capture the ADJ write and the first counter access after confirmation. Check whether the wait or poll meets the documented arrangement and that bus completion alone is not taken as proof the counters are available. Document the device processing window, the host's decision to resume access and the validity of the resulting fields separately.
On an isolated development setup, verify the error path with a controlled substitute that keeps returning ADJ equal to one. There is no need to damage a real crystal. Then make the substitute fail the control read and check that software does not decode that failure as a cleared bit. In each case, verify the independent host deadline, termination and distinct status returned to the caller, and ensure that no false new time is published. Identify simulated and real hardware traces separately if both are used.
Review the final logs. If normal success, timeout and bus errors all appear as “adjustment complete,” the application still confuses the end of a procedure with completion. A recorder or alarm system benefits more from knowing that time is uncertain than from attaching a success marker to an unverified timestamp.
On hardware, also verify the first valid record after recovery. Log the trusted reference used and when counter access resumed instead of assuming that timestamps on either side of the timeout form one continuous sequence.
Frequently Asked Questions
Does waiting 76.3 µs prove the adjustment succeeded?
No. It is a normal processing window with oscillation running. A system that must detect oscillator or communication errors needs a success criterion and a bounded failure path. A continuously set bit after successful control reads is an abnormal result worth distinguishing.
Can I read the calendar as usual after one millisecond?
Not because of the timeout alone. Epson's 0.5–1.0 ms recommendation avoids a stuck polling loop. It does not guarantee counter access has recovered. Report the unresolved command and follow the device recovery and time-validity policy.
