They can be reused under stated conditions, but they are not permanent storage. Epson lists address D as dedicated user RAM on the RX-8035SA/LC. It also permits the four Alarm_Mo bytes to be used as RAM when the month alarm comparison is disabled, with MoALE=0. Those bytes span two register banks, belong to the alarm after it is enabled, and are affected by power-on reset. Define ownership, recovery and verification before counting the available storage.
Map bank and address rather than a consecutive numerical range
Alarm minutes and hours are at Bh and Ch in BANK=0. Day and month are at the same addresses in BANK=1. Equal addresses in two banks are not the same fields. Dedicated RAM is at Dh and maps to the same function in either bank. MoALE at control address Eh enables comparison; zero disables it. Writing four consecutive addresses from BANK=0 Bh does not write the four month alarm registers. It can instead reach dedicated RAM and control without reaching day and month in the other bank.
| Location | Normal function | Check when reusing |
|---|---|---|
| BANK=0 Bh / Ch | Month alarm minutes and hours | Confirm bank 0 |
| BANK=1 Bh / Ch | Month alarm day and month | Confirm bank 1 |
| Dh | Dedicated user RAM | Shared across banks; count it once |
| MoALE at Eh | Enables month alarm comparison | Reuse four bytes only with comparison disabled |
Dedicated and borrowed bytes are not equivalent. If one short state byte is enough, consider dedicated RAM first. If several features share alarm locations, name their owner. A wrong-bank read may return a plausible value written by a previous module. Log bank, address and data together instead of keeping only the address.
A five-byte example exposes capacity and retention limits
Suppose an application needs four temporary status bytes and an independent marker and genuinely does not use the month alarm. Two bytes can occupy each bank’s alarm locations, with a separate marker at Dh. That is 2 + 2 + 1 = 5 bytes, not six because Dh appears in both banks. These temporary diagnostics are not the sole copy of production configuration and are not assumed to survive a battery replacement or every supply disturbance.
With comparison disabled, use distinct test values such as 0x11, 0x22, 0x33 and 0x44, and a separate nonzero Dh marker. A bank-aware read returns the first two from bank 0 and the rest from bank 1. If every access mistakenly stays in bank 0, the later writes may overwrite the earlier ones. Identical patterns can conceal that error. These are lab debug patterns, not calendar values to carry into an enabled alarm. Do not interpret old test bytes as months or minutes to restore.
The manufacturer’s reset table includes the alarm locations, user RAM and relevant configuration among the affected items. If a read returns zero, check for reset before attributing it to an application update. One main-power removal test without a reset does not establish retention through battery replacement, dips or every low-voltage boundary. If long-term storage matters, use the product’s required persistent method and consider both data validity and reset status in recovery.
Return all four bytes before enabling the month alarm
Define three ownership states: temporary data, handover, and alarm. Keep comparison disabled during temporary use. At handover, stop other readers and writers, save or discard temporary data as required, and program the intended minute, hour, day, month and selection conditions. Confirm bank, encoding and configuration before enabling. Do not enable comparison first or rely on the previous storage pattern not matching anything. When alarm service ends, disable it by the proper procedure, handle stale state and transfer ownership before reusing the locations.
If a transaction stops halfway, do not let a partial configuration become the alarm. At startup or recovery, check reset state and software ownership and restore the known configuration defined for the product. An arbitrary Dh value is not authority to continue. If two features need the bytes at once, use independent storage. Centralizing access in one driver prevents a debug command or another task from switching banks unknowingly. Record any bank changes by test tools instead of treating incidental wrong-bank reads as a hardware reliability issue.
Verify disabled comparison with bank-aware writes and readback, successful alarm operation after handover, and restoration after reset. Preserve bank selection, control bit, raw data and interrupt evidence. On long-standby designs, check supply handover and restoration without destroying original state just to demonstrate retention. Each tested sample should link to its firmware revision.
Document the limited scope of register reuse
Record the exact part number, application manual revision and power arrangement. Driver documentation should identify dedicated RAM, ownership of temporary locations, handover, exception handling and test evidence. A production clock-frequency or timekeeping check does not verify RAM reuse. Run a representative regression on firmware and board-revision changes. If changing RTC, recheck the new register map rather than copying the same bank and address.
For a field report of lost data, distinguish reset, wrong bank, a newly enabled alarm, and a design lacking persistent storage. Each can produce unexpected readback and calls for a different fix. Keep the last confirmed operating state and the first failed read. Later initialization data is not a substitute for evidence from the failure.
Handover does not require overwriting adjacent locations. Limit the write list to the intended banks and fields, and regression-test adjacent control bits for unintended changes. If only part of a write sequence is known to have completed, read the affected fields and follow the driver’s recovery procedure. Keep the complete test sequence as evidence, not just a final alarm assertion.
FAQ
Can an enabled month alarm and general storage share all four bytes?
Do not design that way. Epson’s full-byte reuse condition is disabled month alarm comparison. Individual read/write bits do not make the entire register free to overwrite. When both features are needed, use dedicated RAM or separate storage and keep their checks independent.
Can Dh hold two markers because it is visible in both banks?
Do not count two independent locations. The map links the second-bank Dh to the same function as the first bank. If independent markers are needed, allocate other storage under the stated ownership conditions and use distinct readback patterns to prove that locations do not collide.
