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

Epson RTC-7301 RTC: can you combine Monday and Wednesday alarm codes?

No. The Epson RTC-7301 Bank 1 Reg-6 weekday alarm takes a single weekday code. Epson states that multiple weekdays cannot be set at one time. Monday is 001 and Wednesday is 011. Bitwise OR still yields 011, which means Wednesday, not both days. Use verified host logic that schedules the next individual event, or select a device with documented multi-day masking.

Three bits represent one value, not three selectable days

The RTC-7301SF and DG use the listed weekday codes. Bits 2 through 0 of the weekday alarm form one value. They do not each represent a separate day. The alarm-enable field controls whether the weekday comparison is used; it does not turn the code into a mask. A legacy variable name such as ALARM_DAYS is not evidence of the silicon format.

A schedule imported from an existing controller may contain Monday, Wednesday and Friday. Combining that list into one device value can select an unintended day or produce an unlisted code. If an alert is missing, read the actual weekday setting and comparison enable. A display showing three selections does not prove the hardware stores them.

Compare the code with mask arithmetic

ExampleRTC-7301 meaningSoftware implication
000SundayZero is not an empty set
001MondayDecode a single value
011WednesdayDo not infer multiple selections
001 OR 011Still 011, WednesdayDoes not schedule Monday and Wednesday

The examples do not define behavior for all unlisted encodings. Restrict device inputs to documented days and keep a multi-day request in the application's schedule. Addition is wrong too: Monday's one plus Wednesday's three gives four, which is Thursday. Log the intended day list and written value separately so they cannot silently disagree.

Current calendar weekday and alarm weekday are different fields. The calendar entry is in Bank 0 and the alarm entry in Bank 1. A common numeric mapping does not justify copying today's weekday over the planned day. Include bank and address in debugging records to distinguish calendar progression from alarm comparison.

How can legacy hardware serve a multi-day schedule?

When product conditions permit, keep the full schedule on the host and program only the next single day. After handling an event, determine the next day from a trusted calendar, apply the applicable Epson sequence and verify the setting. Test across the week boundary as well as Monday to Wednesday. Power loss, deep sleep or host restart can prevent timely reprogramming, so define restoration and maximum delay.

Alternatively, select a module with a real multi-day mask. Verify pinout, supply, notification and firmware rather than treating another RTC as a drop-in. Decide whether the requirement is one hardware setting that selects several days, or merely that work runs on those days. The first is not provided by a single code. The second depends on reliable host scheduling.

Handling an old alarm and setting the next one also produce different records. Updating application text does not show the register was programmed and verified. Keep the intended next day, installed single-day code and pending notification separate. One generic scheduled status cannot establish all three.

Validate across actual weekday boundaries

Use an approved test board and an alarm time with no operational side effects. Record date, current weekday, comparison settings and raw bytes. Test one known weekday first. Then confirm how the next day is programmed after service in the real workflow. Include a day that should not match. A combined code can be legal without serving the requested schedule, so check correspondence, not just validity.

Retain the schedule source, including whether it came from user configuration, production initialization or restoration. A host restart should not depend blindly on an old in-memory next event. Recheck trusted time and retained scheduling state to prevent duplicates or omissions. Test week rollover and behavior when time confidence is missing rather than silently assigning an unverified weekday.

Add a transition test: after preserving Monday's event, program Wednesday and read back that it is the one installed target. Keep the actual write, expected comparison and host confirmation rather than relying on the inferred sequence from a UI cache. When porting firmware, decode the old input into a schedule model first. Do not pass its raw byte to a new interface without conversion. Logs should distinguish an empty source list, one installed day and weekday matching disabled.

The UI should also show what the installed system can do. If the host manages a series, show which next event is programmed and which remain under host control. If the installation cannot sustain host scheduling, do not display that all requested days are programmed. Include a wrong-but-legal combined code in regression tests and confirm that the product does not wake on the unintended day. That verifies a practical fix rather than merely changing documentation.

Common questions

Why does zero not disable weekday matching?

Zero is Sunday in this code table. Whether weekday matching is used is a separate control, not an empty set represented by zero.

Can I write two codes to get alerts on Monday and Wednesday at the same time of day?

Consecutive writes to one single-value register do not store two days. Verify that the host can program the next day after each event, or use a device that explicitly supports multi-day selection.

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.