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

TF Is Clear but the Interrupt Is Still Low? Check Pulse Mode on the 32.768 kHz Epson RX-8564LC

In timer pulse mode on the Epson RX-8564LC, clearing TF does not shorten a low pulse already in progress. If the register reads clear but the host still sees a low interrupt, capture /INT alongside the bus and determine when the output returns to high impedance. Looking at just one state can turn normal timing into a suspected part failure, or hide a different problem on a shared interrupt line.

Determine whether the output is held or completing a pulse

The module contains a 32.768 kHz quartz crystal, but the issue here is how the timer reports an event, not the calendar frequency. TF records a timer event. TIE controls whether a timer event is signaled through /INT. TE controls whether the timer continues to run. Read TI/TP as well to determine whether the line is held or automatically released. These are different controls. A log saying only “interrupt cleared” does not show which state changed or which output behavior was selected.

In the held mode, if the timer is responsible for the low level and no other source is holding the line low, clearing TF releases the timer’s hold. In pulse mode an event starts a low interval identified as tRTN in the manual, after which the output automatically returns to high impedance. Epson explicitly documents that clearing TF during that interval does not cut short the pulse in progress. Applying the behavior of held mode to pulse mode can lead to an unnecessary reset and erase evidence needed for diagnosis.

High impedance is not the same as an immediate high voltage on the scope. After the module stops sinking current, the pull-up, capacitance, other sinks and the host threshold all affect what is observed. Record the low interval at the module, when the input crosses the host threshold, and when the register write completes as separate events. A low level that substantially outlasts the verified pulse under the test conditions needs another explanation.

Put three kinds of timing on one capture

Suppose an engineering board, with pulse mode confirmed and only the timer source enabled, repeatedly shows a low interval of about 8.0 ms in a selected test configuration. Use the /INT falling edge as zero. In the example, the host completes the TF clear at 2.0 ms and verifies TF is zero in a separate read at 3.0 ms. About 5.0 ms of low level remains after that read, or 6.0 ms after the write. Both results are consistent because they use different starting points. The 8.0 ms is a hypothetical board observation, not an Epson tolerance or a universal setting.

Keep the physical falling and release edges on one timing trace, the completed write and returned value on a second, and the host’s read, masking and re-enabling activity on a third. A serial print or a scheduled log may arrive several milliseconds after the action it describes. Capture the waveforms and bus exchanges together and label the addressed module and transaction.

Compare an early TF clear with another clear after the pulse ends while keeping preload, mode, pull-up and capture settings the same. Check whether the low interval actually moves with the write, and verify TF in both cases. A new falling edge after release may correspond to the next timer event, not a continuation of the old one. Intentionally delayed clearing belongs in a controlled engineering test that does not interfere with normal safety or data logging.

If the line still stays low, check the other source

RX-8564LC alarm status AF and timer status TF each have a corresponding enable. A zero TF only tells you what that flag was when read. It does not rule out an alarm requesting a low on the same pin. A handler that reads just TF can repeatedly take the same interrupt path while the alarm remains active. Preserve both flags and both enables before changing them. Then test the sources separately in an approved bench configuration.

Another device on a shared board line can also be sinking it after the RTC has released. If the board has accessible isolation points, observe both sides. If the unit cannot be disconnected, correlate events and wake timing at other nodes at minimum. Follow the established service procedure before disconnecting a load. One successful pull-up observation is not evidence that every board in every state is free from a sustained sink.

Stopping the timer does not erase its history. Epson documents that stopping the count does not clear a TF that was already set. For a repeatable trial, verify separately that counting has stopped, the old flag is clear, and the preload write occurs while stopped, then start in the documented order. Avoid changing several bits before saving the first failure trace. Otherwise a successful retry will not tell you whether you removed the alarm source, cleared earlier status or simply waited for the pulse to finish.

One record for hardware, firmware and service

CheckKeepNot a substitute
Mode and controlsReadback of TI/TP, TE, TIE and timer configurationA note saying only “interrupt enabled”
Status and timingTF, AF, write completion, readback and the falling edgeSoftware print time alone
Module pin/INT waveform, pull-up and host input thresholdInferring a high pin from a status register
Comparison and causeEarly and late clears at fixed settings and an alarm-only runTreating two event sources as one timer chain

Before replacing the module or switching to a successor, check the interrupt drive, bits, clear behavior and timing again rather than matching just 32.768 kHz and a similar package. A driver may ignore the residual low interval, yet the watchdog, wake circuitry or dispatcher may still depend on a new edge. Engineering acceptance should prove both that the module releases under the applicable conditions and that the host can detect the next event when needed. For service, tie the firmware revision and time trace to the device identifier so that a recurrence can be assigned to the right layer.

If a production test says “the interrupt must release immediately after clearing,” split it into two verifiable requirements. First confirm a valid bus transaction and readback of the flag. Then check that the pin completes one operation according to its selected mode and a compliant pull-up network. Use the applicable specification and project criteria for timing, not a single board to infer a full-temperature limit. Also check against false re-entry: after the host handles one event, the remaining low interval must not create a duplicate log, but the next real timer event must still be recorded. This catches duplicate handling without classifying a legitimate pulse tail as a part failure.

Frequently asked questions

Does a low /INT immediately after clearing TF mean the clear failed?

No. Check TI/TP and the actual readback. In pulse mode you can read TF as zero before an already started pulse ends. If the low level persists beyond expectations, check AF, shared sinks and the actual host threshold.

Is writing TE to zero enough to prevent another timer interrupt?

Verify stopping the count and clearing an old event separately. TE set to zero stops the timer function but does not clear a previously set TF or handle an alarm or another device sharing the interrupt. Write the next configuration while stopped, confirm supply and mode, and restart in the documented order.

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.