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

Does an Epson RA4000CE RTC Include 40 Seconds Under Reset in Its Operating-Time Count?

It depends on which modes may count. The RA4000CE wakeup counter can accumulate only Normal-mode time, so it need not match elapsed time.

Identify what the product is measuring

An industrial logger uses the Epson RA4000CE crystal RTC. A test takes 90 seconds from start to finish, but the runtime display shows less. That does not necessarily mean the timebase is slow. On variants with a reset output, the wakeup counter can be configured to count only in a selected mode. Before investigating frequency error or replacing parts, identify the counter, the ordered pin option and the policy for counting under reset.

Epson defines Normal mode as reset output released and Safe mode as reset output asserted. Safe mode is not whatever the host application calls sleep and does not imply all power is absent. A host log indicating maintenance or standby does not establish the RTC state. Align observations to the actual reset pin and applicable variant. Do not apply mode-select counting to an option without the reset-output function. A changed interface or pin option within the same family must still be checked.

Two fields determine eligible intervals

The counting-condition table says WTCTL.WTSTOPCTL set to one enables WTMODSEL. WTMODSEL zero counts only in Normal mode; one counts only in Safe mode. Epson explicitly describes the Normal-only example: entering Safe mode suspends counting and retains the current value, then Normal mode resumes from that value. This neither clears the counter nor automatically creates a timestamp. With WTSTOPCTL zero, the mode selection does not exclude either state, but the timer’s enable, suspension and power conditions still apply.

Do not interpret WTSTOPCTL as “write one to stop.” When mode selection is enabled, the WTSTOP temporary stop control is disabled. Flipping only WTSTOP while mode-select counting is active may leave an advancing counter; that does not establish a failed register write. Check TCTL.TE and the actual source separately. Record the variant, fields, direction, clock source and supply before testing. If firmware writes a full byte, read the recorded value and surrounding configuration rather than assuming only the intended field matters.

Compare an example using a one-second source

Assume the counter runs upward from a 1 Hz source, with no separate reset request, expiry reload or other configuration change. External observation shows 30 seconds in Normal, 40 in Safe and 20 more in Normal. Ignoring boundary phase, Normal-only counting increases about 50, counting in both modes uninterrupted increases about 90, and Safe-only counting about 40. These differences come from eligible time, not changing the oscillator frequency by a ratio. Hardware clock phase at mode transitions affects actual readings. These calculations do not guarantee an exact edge count.

First establish a no-reset baseline and confirm increment against an independent reference. Then record entry and exit from reset and save readings before reset and after recovery. Do not infer a stopped counter from unavailable communication without checking the interface conditions. In count-up operation the starting value is not necessarily zero. Compare readings from the same trial rather than treating the last hex value as elapsed seconds. Make sure expiry and reload did not intervene. If they did, interpret the difference by the approved method instead of applying this example unchanged.

Label product statistics elapsed time or accumulated Normal-mode time. To measure actual work, correlate the application state. Reset release only establishes Normal mode at the RTC; it does not prove the host is executing a production task. Do not turn every reset assertion into recorded downtime before checking the variant, hardware behavior and operations definition. Keeping these quantities separate makes reconciliation easier.

Verify mode and counter before reconciling elapsed time

CheckRequired recordWhat does not follow
ModuleFull RA4000CE code and whether /RST is availableThe family name guarantees mode-select counting
ModeWTSTOPCTL, WTMODSEL and the reset timelineWTSTOP always pauses
CounterTCTL.TE, source, direction, before and after readings and reload historyThe final value equals elapsed seconds
Business measureElapsed or Normal-mode time and its relation to host stateA difference proves slow oscillation

Use a repeatable fixture sequence to compare modes on the same unit rather than trying to eliminate the difference by swapping parts. If a result is still abnormal, first check reset, clock source and read timing. A short baseline may uncover a test assumption faster than a long timekeeping comparison. Once the configuration and observations agree, record the expected intervals in the production test so a new lot is checked against intended behavior instead of starting with a frequency counter.

Keep separate tracks for when the equipment issues work commands, what the reset pin does and when the counter was sampled. Log output order is not always hardware order: communication latency can make return to Normal appear later. Align the devices to a common or verified time reference and record when exact boundary alignment cannot be established. That lets you test whether the difference agrees with mode selection rather than inferring the earlier reset state from the count alone.

The 1 Hz example is not a default for every order. With a different clock source, establish count units before conversion. If an external pulse source is used, check whether it continued to deliver pulses during the reset period. Do not assume every count represents one second. If the same timer generates application interrupts, also verify that changing its counting mode does not delay other actions. Do not unintentionally alter production wakeup behavior to make one statistics report pass.

Two inspection questions

The count did not go to zero after reset. Did reset fail?

Not necessarily. In the Normal-only example, a mode transition suspends counting and retains the value, then counting resumes. Reload is a different operation and test condition. Decide whether the project expects pause-and-retain or a definite reload before calling the same result a pass in one report and a failure in another.

If both modes may count, does it always follow the calendar?

No. It means mode gating alone does not exclude either state. Enable, source and other conditions still apply. Confirm whether elapsed time is derived from the calendar or the counter. A mode-selection table is not an accuracy specification, and a counter result cannot substitute for verifying calendar state.

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.