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

Epson RX8804CE crystal RTC module: why does TF stay set after /INT is released?

Pin release and flag clearing are different events

The Epson RX8804CE contains a 32.768 kHz crystal, but its timer does not hold the interrupt line indefinitely until the host reads it. Epson lists timer automatic release times of 122 µs for the 4096 Hz timer source and 7.813 ms for 64 Hz. A timer event can set the TF flag. Automatic release of the timer interrupt output does not clear it; it is retained until zero is written as specified.

This explains a common observation. A host can read TF as one after waking, even though the line is no longer low. The pin shows the current electrical state. The flag records an earlier event that has not been cleared. If another source is not holding the line low, the timer output can stop driving it and let the external pull-up determine the level.

Check whether the host captured the short pulse

Suppose firmware reads a GPIO once per millisecond and an isolated timer pulse is about 122 µs. The whole pulse may occur between reads. Reading TF afterward does not prove that the pin never went low. This is a timing example; actual wake-up depends on the host pin, trigger, filtering, power mode and board electrical conditions.

Capture /INT and the bus operations on a common timeline to separate a missing event from a missed pulse. Trigger on a possible assertion and verify that the instrument resolves the expected duration. In software logs, record when TF was read and cleared, and the timer interrupt enable state. “One low pulse captured; TF was still one afterward” is more useful than “interrupt did not reset.”

For a low-power wake input, do not rely on a GPIO test in normal running mode. Verify that the relevant detector or clock is available in the intended sleep state and check the input filter or thresholds. Board changes can alter the voltage transition seen by the host even if RTC settings are unchanged. Record probe loading on the pull-up node where relevant.

Keep four observations separate

ObservationDevice behavior or board conditionDoes not establish
Timer /INT release122 µs at 4096 Hz; 7.813 ms at 64 HzCountdown time or event count
TF stateEvent flag stays set until written to zeroThe pin is currently low
TIE stateControls timer interrupt outputOther interrupt sources are disabled
Host GPIOPull-up, trigger, filtering and actual waveformA high sample means there was no low pulse

The manual also says that writing zero to TF does not directly release an active timer low output to high impedance. Do not implement a driver on the assumption that clearing the flag immediately releases the pin. TIE controls generation or cancellation of the timer interrupt. Other sources can still drive the shared /INT line low. Verify timer-only behavior in a controlled test and then test with other enabled sources, keeping single-source and shared-line evidence separate.

TF is not a counter. A one reports the retained event flag as defined in the manual; it cannot tell firmware how many events preceded a read. If a project must count every event, use a separately validated collection strategy and examine recurring events, bus delay and read/clear timing. Do not turn “an event was detected” into “exactly one event occurred.”

Build a repeatable hardware and firmware test

Record the timer source, TIE, other interrupt sources, pull-up, host input mode and firmware revision. Trigger an expected event and capture both the RTC pin and host pin. Compare levels and pulse duration, then read TF and record whether and when zero was written. If the pulse reaches the host but its software callback is missing, investigate capture and sleep configuration. If the source does not produce a pulse, check the documented enables and triggers. Do not replace the crystal or module before establishing which step failed.

If the fault only occurs with multiple sources, observe timer, alarm and time-update signals separately in an approved configuration. Check whether one source releases the pin while another remains asserted. Follow the module's documented write behavior when clearing a flag to avoid erasing unrelated status. Record initial state on each run. Restore the actual combination and verify host processing and logs. An isolated trace helps diagnose the device but does not qualify the combined configuration.

State whether measurements show the physical line or an event recognized by the host. After open-drain release, the pull-up and node capacitance affect the voltage transition, so release and recognition of a high level need not be simultaneous. Record probe position and threshold rather than equating the datasheet's release interval with an instrument's default percentage reading. A production reproduction should identify board revision, initial conditions, observation point and clear behavior.

Retain evidence for the pulse, retained register bit and host recognition separately at handoff. A future missing log entry can then be traced to the stage that actually lacks evidence. If the fault depends on temperature, supply or sleep mode, verify that specific condition without extrapolating from a standard operating test.

Assign each simulated event its own test ID during pilot production. Confirm that register snapshots before and after clearing and waveform timestamps come from the same run. A low pulse from one run does not explain a flag screenshot from another. Record which sources were enabled or masked so the test does not accidentally introduce an undocumented concurrent source.

For an automated fixture, specify the observation window and capture method, not just “read the flag after the pin releases.” Before returning to low-power mode, verify that clearing and input preparation follow the project procedure. A host handling multiple sources should read and clear the intended states without combining undocumented writes. Temporarily using a slower timer source may aid observation but does not validate the original short-pulse configuration. Restore the target settings for acceptance and retain repeated results.

Frequently asked questions

Does TF equal to one prove the host was interrupted?

No. It establishes that timer event status was set and not cleared. Pin pulse generation depends on TIE and applicable conditions; capture by the host requires waveform and receiver evidence.

Does clearing TF immediately make the line high?

Not necessarily. The manual says writing zero to TF does not directly clear a timer-driven low output. Other sources and the external pull-up also matter. Verify flag state, pin release and host detection 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.