Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Low-Frequency Timing and System Power

Why does the Epson RTC-72423 stay BUSY? Check whether HOLD was released

BUSY on the Epson RTC-72421 and RTC-72423 is not a live flag that always refreshes as you poll it. With HOLD clear, BUSY always reads one. With HOLD set, the status is retained from entry to that hold window. If firmware sees busy but does not release HOLD, it can continue to see the old value long after the actual counter update. On a legacy board, inspect the bus writes to HOLD before attributing a long wait to a stopped quartz oscillator.

What HOLD, BUSY and the count update actually control

Epson’s ETM17E-02 places HOLD and BUSY in control register CD. To access the counter registers from the seconds units through weekday using protection, set HOLD, read BUSY, access the digits only if the device reports not busy, and clear HOLD when done. If the first check is busy, clear HOLD before setting it again and checking. The manual shows two alternatives: wait 190 μs after clearing and then retry, or go straight back to setting HOLD and reading BUSY. Both actually clear HOLD first. More reads in the same hold window do not replace that action.

The 190 μs figure is the specified maximum busy interval associated with a count update, not a promise that BUSY goes from one to zero within that time in all circumstances. When HOLD is clear the reading does not disclose busy status; when HOLD remains set the host does not see a fresh busy snapshot. Writing zero to BUSY cannot help because it is read-only. The control registers CD, CE and CF do not require the counter access handshake, so do not send every register operation through a generic wait-for-BUSY routine.

Review IRQ FLAG whenever writing CD. Epson specifies writing one to that bit unless you intend to clear the interrupt; writing zero can cancel a pending request. A naive full-word read, change of the least significant bit and write-back can mishandle that write semantics. If an interrupt occurs between read and write, writing back an earlier zero can clear the new event. Separate ordinary counter access from deliberate interrupt acknowledgment and retain the relevant data bits in the trace.

Worked example: waiting longer can also cost a second

Suppose the first HOLD assertion coincides with a count update and then reads BUSY as one. The software reads again every 250 μs but never clears HOLD. Four intervals later, 1.000 ms has elapsed and it can still read one. This does not show that Epson exceeded 190 μs; it shows repeated reads of the retained state. Actually releasing HOLD, waiting and starting another hold-and-read attempt gives the host a fresh check. The arithmetic does not prove that a specific retry will avoid every timing boundary.

A different failure occurs when a task is preempted after a not-busy result. Suppose HOLD stays set from 12:00:00.200 to 12:00:02.400 on a reference timeline. Assume oscillation continues, chip select does not clear HOLD early and there are no other time writes. The hold crosses two scheduled second increments. The manual explains that release compensates for one held increment and does not recover the second or subsequent ones, so this idealized case loses one second. Do not treat the entire 2.200 s window as time lost, or assume that every similar symptom indicates a slow oscillator. Epson requires counter access to finish and HOLD to be released within one second; include blocking and recovery paths in that budget.

Real software may queue reports, print debug logs or wait for a lock. Do not qualify using the mean access time. Set an upper limit from successful assertion to actual release and measure the busiest process paths. If it times out, release HOLD and mark the current snapshot unusable. If release cannot be verified, mark the module state for recovery rather than continuing to store unverified dates.

Distinguish a driver error, a chip-select change and a stopped clock

Capture chip select, address, read and write controls, and data with the parallel-bus timing for the exact model. Mark HOLD assertion, BUSY read, clearing after a failed check, the next assertion, successful digit access and final release. The manual also says driving CS1 low clears HOLD, so check the level at the module rather than trusting the function name. Changes between accesses determine whether they belong to the same hold window. A debug tool that changes chip select between calls can produce results unlike production firmware.

BUSY that stays set without a release is a handshake clue, not direct evidence of a bad crystal. To investigate oscillation, use manufacturer-permitted observations of counting or an appropriate clock output condition rather than probing a high-impedance internal oscillation node casually. Record normal counting, counter access and interrupt handling separately. Once oscillation, actual release and the next HOLD assertion are verified, continue with bus timing, host sampling and register-write behavior.

Include a normal read close to a rollover, a preempted access that still releases HOLD and an access coinciding with an interrupt in regression tests. To reproduce an older software failure, compare the old and revised drivers on the same board, supply and timebase. The traces should explain each other. Identify the old failure on the bus rather than retaining just a screenshot that shows it worked after a reboot. Provide production or service with the firmware version, bus trace and reproducible test.

For reads, the manual also shows a procedure without HOLD: read the required digit data twice, accept only matching sets, and repeat otherwise. This is a read alternative, not blanket permission to write without HOLD. Do not assemble a date from fields belonging to different retries. Keep the entire comparison set within one attempt and specify a retry deadline. If hardware, supply or persistent mismatches prevent a valid result, the application must know that this read did not return a trustworthy time.

Field logs can suggest where to start. If BUSY occurs near second boundaries and previous dates have advanced normally, inspect the access handshake first. If an independent observation after release also shows no progress, investigate oscillation and supply by manufacturer-approved methods. Avoid setting the time or resetting before capturing evidence: that can erase clues about lost counts, chip-select state and the order of interrupt acknowledgment.

Service and firmware checklist

CheckEvidence to retainCommon misdiagnosis
First statusActual CD reads and writes and chip-select timingBUSY one with HOLD clear is taken as oscillator failure
RetryActual HOLD clear and reassertion between attemptsThe held state is expected to change on repeated reads
DurationWorst-case time from assertion to release and recovery pathOnly average normal-path timing is measured
Interrupt and clockIRQ FLAG write semantics and independent evidence of advancing timeEither a timestamp or interrupt alone is treated as a full pass

Frequently asked questions

Can I access the counter directly after waiting 190 μs?

No. The wait is not automatic authorization to access. If the prior check was busy, clear HOLD, assert it again, verify that the new reading is not busy and only then perform protected access.

After holding too long, will reading the clock again recover the lost seconds?

No. Release handles the supported retained increment; it does not replay the whole interval. If the snapshot timed out or clock progress is not trustworthy, follow the product’s clock synchronization or fault-recovery procedure.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.