The RX8900CE stores a weekday mask or a day of the month at the same address. WADA selects the interpretation. If firmware reuses a byte under the wrong mode, an accurate clock can still wake the product on the wrong day.
When a product misses a weekday schedule, it is tempting to replace the oscillator or check the battery first. Start with a simpler distinction: verify the RTC's calendar, then read back the alarm mode and raw bytes. If timekeeping remains correct and the failure begins after changing alarm modes, investigate field interpretation and interrupt handling before replacing the module. An operator should be able to tell how to read the same byte under either mode.
How can one address hold either weekday or date?
Epson’s RX8900CE contains a crystal and temperature compensation. The question here is alarm logic, which timing accuracy does not establish. In manual ETM45E-11, 08h is the minute alarm, 09h is the hour alarm, and 0Ah is the shared weekday or date field. With WADA at 0, 0Ah is a weekday mask. With WADA at 1, it represents day of month. The mask can select multiple weekdays; the date field represents one day within a month. The same address does not imply identical bit weights.
Each alarm field's top bit AE is active low: AE at 0 includes that field in the comparison; AE at 1 ignores it. Even a correct WADA setting cannot make the date or weekday participate if 0Ah has AE at 1. AIE is different. It controls whether an alarm event drives the interrupt output. Do not treat AE and AIE as two names for one alarm switch, or interpret a high pin level as proof that no match occurred.
The AF alarm flag can remain set until cleared as documented. Other interrupt sources may share the active-low pin. To explain why the line is low, identify the actual source. Keep time updates, alarm matches, output actions, and host wakeups separate in the acceptance record. A wake observation on its own does not prove it came from the intended alarm.
Worked example: When does 0x02 mean Monday or the second of the month?
Suppose the unit keeps correct time and should take a routine sample every Monday at 07:30. Set minute field 08h to 0x30 and hour field 09h to 0x07, both included in comparison. If 0Ah is 0x02, its top bit AE is 0. With WADA at 0, bit 1 of the mask selects Monday. With WADA at 1, 0x02 is day 2 of the month, not a weekday mask. The schedule here is illustrative, not Epson's application data.
Use test dates where weekday and date do not coincide. Suppose one Monday is the eighth of the month. At 07:30, only the Monday rule should match. In another case, the second falls on Thursday. At the same time, only the date rule should match. For each scenario, handle old events first, record other wake sources, and let the clock reach the intended minute. Testing only a second of the month that is also Monday could make both modes look correct.
Now suppose 0Ah is 0x82 while the hour and minute still participate. AE at 1 ignores the weekday or date, so the 0x02 low bits do not constrain the day. It may match at that hour and minute every day. This is not a working Monday mask. Conversely, if all three AE bits are 1, the manual says all three fields are ignored and an alarm event can occur every minute. That is not a complete disable. Use AIE as defined when disabling the external alarm interrupt.
How do you avoid carrying old bytes into a new mode during recovery or updates?
Store meaning independently of register encoding. Persistent settings can say “weekday mode, Monday, 07:30” or “date mode, day 2, 07:30,” rather than keeping only the 0Ah value. When upgrading, resetting, or replacing a board, encode the fields again from the intended behavior and verify the raw readback. If old settings must be migrated, identify the mode they used; do not switch WADA and copy the byte unchanged.
Follow the manual’s recommendation to disable the alarm interrupt while entering settings to avoid an unintended output during the update. Handle any old AF under the system’s state procedure, then read back WADA, the three comparison fields, and enables. If /INT stays low, the new alarm configuration may still have been written. Check other sources and distinguish uncleared status from a new match. Preserve original flags before clearing evidence needed for diagnosis.
On the bench, let time advance through a match. Merely setting the current time to the target is not the same as an event; configure the alarm in advance as shown in the timing notes. Start from at least one nonmatching time, then check AF and /INT across the intended minute and verify that the host actually leaves sleep. If dates are advanced for testing, keep calendar, weekday, and project time rules coherent rather than treating an unrealistic date setting as a product failure.
Monthly schedules also need a policy for months that lack the selected date. A requirement such as “last day of the month” is not the same as a fixed date. Implement and verify the product's calendar rule rather than treating the RTC alarm as an arbitrary scheduler. Record when the unit must remain asleep and whether the application should make up a missed event. This makes retests capable of distinguishing a logic fault from a component problem.
Include factory reset and restoring an old settings file in regression. If the same control changes between weekday and monthly schedules, check whether an incomplete switch leaves the old label visible. Keep snapshots showing the same raw byte under the two modes alongside the expected matching days. This detects a decoding regression directly after a driver or app change rather than waiting for an unexplained wakeup.
If more than one business task shares a wake window, verify where tasks are combined. Application software can manage several schedules, but do not claim the RTC's single shared field stores weekday and day of month simultaneously. Record the active device rule, any rules managed by the application, and collision handling. If two jobs overlap, specify whether the equipment executes once rather than reporting deliberate suppression as a missed RTC event.
Engineering and procurement checklist
| Item | Retain | Decision check |
|---|---|---|
| Module identity | Full RX8900CE code, manual revision, and firmware profile | Matching packages do not make RTC registers equivalent |
| Alarm meaning | WADA, raw 0Ah, and explicit weekday or date mode | The meaning of 0x02 depends on the mode |
| Fields and interrupt | 08h, 09h, all three AE bits, AIE, AF, and other sources | Ignoring a field is not disabling the hardware interrupt |
| System verification | Matching and nonmatching dates, /INT, and actual wake logs | Do not test only dates where both interpretations coincide |
Two common questions
Why does changing WADA appear to do nothing?
Check that the 0Ah AE bit has not excluded that field and whether the test date satisfies both interpretations. Retest with a weekday and date that do not coincide.
Is saving 0x02 enough for a measurement on day 2 of every month?
No. Save that it means day of month and retain the hour and minute. Firmware must restore both WADA and the comparison fields. Qualification should also check AF, the interrupt output, and host wakeup.
