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

Epson RA4000CE RTC: does EVIN2 event filtering apply when it clocks the timer?

The Epson RA4000CE and RA8000CE can use EVIN2 as the external wakeup-timer clock. With WTICFG.TSEL2 set to one, Epson says pull-up or pull-down selection still applies, but the event noise filter and input edge settings do not apply to this timer clock. Epson specifies up to 1024 Hz and a high pulse at least 488 µs. Check both limits instead of relying on an earlier timestamp debounce setting.

The same pin requires a different validation

EVIN2 is often an input for switch changes or events. It becomes the wakeup counter's source if selected for external clocking. Epson retains the effect of the pull network, but explicitly says the noise filter and edge detection settings are ineffective for that use. Reading a prior filter setting back does not show that it still affects the timer. Verify source selection and the actual pin waveform, not a previous event-logging qualification.

This is the rule for the external wakeup clock, not a broader claim about every option or simultaneous timestamp behavior. Check that the fitted module and board provide EVIN2, and that TSEL2 selects it. If an internal source remains selected, an active waveform at EVIN2 does not show what drives the timer.

Why can a clock below 1024 Hz still fall outside the rating?

CheckEpson conditionNot a substitute
Clock sourceTSEL2 selects EVIN2A signal is present
Input frequencyMaximum 1024 HzInferring frequency from high time
Input high widthAt least 488 µsInferring it from average frequency
Input configurationPull settings work; event filtering and edge selection do notPrior event debounce report

A 500 Hz ideal pulse has a 2 ms period. At 20% high, its high time is 400 µs, below the stated minimum despite the compliant frequency. At 1024 Hz and 40% high, the result is about 391 µs. Both limits must be met. These examples illustrate arithmetic, not real edge quality, thresholds or tolerance.

In an open-drain or long-wire circuit, nominal high time can differ from time for which the pin sees a valid high. The pull network affects transition behavior, so observe at the module using the applicable measurement method. For an input close to the limit, consider timebase uncertainty and edge variation. A specified minimum is not a recommended nominal without margin.

Collect separate evidence for input and timer behavior

Suppose earlier timestamp tests rejected switch pulses through event filtering. Those results cannot establish how many cycles the external timer receives. Maintain separate test plans. For timer operation, verify the input against its conditions and check the configured count or wakeup action. If the source bounces, address that at the source or with appropriate external conditioning. Do not rely on an event filter that this path bypasses.

An observed /INT transition is also not proof of compliant input. Epson's external-source row has no automatic return, unlike listed internal cases. Check the qualifying input, timer configuration and resulting notification separately. If several interrupt sources are active, identify the timer in the applicable status rather than treating a transition as proof of this input.

Start with a valid waveform, then examine a narrow control

Use a permitted setup and a clearly identifiable clock with high-time margin. Verify connections, operating mode and actual pin edges. Log input and count together instead of relying on the generator's display, then confirm the expected timer event. A below-minimum pulse can illustrate an unsupported configuration. It does not establish that every such pulse must be missed, and one passing observation cannot qualify it for production.

Retain TSEL2 and count configuration before and after changes so later runs can distinguish internal and external clocking. Change one wiring, supply or load factor at a time. If an older report lists only the nominal high time at the source, capture the module input and document the measurement threshold. Handoff should include minimum observed high time, maximum frequency, configuration and any failure rather than only saying that changing debounce fixed it.

For products using both functions, keep ordinary event and external timer checks separate. One tests event qualification under the applicable filter settings; the other tests external clock frequency, high width and counting. Verify the active configuration after switching modes. A setting having no effect here does not on its own show a defective device.

Near the upper frequency, ideal 1024 Hz gives about 976.56 µs per cycle, so exactly half high gives about 488.28 µs. That is less than one microsecond above the listed minimum. It does not provide a robust production margin: generator timing, duty-cycle variation, slew and the threshold used to measure can consume it. If the application must operate near the limit, justify margins from nominal timing and measured distributions rather than a single automatic scope reading.

Also verify the idle input level. If sleep and active operation use different power domains, the pull selection still matters on the timer path, so continuous bench operation alone is insufficient. Record idle polarity and actual pulses around wakeup. Compare a known generator with the actual source where useful. Confirm the timer source before separately assessing the event filter behavior. A sensor or cable change can then be checked against the correct electrical and software requirements instead of being reported as an oscillator counting fault.

Common questions

Is a 500 Hz input enough to sign off the design?

No. The high pulse must also be at least 488 µs. Verify the actual pin waveform. Compliant frequency alone does not establish usable high time.

Can shorter EVIN2 debounce make the external timer count more pulses?

Not on this external timer-clock path. Epson says the noise filter and event edge settings are ineffective when this source is selected. Verify and improve the actual waveform within the applicable frequency and high-time conditions.

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.