Ignoring the seconds field on Epson’s RX8901CE is not the same as alarming once at the start of a minute. Check the four comparison masks, then verify the interrupt flag and pin.
A fault like this can look like a problem with the 32.768 kHz crystal oscillator. If calendar seconds advance normally but the alarm keeps requesting service during a particular minute, start with the comparison rules. Distinguish a match, a latched flag and a new falling edge on the interrupt line.
Ignoring seconds does not turn off the alarm
The RX8901CE is a real-time clock (RTC) with an integrated crystal. Its alarm can compare weekday or date, hours, minutes and seconds. Each field has a control bit: an X*AE bit set to 1 excludes that field; 0 includes it. XSAE controls seconds and XMAE controls minutes. A seconds register can still contain 00 even when the comparator is configured to ignore it. Reading 00 alone does not establish a single match at the start of the minute.
If the hour is 07 and the minute is 00, excluding seconds leaves every update from 07:00:00 through 07:00:59 inside the matching window. An enabled weekday condition limits which days can enter that window. If the day field is ignored, only the remaining time comparisons apply. Epson also specifies that setting all four X*AE bits to 1 generates an alarm event every second. That is not an overall off switch. Alarm interrupt output is controlled by AIE.
Make it clear in the configuration interface whether the action disables alarm output or omits one comparison. If one checkbox changes several settings, read back all masks afterwards. Two units with the same posted hour and minute can behave differently when their masks differ. Record the values, the fields that participate, the mode and the readback.
Separate the event from the flag and the pin
When a match occurs, INTF.AF is set. If TSTP_INTE.AIE enables alarm interrupts, the alarm can pull the active-low /INT pin low. Epson documents that writing 0 to AF releases the alarm's request, and setting AIE to 0 can disable its contribution to the line. Other enabled interrupt sources can still be active. Do not assume the shared line must return high after clearing AF.
That distinction explains why a trace may show one long low level on one build and many falling edges on another. If the host never clears AF, a new match cannot create another falling edge while the line is already low. If the host clears AF and the next second matches, the line may release and then be asserted again. The external pull-up and probe connection also affect the observed waveform. Record flags, host clear times and pin voltage separately.
Also distinguish the time-update interrupt. A one-second cadence can come from the time-update function rather than an alarm. Inspect the alarm flag AF, time-update flag UF and enabled sources on the test board, and retain the raw trace. If only the time-update source is active, editing the alarm masks may not change what you see.
Count matches in a sample minute
Suppose a logger should wake only at 07:00:00 on workdays. With weekday, hour, minute and seconds all included, the minute has one matching seconds update on an eligible day. Set XSAE to 1 with everything else unchanged and seconds 00 through 59, inclusive, provide 60 possible matches. This counts match opportunities, not 60 necessarily observable falling edges or 60 executed host tasks.
Suppose the host clears AF promptly after each event, no other source holds the line low and the pull-up is correct. The trace can then show repeated requests at roughly one-second intervals. If the host leaves AF set after the first event, an edge counter may see only that first assertion. Capture 06:59:59, 07:00:00 through 07:00:59, and 07:01:00 to distinguish entry, persistence and exit. This is more useful than writing “many alarms” in a test log.
| Check | Example condition | Meaning |
|---|---|---|
| Include seconds | XSAE=0, seconds 00 | One matching update in the minute |
| Ignore seconds | XSAE=1, other fields unchanged | 60 match opportunities in the minute |
| Ignore all comparisons | All four X*AE bits set to 1 | Matches every second; not disabled |
| Control the interrupt request | Check AIE, AF and other sources | Distinguishes matches from pin edges |
Turn the finding into a repeatable acceptance test
Follow the manual’s sequence: disable alarm interrupt output, configure seconds, minutes, hours and date or weekday, verify the masks and mode, clear stale AF, and enable the required interrupt at the end. If the product does not need alarms, leave the corresponding output disabled. Avoid clearing unrelated production event records while testing an alarm; use an approved test environment.
Agree whether the application needs once-per-minute, daily or workday scheduling. For a workday test, run one eligible date and one ineligible date, then capture a separate time-update-only control. Use one time reference for the planned alarm, actual register flags and pin changes. Save raw bus data when the application and driver use different encodings, so reviewers can see which controls the device actually received.
For procurement or repair, verify the model and controlled documentation used in firmware testing. The same 32.768 kHz oscillator frequency or a similar package does not establish seconds comparison or the behavior when every field is ignored. Include these distinctions in substitute-part regression testing instead of assuming one successful room-temperature trial covers the interface.
For regression, keep one trace in which the host leaves the flag set and another in which it clears each event. The first shows how the pin can remain low while matching continues. The second shows subsequent requests after release. Keep the comparison settings the same, and note whether other interrupt sources were masked. Do not attribute different edge counts to the board or crystal lot when the host behavior changed.
For a low-power product, also record when the host returns to sleep. A low level affects a level-triggered wake source differently from an edge-triggered source. Confirm the host setting and wake reason, then compare them with the alarm flag and pin. Record host wakeups separately from peripheral matches to avoid “correcting” a time base that was not at fault.
Record the tested firmware and peripheral model for maintenance. Revisit that evidence when a board is replaced.
Frequently asked questions
Why is the host busier after I turn every comparison off?
Ignoring a comparison makes it easier to match. To suppress alarm requests, disable the alarm interrupt with AIE and handle any pending flag according to the application. Do not use the four masks as the overall off switch.
Does a single falling edge rule out a match every second?
No. A latched AF can hold the output low. Align the comparison settings, flag clears and pin timing to distinguish no subsequent match from no subsequent visible edge.
