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

Epson RA4000CE RTC: why can an EVIN2 pulse clock the timer but not reset it?

The Epson RA4000CE can use EVIN2 either as an external wakeup-timer clock or, when enabled, to request a counter reload. Epson requires at least 488 µs high for external clocking and at least 977 µs high for external reset. A suitable waveform that is high for 600 µs can meet the clock-width condition but is not a qualified reset signal. If a countdown reset window is enabled, a reset must also fall within it. Test the two paths separately.

Is the design advancing the count or reloading it?

External clocking supplies pulses that advance the counter. External reset reloads a running counter, then counting continues from its starting point. Epson describes loading one in count-up or the preset in count-down. The reload itself does not generate a wakeup-timer interrupt. A quiet interrupt line does not establish that reloading failed. Observe whether the count actually restarted.

State the intended setup explicitly, such as “internal clock for countdown, EVIN2 for reload only.” A vague description that EVIN2 controls the timer does not distinguish one count from a new cycle. Qualify the two uses separately without assuming undocumented simultaneous use. Confirm fitted options and board pin availability.

Four checks belong in separate columns

PurposeEpson conditionEvidence to check
External timer clockHigh at least 488 µs, maximum 1024 HzCounter advances from the source
External resetEXWTRSTEN enabled, EVIN2 high at least 977 µsVerify a reload
Software WTRSTWrite one; independent of EXWTRSTENDo not infer software behavior from external enable
Countdown reset windowApplies to both reset methodsVerify actual count at acceptance

A 500 Hz waveform high for 600 µs can meet both external-clock bounds. It misses the external reset width. That does not prove every below-limit pulse is ignored. Nor does a generator display establish the actual pin waveform or threshold. Acceptance begins with the actual pin, configuration and necessary operating conditions.

Disabling external reset does not disable the software request. Epson says WTRST is effective regardless of EXWTRSTEN. If software can issue a reload while the waveform is applied, retain the bus trace so the result is not wrongly attributed to the pulse.

Why does the reset window matter to both methods?

A countdown window limits the counter values at which reset is accepted. It applies to the external signal and the WTRST operation. The manual lists two-to-one, sixteen-to-one and sixty-four-to-one windows as well as whole-period acceptance. The preset must be larger than the selected finite window. A wide enough external pulse that arrives outside the window is not a qualifying reset.

Reading a count and then beginning an operation are not simultaneous. Near a boundary, save the timing and resulting count rather than only the intended request time. If a reset appears missing, distinguish disabled input, insufficient width, timing outside the acceptance window and an absent signal. A countdown window is a count range, not a fixed number of milliseconds across source changes.

Build a test that separates the causes

First test external clocking by applying a qualifying waveform and checking count progression. In another run configure external reset under the applicable conditions, use a known source and request a reload with enough high time at an acceptable count. If timing near the window is in question, compare matching widths inside and outside the window. Change one relevant condition per run.

Record high width, frequency, external enable, window and any host write. If evidence is unavailable, mark it as such rather than reporting absence. Then verify software reset under accepted conditions as a separate path. Because reload does not generate the wakeup-timer interrupt, run another test to reach the programmed timer condition and verify notification. Reload and subsequent notification have different pass criteria.

Measure actual high time at the module for an open-drain or long-wire source, not only at the generator output. Do not enable external clocking just because the application needs external reset. Restore and record the intended product configuration after testing. A later reviewer can then tell whether a different source, disabled reset or a simultaneous software reload explains why a device counted but did not restart as expected.

Label the observation points by test purpose. The clocking run measures adjacent cycles and input high time. The reload run checks count state before and after the request. The same instrument can perform both measurements, but thresholds and output interpretations differ. Save actual high width and period if the generator is adjusted; an unchanged frequency setting does not prove both waveforms are unchanged.

When multiple applications contribute logs, retain who wrote the software reset bit. A reloaded count alone does not prove which path won when both requests were close together. Isolate the sources on a dedicated bench before signing off separate results. If a finite window is used, retain a shared timing reference for the count and request rather than an unsupported single delay value.

Common questions

Can a 600 µs high pulse be approved for external reload?

No. It exceeds the external clock's minimum high width, but misses the 977 µs minimum for external reset. Qualify the intended use.

Does external reset enable make software WTRST exempt from the window?

No. External enable does not control the software request, but the countdown window applies to both reset methods. Verify the count at acceptance.

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.