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

Why Epson RX8111CE FOUT still carries a 1024 Hz crystal clock after interrupt rerouting

Check the interrupt-routing bit TMPIN and then the clock selection FSEL. Routing a timer event to FOUT does not automatically turn off the clock already assigned to the pin.

A low-power recorder reuses the frequency output of its real-time clock (RTC). On the old board, FOUT carried 1024 Hz. On the new board, the same line should wake the host on timer expiry. Firmware routes the interrupt to FOUT, but the host wakes repeatedly. Changing the trigger to falling edges does not fix the problem. Before recalculating the timer counts, check whether FOUT carries only a clock, only a timer notification, or both combined. A receiver edge means something different in each case.

Changing the interrupt route does not switch off the divided clock

The TMPIN function table in Seiko Epson’s RX8111CE manual ETM61E-04 specifies timer interrupt output on the N-channel open-drain /INT pin when TMPIN = 0 and on CMOS FOUT when TMPIN = 1. It also says the latter combines the FOUT clock function and the timer interrupt with logical OR. For timer notifications only on FOUT, first confirm the system no longer needs the continuous reference there, then set FSEL1:FSEL0 to 11 to turn off the clock output. This disables the clock function of the pin; it should not be interpreted as stopping the RTC oscillator or countdown.

The FSEL codes 00, 01, and 10 select 32.768 kHz, 1024 Hz, and 1 Hz, respectively. A 1 Hz clock can have the same rate as a periodic timer notification, but the two are not the same event, and their phases can differ. If combined on the same pin, one edge per second does not tell you which source caused it. When the application needs both a continuous reference and a timer alert, the manual recommends keeping FOUT for the clock and setting TMPIN to 0 to route the timer interrupt to /INT. Verify each receiver for its actual role instead of guessing from one combined trace.

Treat routing, pin electrical behavior, and timer state separately. /INT is open drain and FOUT is CMOS. The pull-up, supply domain, and receiver input limits may not transfer from the old board. Do not assume the old active edge still applies, or short the outputs together as a test. Use the timer count and timer flag TF as evidence of expiry. The absence of a distinct pin edge does not show the absence of an internal event.

Worked example: One event per second, nearly a thousand edges

Suppose the device leaves the 1024 Hz clock on FOUT and expects rising edges on the same pin to identify the intended once-per-second timer notification. A simple clock has one rising edge per period; 1 ÷ 1024 s is about 976.56 μs, so its rate is about 1024 rising edges per second in the absence of other effects. The application only wants one notification per second. Actual host wakes depend on sleep control, masking, and service time; 1024 edges per second is not a measured wake count.

For an idealized OR example, let the clock be high from 0 to 488 μs and the second logic term high only from 100 to 200 μs. The output remains high from 0 to 488 μs; the second term creates no additional edge. If it overlaps the original falling edge, it can extend the high interval instead. The polarity, relative times, and durations in this example illustrate the logic. They do not specify the RX8111CE timer pulse width, pin idle state, or phase. Measure those on the actual board and check the manufacturer’s definitions.

Intended useConfiguration and connectionWhat to observe
Continuous reference onlySelect the FSEL frequency and retain the clock pathFrequency, load, and valid edges
Timer notification only on FOUTTMPIN = 1, FSEL = 11, receiver electrical checksCorrespondence between expiry and FOUT notification
Both reference and notificationClock on FOUT, TMPIN = 0, notification on /INTQualify the function and electrical interface separately
Event recorded but no edge seenConfiguration readback, TF, and actual receiver pinSeparate count, routing, and receiver problems

Capture each waveform separately before testing real wake-up behavior

Use a controlled bench setup after confirming the test will not activate machinery unintentionally. Capture the clock-only output first and verify frequency, effective levels, and the edges at the receiver. Then configure the timer-only output and capture a quiet baseline and a known timer expiry, including pin behavior before and after the event. To explain the earlier problem, compare a known combined configuration, but do not leave it as the production default. If software sees TF while the pin shows no separate notification, investigate the combined waveform, routing, or receiver thresholds before blaming the quartz.

Correlate register readback with waveforms on a common timebase. Pay particular attention to firmware initialization order. One version may set TMPIN before disabling the continuous clock in a later bus transaction. If the host wake input is already enabled, it may receive edges the application did not intend to handle. Consider keeping the host function masked until configuration is verified, disposing of earlier state appropriately, then enabling it with the intended timing. Check the actual host and RTC requirements. Test cold start, firmware reset, and backup switchover separately; one normal waveform does not cover all three.

When qualifying a replacement, specify “independent reference output” and “timer notification output” as separate requirements. Engineering should identify the pin, drive type, supported power states, and actual receiver trigger. A replacement RTC with matching package, calendar access, and nominal frequency may have different pin multiplexing. For an issue in production, retain firmware revision, board revision, and raw pulse captures. Restore a signal path that distinguishes the events before testing a sustained wake log for false notifications.

Probe location matters as well. If the module pin shows the notification and the host pin does not, inspect adapters, level translators, and how the input is configured in sleep and run modes. If the waveforms agree but the log repeats, check whether the interrupt handler or application processes one event more than once. Determine whether a counter is counting physical edges, interrupt service entries, or application notices before using it to diagnose the programmed timer rate.

For traceability, give each known timer event an identifier and align it with the clock-edge recording using a documented time window. For example, split the view into before, near, and after expiry and record the routing configuration and host trigger count. Use the same window for the clock-only and notification-only runs and observe more than one application period. A fixed scope record that begins after the trigger can miss the preceding idle level. Increase pre-trigger capture rather than inferring the idle state from a short pulse at the edge of the display.

If the objective is lower sleep power, measure the host's quiescent current with no event separately from its actual wake count. An RTC can operate correctly while unnecessary clock edges repeatedly wake the host. Comparing only the RTC's specified current across parts does not show whether total equipment power improved.

Frequently asked questions

FOUT still shows 1024 Hz. Does that prove the timer never started? No. Separate the clock and timer paths, then check the flag and pin waveform for a known expiry.

Can we reuse the old /INT pull-up and edge settings on FOUT? Not without checking. The output types differ. Verify the actual voltage, idle behavior, and receiver requirements.

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.