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

Epson RA4000CE RTC: why does the next reset event go unrecorded after clearing the flag?

On Epson RA4000CE variants with /RST output, handle RSTOEVF and RSTOF separately. Epson states that writing zero clears RSTOEVF immediately when the interface is available. RSTOF cannot be cleared while Safe mode persists. Handle it after VDD has recovered to the rising detection condition, reset output has released and Normal mode has resumed. Both flags must be cleared for subsequent reset-event timestamp capture. Clearing one software-visible bit does not end the supply event or establish readiness for another capture.

Where do the two similarly named flags live?

RSTOEVF in EVNT_INTF reports the reset output event. Epson's read procedure states that when it is set, RSTOF in BUF_INTF has also been set. The first can be cleared by a valid write of zero. The second reflects that reset output has started. Hardware will not permit it to clear while Safe mode persists. The names resemble each other but the fields do not share a clear operation or release condition.

If an accessible host clears RSTOEVF and then reads zero, that is expected. With supply still low and reset active, RSTOF can legitimately remain one. This difference is diagnostic evidence, not proof of a defective register. If the interface is configured to be unavailable in Safe mode, do not assume software can clear the flag then. Resume from actual readback once access returns.

Four indications are not one reset-complete state

IndicationWhat it establishesWhat it does not establish
RSTOEVF reads zeroThe event bit is not presently set or has been clearedRSTOF is also clear
RSTOF remains one in Safe modeIt is not yet clearable under that conditionImmediate retries will rearm capture
VDD reaches the rising conditionA voltage condition for recovery has been reachedImmediate reset release and host access
Both flags cleared after recoveryThe reset-event rearm flag requirement is metThe next event has already been saved

Epson shows intermittent detection in Safe mode and a reset-release process after recovery is detected. A measured crossing on VDD is not the same observation as exiting Safe mode. Verify recovery, valid access and the appropriate /RST state before clearing and reading back RSTOF. A brief high on the supply or one interrupt is not sufficient evidence that recovery has completed.

Keep software from declaring readiness too early

Separate detected event, event flag acknowledged, recovery pending and flag conditions met for rearm. Preserve the earliest available evidence. Track actual reads and writes and obtain both flags again upon normal access and recovery. Also confirm the relevant capture configuration and normal buffer handling. Clearing the flags addresses one condition, not every requirement for logging.

Do not mark the state ready just because a write returned success. A successful access and a changed hardware flag are different. Base readiness on verified readback and operating state; intermediate states can remain pending or unavailable. If /RST restarts the host itself, obtain both flags after boot rather than using a pre-restart decision. Identify successful samples in order. Missing communication is not a zero.

Distinguish no new falling event from a second event not being logged. If VDD never completes recovery, apparent fluctuations can still belong to the same episode. Test two independently identifiable events with an intervening return to Normal mode and flag processing, then check for a second record. Counting apparent voltage dips alone does not test rearming.

Verify two successive supply events on a bench

Use an approved board with a reset-output variant and the appropriate threshold configuration. Record VDD, /RST and host event data where available. After the first controlled drop, save the two flags if accessible; if that mode does not permit access, log it as unavailable instead of forcing a transaction. After recovery, follow the applicable clear procedure and confirm both readbacks. Then apply a second controlled event and verify a distinct result, not a reread of the first entry.

Test a pass path and a control in which rearming is intentionally left incomplete, then restore the normal procedure. The control should prove that the application does not announce readiness prematurely. Do not exceed ratings or repeatedly cycle live equipment to force failure. Use independent bench observations and retain capture settings, buffer results and the conditions of the first mismatch for both service and firmware review.

A good acceptance note says that the first event was acknowledged, both flags read zero after confirmed recovery, and the second controlled event produced a fresh record. If only the event bit is clear, do not describe the logging function as recovered. An app indicator is not a substitute for VDD and /RST capture. Determine whether the system is waiting for recovery, checking rearm flags or investigating buffer storage. Each stage has different evidence.

For a multirail system, say whether the probe measured the RTC's VDD or an upstream node. A system-level recovery indicator does not show that the device supply recovered identically. Regulators and branch loads can separate those events. Check that external logging does not alter recovery through a signal or measurement path. Give each dip an independent ID and attach valid accesses, retry times and flag readbacks to it. If a second access fails, record the missing observation rather than filling it from the first event's cached state.

Common questions

Is the chip defective if RSTOEVF clears but RSTOF does not?

Not on that evidence. First check for Safe mode. Epson says RSTOF stays set in that mode and cannot be cleared by writing zero. Verify readback after reset release and the return to Normal mode.

Why check the two flags if the /RST pin has released?

Release ends the external reset assertion. It does not replace clearing and verifying both flags. Epson's read procedure requires both flags to be cleared before the next capture of this type. Then check actual capture and buffer behavior independently.

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.