Disable WALE so a partially written alarm cannot become a valid comparison. Alarm W in Epson's RX-4045 SA/NB compares weekday, hour and minute. Section 8.5.1 of ETM01E-03 tells the host to clear WALE before changing those fields and WAFG, then re-enable WALE. Successful serial writes do not make the old alarm become the complete new alarm in a single step. Leaving comparison enabled creates a window in which a minute boundary can coincide with a mixed setting.
Why can it fire when neither schedule says to?
Suppose the old alarm is Wednesday at 09:45 and the new alarm is Thursday at 10:30. If the minute is changed first near Wednesday 09:30, the old weekday and hour are still present. A task interruption that extends over the comparison at 09:30 can expose Wednesday at 09:30 as a temporary match. Neither the old nor the intended schedule contains that event. This is a way to construct a regression test, not a claim that all writes cause a match or a specification of the exact interrupt delay.
Separate disabling from restoring the configuration
Preserve the current settings and pending status before following Epson's documented disable sequence. Avoid unintentionally overwriting other controls when updating the register. Verify the target weekday, hour, minute and intended status before re-enabling. If a transfer stops partway through, do not re-enable comparison against the mixed fields. Recover from a known complete configuration or rewrite the entire target. Clearing an alarm status does not itself turn off the comparator.
For a bench check, start just before a minute boundary and insert an observable pause between configuration writes. Capture serial traffic, device time and /INT. Separate Alarm W from any other sources sharing the interrupt. Confirm no unwanted wake during the update and a genuine wake at the intended setting. If normal timekeeping is intact, investigate write sequencing before replacing the module's built-in 32.768 kHz timebase.
Related selection guide: MERLIN Crystal Timing: Saving Four Weekly Wake-Ups with the RX-8025SA Alarm W Day Mask | Crystal & Oscillator Handbook
Resource link: https://www.mecxtal.com.cn/en/handbook/rx8025sa-week-mask-alarm.html
