Changing the RX8804CE compensation interval from the default two seconds to 30 seconds requires changing CSEL1 and CSEL0. Writing the entire control byte as 0xC0 selects 30 seconds, but also clears the UIE, TIE and AIE interrupt enables in that register. If the equipment previously woke on an alarm, the internal flag may still change while the external interrupt no longer reports the event as expected. Check the actual byte before attributing everything to the compensation strategy.
Why compensation and interrupt enables share a write
Epson ETM59E-07 defines address 0Fh as Control 2. The top two bits choose compensation interval. The next three enable update, timer and alarm interrupts. At the bottom, RESET controls the reset action defined in the manual; it is not part of interval selection. The two intervening write-protected bits read zero and are not storage for application state. The two highest bits provide four interval choices.
| CSEL1, CSEL0 | Compensation interval | Field value in the top two bits |
|---|---|---|
| 00 | 0.5 seconds | 0x00 |
| 01 | 2.0 seconds, initial power-up default | 0x40 |
| 10 | 10 seconds | 0x80 |
| 11 | 30 seconds | 0xC0 |
The last column gives the field value, not a complete register image safe to write to every running board. An RTC that remained powered can retain configuration while the host restarts. Do not overwrite configured switches on the assumption that the default still applies. Distinguish initial setup from an edit to an existing configuration.
Decode an actual write
Suppose a board reads 0x48 beforehand: 0x40 represents two seconds and 0x08 means AIE on, with the other interrupt enables and RESET not set. In this controlled example, 0xC8 selects 30 seconds and keeps AIE on. Writing 0xC0 instead omits 0x08 and clears AIE. Do not apply 0xC8 to every board. If timer or update interrupts are also enabled, their settings belong in the intended byte as well.
Distinguish an unreported alarm from one that did not occur
Alarm flag AF is in the Flag Register at 0Eh, not Control 2. AIE at 0Fh controls whether the alarm event is reported on the interrupt pin. Record the alarm settings and intended event time, whether AF records the event, and whether the external line responds. If AF sets but the line remains inactive, check AIE and the board’s interrupt path before changing the alarm time.
If AF does not change, do not assume the interrupt was simply disabled. The scheduled event may not have occurred or its alarm condition may not have been met. Also record whether other interrupt sources share the pin. A low level is not proof of an alarm. If the timer and time update are active, produce each source separately under controlled conditions.
Preserve the settings that should not change
Treat bits seven and six as one field and retain the other interrupt enables according to the confirmed software configuration. Construct the full new byte under the manual’s rules for protected and command bits, without inadvertently triggering RESET. Do not blindly echo every lower bit from a read on a running system when another routine might set time or maintain interrupts. Having one controlled path update the register makes verification easier.
Verify that only the interval changed
On a known-good board, capture raw Control 2 and event flags and record the interrupt waveform before the change. After writing, read back Control 2 and compare the interval, three enables and command behavior. Repeat the same alarm event and inspect AF and the interrupt pin. Measuring only average current or clock output does not establish that alarm reporting still works.
Test relevant firmware-update paths separately: main supply, backup or a host-only restart. The starting state may be the default or a user’s retained interval and interrupt settings. Do not simplify the test by always clearing and manually restoring those settings first. Observe what the real software does with its existing state. If separate maintenance routines can touch the register, ensure each knows which bits it must preserve.
Log the raw read, intended write and final readback together. Identify the two targeted bits and why the others were retained or reconstructed under the manual. A user interface showing “30 s compensation” can prove that the selection was recorded, but not that the full byte is correct. Pair the register trace with a real wakeup to distinguish bad writes from a board-level issue.
Does a 30-second interval tell you how much power is saved?
The manual says a longer interval reduces relevant current, but going from two seconds to 30 seconds does not divide board current by fifteen. The configured frequency of compensation operations falls to about one fifteenth. Static consumption, clock output, external pull-ups, operating mode and host wakeups cannot be scaled by that ratio. To estimate battery impact, retain the same interrupt and output settings and measure the same operating state.
Recheck performance under relevant temperature changes as well. The interval schedules compensation activity. It does not mean the clock runs only every 30 seconds or that the error during the interval is a fixed amount. Preserve comparison data for the expected temperature profile and interpret it under the manufacturer’s conditions. This change review establishes that an interrupt was not turned off inadvertently; the final compensation and power choice still depends on the system.
Put a verifiable change in the handover
For multiple firmware versions, treat the old live configuration as an input. A full-byte constant from an older release is not necessarily safe in a new one. If alarms and periodic activity serve different product functions, repeat a known event for each. Pulling the line low in a diagnostic mode may only demonstrate some other test setting.
On a product that polls flags instead of watching the interrupt pin, clearing AIE can leave records visible and hide the problem. A board that depends on interrupt wakeup may then fail at the expected time. Document whether the unit polls or relies on notification, and qualify that actual path. When symptoms appear only during sleep, observe real sleep rather than leaving the controller awake with the debugger.
Preserve the firmware version and actual write sequence when logs are available. If two components manage the same control byte, a correct readback at one moment does not establish that it holds throughout operation. A later overwrite can be found in the write log rather than attributed to power fluctuations or the compensation algorithm without evidence.
Specify “set CSEL to 11 at 0Fh, preserve the required interrupt enables and avoid RESET,” then record expected readback and repeat the event test. If the alarm stops after an update, compare the actual write and readback, then distinguish event from notification using AF at 0Eh and the interrupt trace. Check every required source if several were previously enabled. Changing the compensation interval should not silently disable an unrelated system function.
