Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Low-Frequency Timing and System Power

Epson RX-8035 Noon Alarm Not Firing? Check the Hour Mode and Encoding

If an Epson RX-8035 SA/LC still reads the calendar correctly after a driver change but its weekly alarm fails at noon or midnight, inspect the hour byte written by the driver. A display that says “12:00” tells you neither which half of the day it means nor which format the register expects. In this RTC with an integrated 32.768 kHz crystal, changing modes turns one weekly alarm hour bit from part of the BCD hour into an AM/PM flag. Reading back the byte you wrote verifies transfer and storage, not the alarm time it represents.

Why the same bit has two different meanings

Epson manual ETM35E-11 distinguishes 24-hour and 12-hour operation in its weekly alarm section. Bit 5 of the weekly alarm hour register at 09h is WkH20 in 24-hour mode and the AM/PM flag in 12-hour mode. A set bit contributes to the BCD hour in the first mode and indicates PM in the second. Select the calendar hour mode before writing the time. Encode the alarm hour using that same mode. Do not let the display switch formats while the driver continues to copy hour values as if the register were in the other mode.

The manual's weekly alarm examples use 12h for noon and 00h for midnight in 24-hour mode. In 12-hour mode they use 32h for noon and 12h for midnight. The h suffix marks hexadecimal, not an hour unit. The value 32h is not “32 o'clock”; it is the encoding for 12 with the PM bit set. With no PM bit, 12h in 12-hour mode means midnight. An application that merely converts the digits 12 to 12h can leave a plausible calendar display and fire the alarm twelve hours away from the intended time.

For a driver migration, store scheduled hours internally as values from zero to twenty-three. Use one encoder that turns the logical hour into a byte for the active mode. Do not feed the display string to a low-level register writer. Keep a trace with the mode and actual bytes so the lab can replay the operation. If users can change the device's hour mode at runtime, re-encode time and retained alarms under a controlled sequence rather than moving the old bytes unchanged.

Two examples: the same readback need not mean the same time

Suppose the device is meant to wake at noon on weekdays. As in Epson's example, enable Monday through Friday and write 00h for the minute. In 24-hour mode, write 12h for noon. If the driver changes to 12-hour mode but still transmits 12h, the weekday and minute remain correct but the hour becomes midnight. The difference is 12 hours, or 43,200 s. Crystal frequency error is not needed to explain it. Verify the actual alarm mode, bus bytes, and event time together instead of relying on a formatted application log.

Consider Sunday at 13:30. The hour is 13h in 24-hour mode and 21h in 12-hour mode. The minute is 30h in both. The former is not a valid way to encode 1 PM in 12-hour mode, and reusing the latter in 24-hour mode means 21:30, not 13:30. These formats are not interchangeable for storage or migration. Reject out-of-range fields before writing rather than generalizing from one unit about whether the hardware ignores or modifies a bad value or still produces an alarm.

A fresh match also depends on when the setting is made. The manual notes that programming the alarm with the already-current date and time does not produce an immediate catch-up alarm. The counter must reach the match again. When verifying encoding, start before the target minute and let the clock advance normally. Looking for an immediate edge after writing can misidentify expected behavior as an encoding fault. Manually setting the clock back after the target has passed is not equivalent to uninterrupted advancement, either.

Compare bus writes with the actual wake-up event

On the first unit, read the calendar's hour mode and current byte, and capture the addresses and values written while the driver sets the weekly alarm. The manual calls for clearing WkALE to suspend comparison, setting the weekday, hour, and minute and handling the weekly alarm flag, then restoring comparison. This avoids an accidental match while only some fields have been updated. Follow the documented status-bit semantics; do not inadvertently clear an unrelated event in the same control register. If more than one code path can alter the hour mode or reprogram the alarm, give those writes one owner so that operations cannot interleave.

Cover midnight, noon, both sides of the morning-to-afternoon boundary, and an unselected weekday. For each test, retain the intended time, written mode, byte-by-byte trace, weekday, expected next match, and actual signal. The weekly alarm uses INTRB, not the other output. If the board also uses INTRB for other sources, confirm that its edge is from the weekly alarm using status and configuration. Reproducing both modes with an identical visible display label helps ensure the conclusion does not depend on guessing from the screen format.

Define how production sorts failures. An hour byte inconsistent with the mode points to the driver or migration. A correctly encoded write with an inconsistent readback calls for checking the access sequence. A confirmed match without a host notification points to the pin, electrical conditions, or host logic. Move on to crystal frequency diagnostics only when an independent measurement shows the underlying timebase is out of bounds. For a replacement RTC, check the meaning of the hour bits, supported modes, what a mode change does to stored values, and how reconfiguration must be sequenced. Support for both display formats is not enough to establish firmware compatibility.

Add two targeted regression cases: change the display without touching the RTC, then separately change the hardware hour mode and rewrite all affected fields. The logical alarm is the same in both cases and should fire at the same intended time. If only the second case fails, compare driver conversion and reconfiguration before recalibrating the calendar. Save the entered value, logical time, active mode, and bus byte in separate columns to isolate the faulty layer. Define upgrade recovery if power fails midway through reconfiguration. Do not infer completion from a single written hour byte. Restore automatic wake-up only after the related configuration has been rebuilt and verified.

Weekly alarm mode checklist

CheckEvidence to retainWhat to verify
Active formatCalendar hour mode and effective driver settingDisplay style is not evidence of hardware mode
Boundary hoursRaw bytes for midnight, noon, and an afternoon timeThe same byte can mean different hours
ReconfigurationWkALE sequence and field-write traceComparison should not see a partly updated schedule
Actual matchWeekday, status, and INTRB traceObserve the next real match

Frequently asked questions

Why doesn't writing and reading back 12h prove a noon alarm?

The readback does not show the mode. The same value means noon in 24-hour mode and midnight in 12-hour mode. Save the mode, weekday, and intended time along with the byte, then watch the alarm from before the target boundary.

Can old alarm data be loaded unchanged after switching to a 24-hour display?

A display-only change does not alter the meaning of stored bytes if the hardware mode is unchanged. If the RTC mode changes, decode the old data using the previous mode, then encode it for the new one. Verify noon and midnight; identical-looking strings are not acceptance evidence.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.