With minute updates as the RX-8803SA/LC timer source, the first tick follows the RTC’s calendar minute, not a fresh minute starting with the enable command. Separate the first expiration from subsequent periods when designing a relative delay.
Minute mode counts minute boundaries, not sixty new seconds
A logger should start a sample every minute. Its host enables a one-count timer at 12:34:40 and expects a first interrupt at 12:35:40. The interrupt arrives around 12:35:00 instead. That does not imply a fast oscillator or a lost bus transaction. Epson’s RX-8803SA/LC FAQ explains that the minute-based timer uses the internal minute update. Its example starts at 40 seconds and waits about 20 seconds. Countdown advances at the existing calendar boundary rather than starting an independent 60-second phase when the timer is enabled.
The fixed-cycle timer selects a source using TSEL1 and TSEL0. When both are one, the manual lists the minute update as the source. A transition of TE from zero to one starts countdown from the preset. The transition from 001h to 000h generates a timer event, and the counter reloads. Decide whether the job is to align with calendar minutes or to wait a fixed time after a button press. The minute source fits the former. An integer setting in that mode does not establish a fixed relative delay for the latter.
Separate the event, flag and output pin
An interrupt edge is not necessarily a unique timer event. A fixed-cycle timer event sets TF. With timer interrupt enable TIE active, /INT can report it. Other enabled events can use the same pin, so read and record the flags rather than calling every edge a timer expiration. TF and the pin are different evidence: the former carries timer event state, while the latter depends on interrupt enable and other sources. Test polling and edge-based wake-up separately if the design uses both.
| Check | Manual or FAQ definition | Board record |
|---|---|---|
| Minute source | TSEL1:TSEL0 = 11 uses the internal minute update | Seconds at enable and the next minute boundary |
| Start | TE transitions from zero to one and starts from preset | Actual write time and configuration readback |
| Timer event | Countdown from 001h to 000h, then reload | Compare the first and subsequent events |
| Pin indication | TF records the event; TIE controls its effect on /INT | Check other sources, indication duration and flag handling |
Writing the time to a whole second or minute before enabling the timer can change the first delay compared with enabling it in normal operation. Do not test only at whole minutes. Real starts may be triggered by a button, network request or power-up at different phases within the minute. Use a reliable timing reference; an unexplained one-second difference between instruments does not identify the faulty side.
Worked example: counting one or two minute ticks
Assume the timer is enabled at 12:34:40 with the readout close to the actual command and no intervening time correction. With a preset of one, the first update is 12:35:00, about 20 seconds after enable. Reload produces the next event near 12:36:00. With a preset of two, 12:35:00 takes the count from two to one; the first expiration is near 12:36:00, about 80 seconds after enable. The next is near 12:38:00, two minutes later. A two-count setting does not wait a fresh 120 seconds from the command because its first tick goes only to the next existing boundary.
In an ideal model, if s seconds of the current minute have already elapsed and the preset is n minute ticks, the first interval is approximately (60−s)+60×(n−1) seconds; later intervals are about 60×n seconds. This leaves out bus timing at the boundary, reference error and interrupt-service latency. If the command crosses a minute transition, a display read before the write does not tell you which tick counted. Capture enable, the actual calendar transition and the first event. Do not present the arithmetic as a worst-case timing guarantee.
Distinguish source selection from oscillator accuracy
Test at least near the start, middle and end of a minute with the same preset and output conditions. Put enable, the second or minute update, TF, /INT and software event time on one timeline. If the first delay shifts with the minute phase while following intervals track minute ticks, the calendar-boundary explanation fits. If later periods are wrong too, review the preset bits, source, enable transition and other interrupt sources. A serial print timestamp is not necessarily the interrupt pin’s timestamp.
For strict relative delays, evaluate the manual’s other timer sources and count capacity or use a host-maintained relative timebase. A second-update source still has calendar phase; a finer unit does not imply zero first-tick error. With a faster periodic source, check the counter capacity and total time before deciding whether software needs to accumulate events. Do not increase the minute preset until one trial looks right and then accept the design. For a logger intentionally aligned to whole minutes, document the first alignment so the first post-start record is interpreted correctly.
For devices that sleep for long periods or respond to background events, state the alignment requirement in testable terms instead of writing only “once per minute.” A logger that needs one measurement per wall-clock minute can expect its first event near the next minute boundary while still allowing for sampling latency after wake-up. An instrument that must run for a full 60 seconds from a button press needs a permitted error interval and a test reference unaffected by calendar adjustments. Both requirements mention one minute, but one is about wall-clock position and the other is about elapsed time.
For regression tests, treat recording, clearing prior state, configuration, enabling and observation as separate steps. Check whether TF from a previous event remains set so it is not mistaken for a fresh interrupt. Verify which registers hold the preset and which report state. The test should identify the actual enable instant and exclude simultaneously enabled alarm or update events as the cause of the observed interrupt. A complete trace and register readback from one unusual boundary case is more useful than averaging many successful cases.
Two common questions
Why does the test look right if I set the clock to a whole minute first?
The next minute boundary is then almost a full minute away. The source is still the calendar minute. Include starts away from the boundary in acceptance testing.
Can a single scope trace on /INT establish acceptance?
No. Check the configuration, event flag and calendar phase together, and separate first delay from repeat period. When several sources share the line, one pulse does not identify its cause.
