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

Epson RX-8025SA crystal RTC module: why disable DALE before editing a daily alarm?

Prevent the comparator from seeing a partially updated time

The Epson RX-8025SA daily Alarm D compares hours and minutes and uses /INTA. Epson's procedure is to set DALE to zero, set the hours and minutes and handle DAFG, then set DALE to one. This prevents an unintended match during configuration, when some fields may contain the new value and others the old value. The problem is an incomplete comparison condition, not the 32.768 kHz crystal gaining time.

Saving a new alarm and activating it are separate operations. If each register write is treated as immediately usable, several intermediate combinations may be compared. A correct final display does not prove that the update caused no unintended wake-up. Specify both the final state and the allowed behavior while changing the alarm.

Consider an example with old and new time fields

Suppose the old alarm is 07:15 and the new one is 08:30. If hours are written first, the intermediate values may form 08:15. If comparison remains enabled and the clock reaches a matching instant, the intermediate value can matter. This illustrates Epson's rationale, not a claim that every pair of writes creates an alarm. The device's timing and actual transaction matter.

Do not program the current hour and minute and declare a fault if no alarm follows immediately. The manual says an alarm set to the current time does not immediately trigger; the counter must reach the next match. Select a defined upcoming test time, capture the transaction and observe the complete sequence. When comparing software revisions, control the start time, hour format and other interrupt-source settings.

The hour fields also depend on the selected 24-hour or 12-hour format. Do not casually change the time format just to adjust an alarm. Record the current format and raw register values and verify the intended encoding. Otherwise an hour-format mistake can be misdiagnosed as a failure to disable the comparator.

Four elements have different roles

ItemAction or observationWhat not to infer
DALEDisable before editing, enable after completionIntermediate values are automatically masked
Alarm D hour and minuteEdit with comparison disabled; verify formatIt uses the Alarm W weekdays
DAFGClear the event state as documentedThe shared /INTA line must rise
/INTA traceObserve daily-alarm and periodic contributionsThe latest alarm edit caused any low level

The DAFG description says writing zero clears the alarm state. The pin goes high-impedance only when the periodic interrupt output is also off. Do not assume clearing DAFG always releases /INTA. Alarm W has different flags, enable and output; it is not enabled or disabled by DALE. If a report mentions both /INTA and /INTB, trace them individually rather than assigning identical-looking voltages to the same source.

Verify the transaction sequence, not only the final display

Start with a defined upcoming alarm in an approved setup. Record prior hour, minute, DALE, DAFG and applicable periodic settings. Log or trace the disable, update and clear, and re-enable stages. Verify bus completion as well as software call order. If one step fails, do not accept a mixture of old and new values or assume that the alarm was restored.

Observe the pin and status during the transition and look for any unintended intermediate match. Test the daily alarm and periodic output separately for diagnosis, then verify the real combination. Save waveforms before and after clearing. Another source holding the line low can otherwise look like a failed register write. For intermittent cases, correlate the current time, firmware scheduling and actual board pin.

Check interruption handling. If the controller restarts midway or power is interrupted, define how the system verifies the alarm and enable after recovery. A previous call does not establish that the operation finished. Read back the actual settings and compare to intent, while separately checking time validity. A correct final display after a fix is not evidence without the trace and actual alarm result.

At production handoff, record revisions and conditions. If one diagnostic temporarily disables periodic interrupts, also verify the normal product configuration. For unexpected wake-ups, compare the physical pin transition, which flag was set and whether configuration was in progress. A trace with these details is more useful than attributing every wake-up to inaccurate timing.

If an interface and scheduler can both request changes, define ownership of the alarm settings. Do not let different tasks write hours and minutes and have a third merely report success. In a test, issue a second request before the first has completed and verify that the driver queues, rejects, completes or recovers it as intended. Record when the interface reports success and when DALE was actually re-enabled.

Also consider alarms whose scheduled time falls inside the disabled interval. The procedure suppresses intermediate comparison; it does not promise to replay an event that would have occurred while disabled. If the product cannot tolerate that gap, define and verify a system-level approach such as updating at a different time or preserving a pending event separately.

After an interrupted update, verify and record the complete new sequence rather than just resending its final byte. Tell service staff which configurations were tested and which other interrupts were deliberately masked. Connecting evidence to firmware, board and trigger time is more useful than storing only the final display.

Frequently asked questions

Does one Save button mean there is no need to disable DALE?

No. Follow the manufacturer's procedure. One interface action does not establish that the RTC sees the new values simultaneously or never compares during the update. Verify actual bus order.

Does /INTA remaining low after clearing DAFG prove the clear failed?

No. The daily alarm contribution can be cleared while the periodic interrupt still drives /INTA. Check flags, enabled sources and physical line behavior separately.

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.