To resume the RX8111CE from the remaining count, check the conditions for its timer pause bit, TSTP. Clearing and setting the timer enable bit, TE, starts the countdown from the preset, not the remaining value.
A device accumulates waiting time only while its service door is closed. The first closed interval lasted eight minutes. Maintenance opens the door; after it closes again, the device should issue an inspection reminder after two more minutes. Instead it waits another full ten minutes. The calendar still reads correctly, so engineering initially suspects a missed wake interrupt. First inspect which control the firmware used to stop the counter and what the count registers represent after the operation. Do not start by replacing the crystal or changing the nominal frequency.
Toggle TE only when you intend to start over
The wake-up timer section of Seiko Epson’s RX8111CE application manual, ETM612E-03, distinguishes two operations. In the extension register, a 0-to-1 transition of the timer enable bit, TE, starts a countdown from the preset. A timer-register read with TE at 0 returns the preset. With TE at 1, the register returns the current count. A plausible-looking readback does not establish that it is the previous remainder. The operating state changes the meaning of the number; record TE and the readback together.
To retain the remaining count, the manual defines TSTP behavior for TE = 1, STOP = 0, and TBKE = 0: writing 1 pauses, and writing 0 resumes from the stopped value. STOP is a separate control field, not shorthand for TSTP. TBKE is associated with selecting accumulation by main or backup power mode. The manual also says TSTP is ineffective when TE = 1, STOP = 0, and TBKE = 1. If the design enables power-mode-based accumulation, a successful TSTP write is not proof the countdown has paused. If the application requires both constraints, design and validate the combined counting logic rather than assuming both bits can simply be set.
Check the count, timer flag TF, and physical interrupt output separately. Disabling the output is not the same as stopping the count, and a receiver missing the notification does not show that the counter restarted. Reconstruct what the firmware actually changed and check the count register, flag, and receiver as separate evidence. An interrupt log alone does not identify when the internal count returned to its preset.
Worked example: Two more minutes or ten after the same four-minute pause?
Assume a 1 Hz source and a preset of 600 counts, for a nominal accumulation target of 600 seconds. To isolate state behavior, suppose exactly 480 ticks have elapsed when the pause takes effect, leaving 120. The service door remains open for four minutes, then closes. If TE stays at 1 and TSTP pauses and resumes the timer under the documented conditions, the nominal remaining interval is 120 ÷ 1 = 120 seconds, or two minutes. If firmware clears TE when the door opens and sets TE when it closes, the nominal interval starts over at 600 ÷ 1 = 600 seconds, or ten minutes. The 480-second difference is the discarded progress. There is no need to invoke crystal drift to explain it.
From the first closure, an external stopwatch shows expiry at about minute 14 with TSTP and minute 22 with a TE restart, ignoring command delays and the phase of the source ticks. Both include the same four-minute service interval. The manual describes an initial countdown phase error related to the source tick, and the door edge also precedes the actual bus write. The nominal times do not promise edge alignment. In acceptance testing, record the door signal, bus transaction, and interrupt separately.
| Question | Evidence | Decision |
|---|---|---|
| Should the count restart? | Preset, application session ID, and start of the new session | Use TE to reload for a new session |
| Did the pause take effect? | TE, STOP, TBKE, TSTP, and write timing | Apply the manual’s conditions for a valid manual pause |
| Is the remainder reliable? | Clock source, successive reads, and raw bus trace | Identify preset versus changing count |
| Did the notification arrive? | Expiry, TF, and receiver pin observation | Separate counting faults from notification problems |
Distinguish a failed pause from a restart after a valid pause
First verify a complete uninterrupted countdown with a known preset. Then run two tests with the same pause interval: one changes only TSTP, while the other deliberately clears and sets TE. Compare on the same device with the same timer source and power state. Correlate the door signal, bus activity, and receiver input, and collect counts before, during, and after the pause. If the count keeps falling during the pause, check the qualifying bits and whether the write took effect. If it holds during the pause but jumps to the preset at resume, look for an initialization or recovery routine that changes TE.
Do not assume reading an active multibyte count freezes it. The manual says the count is not held during read access and gives successive matching reads as one approach. Choose a read and retry strategy suited to the tick rate. If reads keep differing, record an unstable result rather than retrying indefinitely. Test around byte boundaries and expiry reload to see whether reads straddle a change in value or meaning. To verify that a pause preserves the count, take a reading during a known stopped window and cross-check it against the expiry after resumption.
Expose “pause” and “cancel” as different application operations. A pause preserves accumulated progress; canceling and starting a new job reloads the preset. A device restart during service may run initialization code that changes the timer, so test restart, power loss, and backup mode separately and decide which progress must survive. The powered pause example is not a claim about retention through power loss. If a replacement specification lists only a built-in crystal and bus compatibility, this application function may be missed. Include pause and resume, restart and reload, and power-mode limitations in the qualification checklist, and test the device with the actual driver.
Contact bounce can also deliver multiple copies of what should have been a single pause or resume event. Log raw door edges separately from accepted application transitions. A repeated “door open” while paused should not create a new timer job. A repeated “door closed” after resumption should not rerun initialization. If a bus transaction fails, retain what the software intended to write and what the device readback or bus trace confirms. A single “paused” line in the application log cannot tell you whether the command was never sent, was rejected, or was accepted in a configuration that does not support pausing.
Define beforehand whether expiry or pause wins when the door opens near the deadline. Test opening just before and just after expiry. Check that the system delivers only one notification for the session, and record whether the preset has reloaded. Use original timestamps to establish write order instead of inferring it from the interval between interrupts.
Keep the firmware revision as well, so results before and after a fix are not mixed.
Frequently asked questions
TE is off and the readback is 600. Does that mean ten minutes remain? In that state it is the preset, not the previous remainder. Check the control history and a read made in a valid paused state.
Does disabling the interrupt pause accumulation? The notification path does not replace count control. Verify the documented control combination and observe whether the count stays unchanged during the intended pause interval.
