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

Diodes RT3A3240N3 crystal RTC: Can the alarm match the 13th only when it is a Monday?

Not with the RTC's alarm comparison alone. In the RT3A/RT3AQ datasheet, WADA set to 0 makes the alarm compare the weekday and ignore the date. WADA set to 1 makes it compare the date and ignore the weekday. Alarm register 0Ah is interpreted according to that same mode bit. There are not two independently enabled weekday and date fields in the alarm comparator that can both be required to match.

Test the two cases that must not trigger the action

Suppose a machine should run a monthly check at a certain time only when the 13th is a Monday. In date mode, a Tuesday the 13th can still match the configured date. In weekday mode, a Monday that falls on a different date can still match the configured weekday. Writing 0Ah twice does not add a separate criterion; the writes target the same byte. If the alarm output can wake the host with the actual supply and interrupt wiring, one practical approach is to wake it on the 13th, read the date and weekday, and run the check only when both conditions are present. That does not eliminate the extra host wake on the other 13ths.

If even an extra wake is unacceptable, evaluate an RTC that explicitly supports a joint comparison or plan a separately verified scheduling method in the host. Do not describe that software decision as a feature of this RTC. Test three calendar cases: Monday the 13th, the 13th on another weekday, and a Monday on another date. Record wake and action separately. The integrated 32.768 kHz crystal establishes the timing reference; it does not change what the alarm register can compare.

Related selection guide: MERLIN Crystal Timing: Diodes PT7C4563BQ crystal clock chain: Is an 18:00 alarm supported?

Resource link: https://www.mecxtal.com.cn/en/handbook/dio-028.html

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.