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

Diodes PT7C4337B crystal alarm: Why the 1010 mask cannot match only hours and seconds

If the requirement is an event at second 17 of every minute during the 06 hour only, do not write 1010 to Alarm 1 and assume PT7C4337B hardware supports it. In the page 14 order A1M4, A1M3, A1M2, A1M1, 1010 appears to compare hour and second without comparing day or minute. The manufacturer does not list it as a supported tuple and marks other combinations ignored. Reject the hardware setting first. Then decide between a supported second match plus host-side hour filtering and a timing scheme capable of expressing the complete rule. A running clock, valid BCD or matching register readback does not qualify an unsupported mask.

Individual bits do not imply arbitrary matching rules

Requirement or comparisonAlarm 1 mask A1M4…A1M1What page 14 provides
Match a specified second every minute regardless of hour1110Listed; compares seconds
Match a specified minute and second every hour1100Listed; compares minutes and seconds
Match a specified hour, minute and second daily1000Listed; compares all three
Match only hour and second, with any minute1010Not listed; reject the configuration

The mask bits are the most significant bits of 0Ah, 09h, 08h and 07h. Use A1M4:1 consistently when presenting the tuple; an ascending register-address transfer encounters the bits in the reverse order. The tuple is distributed across four registers, not a literal low nibble to write into one. Date modes also use a separate Day/Date choice where applicable. Do not fold unrelated bits into the mask.

The manufacturer also lists 1111 for once a second and 0000 for date or day together with hour, minute and second. The listed comparisons are nested; they do not establish that a middle field can be skipped. For example, 1000 compares minutes. Writing minute 00 selects a real minute, not a wildcard. Likewise, 1110 matches seconds without checking hours; loading 06 into the ignored hour field does not add that comparison.

Describe the requested event sequence before choosing bits

Suppose a device must record a status at second 17 of every minute from 06:00 through 06:59 daily. It should act at 06:00:17, 06:01:17 and up to 06:59:17, but not at 05:59:17 or 07:00:17. Writing down these expected times shows why 1000 with one minute is insufficient and why 1110 has no hour restriction. The point is to choose a functioning timing design, not to find an approximate encoding for an unsupported tuple.

One option is a supported Alarm 1 second match followed by a host check of a trusted hour window. Count wake opportunities separately from business actions. In an illustrative full day during which every match is processed, there are 24×60=1,440 match opportunities but only 60 during the requested hour. The other 1,380 are not business events. A device waking for each may incur unacceptable power cost. Do not report only the 60 retained records and call that the wake count. Actual interrupt counts depend on host states, handling and missed or merged indications.

Another option is a timing mechanism that explicitly supports the whole rule, or a validated state machine that enables and disables a supported match at the window boundaries. Address how a sleeping host enters and leaves the window and how the schedule is recovered after restart. Writing a register at one convenient moment does not show that the system can cover the whole day. Host filtering is not automatically appropriate when standby power or independent hardware operation is important.

Reject unsupported tuples before investigating pins or flags

Build the configuration tool around the supported modes in the table. Return an explicit unsupported-hardware-rule result for “hour and second only” rather than silently translating it to minute-inclusive 1000 or hour-independent 1110. Both would be recognized settings but change what the product does. If the design intentionally uses a hardware second match and software filtering, list it as a separate method rather than describing it as complete hardware matching.

Reading back an unlisted tuple does not qualify it. Storing register bits and supporting a behavior in the comparison logic are separate things. “Others ignored” does not give a complete observable definition for every instant, guarantee that a flag never changes or promise a fallback to the previous valid mode. Stop treating an unlisted setting as an acceptance case and check how the mask was generated. Output routing and enables matter after the comparison rule itself has been established; they do not turn an unsupported tuple into a supported one.

Keep the original schedule and the actual hardware configuration as separate records. Preserve the hour window, rationale and fallback conditions. Expose raw clock-match evidence separately from the final application decisions where helpful. If standby consumption is unacceptable or the design is later changed, engineers can adjust the correct layer rather than treating the issue as oscillator drift.

Test before, within and after the time window

Use an approved sample with a known working reference and time. For a supported 1110 match, capture a sample before the window, adjacent samples within it and a sample after it. For example, record 05:59:17, 06:00:17, 06:01:17 and 07:00:17 and distinguish the hardware event from the application decision. These cases test the actual requirement boundaries; two captures at an arbitrary fixed minute do not. Record wake current or wake duration separately rather than inferring it from filtered business logs.

For unsupported 1010, verify that the configuration layer never issues the write. There is no need to program deployed hardware into an undocumented state to see what it does. Retain the table revision, tuple order, clock state and chosen scheduling method. If business hours change, requalify the timing-window boundaries rather than rereading the same bits. That distinguishes an unrepresentable rule from a missing filter or a genuinely separate clock fault.

Use supported 1100 as another positive control. With minute 01 and second 17 selected, verify that multiple hours match only at their own 01:17, rather than every minute in one hour. This can expose swapped minute and hour mask positions without programming unlisted 1010. Keep the two expected event sequences separate before interpreting traces or logs.

Frequently asked questions

Does putting 00 in the minute field select the entire 06 hour?

No. A supported mode that compares minutes treats 00 as minute zero, not any minute. Express the complete rule with another validated scheduling method rather than inventing a wildcard in a time value.

Both alarms have an hour field. Can Alarm 2 preserve the requested 17-second offset?

Do not assume so. Alarm 2 has its own table and no programmable seconds field; the manufacturer explicitly places its all-mask once-per-minute event at second 00. It does not make the unsupported Alarm 1 tuple available. Qualify another scheduling method against the actual requirement.

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.