Do not approve it from the bit map alone. The PT7C4563BQ keeps time from an external 32.768 kHz crystal. The manufacturer lists the live hour register, 04h, as 00–23 but labels the alarm hour at 0Ah as 01–12 in the summary. Both layouts contain H20, H10 and units weights. That establishes how values can be represented, not which values the alarm comparator is guaranteed to accept. Neither a correctly running crystal nor a live-clock display of 18:00 verifies an evening alarm.
Read current hours and comparison hours separately
The live hour field answers what time it is. The alarm hour supplies one input to the comparison. The allocation table gives these fields different ranges even though they use similar decimal weights. A successful live-clock reading at 18:00 only validates that path; it does not test the comparator.
The detailed alarm table shows AE as the top bit of 0Ah, the next bit as unimplemented, and H20 through H1 below. It does not state an unambiguous wider valid range. The 18 pattern uses H10 and H8, not H20; 23 would use H20, H2 and H1. The mere presence of H20 is not evidence that 18 triggers. The test is what the comparator does with a particular writable or readable pattern.
| Evidence or observation | What it establishes | What it does not establish |
|---|---|---|
| 04h summary says 00–23 | Live-hour range | Same range at 0Ah |
| 0Ah summary says 01–12 | Published range in that revision | Actual behavior outside it |
| 0Ah bit map includes H20–H1 | Position of the encoded weights | Validity of every representable value |
| 18:00 configuration reads back correctly | Test unit stored or reported the intended byte | Guaranteed matching at that hour |
Calculate 0x18, then separate write, readback and match
The candidate bit pattern for 18 is 0x18: the H10 and H8 positions are set. This is a binary-coded decimal representation, not the plain binary integer eighteen. If software writes the integer 18 without conversion, the register receives 0x12, which represents twelve in BCD. Twelve is within the published alarm summary. A board that alarms at noon rather than 18:00 could have a code conversion error; an application log that merely prints “18” cannot distinguish that from a range question.
Separately verify that each intended comparison participates. The document specifies that AE at zero enables the matching field and AE at one removes that field from the comparison. A disabled hour can appear to work if another condition sets the alarm flag. On a standalone bench, use a defined minute condition, record which other fields are ignored, and explicitly include the hour field. Log the raw register byte and field values rather than trusting the UI. Even with a correct 0x18 readback, let actual timekeeping cross the target minute and observe the match instead of counting a successful write as success.
Establish a positive control before testing the evening case
Test a time clearly inside the published range, such as 10:00 or 12:00, before testing 18:00 with the same firmware and fixture. Start from known time before each target; confirm that the observed time advances from the crystal-derived chain and that the clock integrity state is appropriate. Let it count through the boundary rather than manually setting it to the target and assuming a comparison occurred. Record whether the prior alarm flag was cleared. AF can persist, and a leftover high flag is not evidence of a new match. Set observation points before and after the transition and keep host timestamps so the order can be reconstructed.
Log two separate outcomes: whether the flag transitions and whether the actual application receives the interrupt through its AIE, pin and external path. If the published-range control fails too, investigate setup, timekeeping, clearing and observation before assigning the fault to the evening range. If the control passes but the evening value reads back without matching, classify it as a result for the tested unit and conditions. Repeat after reset or across qualified lots as appropriate; do not turn it into a statement covering all revisions.
Add a negative control: keep the same target minute but let it arrive in a different hour, and check that the flag stays clear. A positive control proves the basic path works; the negative control can catch a mistakenly ignored hour field. If both runs cross the same minute and both alarm, neither alone establishes that 18 was compared as an hour. This improves the test's ability to distinguish the function before increasing sample size.
Separate manufacturer clarification from project release
Ask two specific questions: which hour values the 0Ah comparison is guaranteed to accept, and whether midnight 00 and values 13–23 are supported. Include the datasheet revision and the two locations, plus the raw alarm byte, AE, live 04h and observed match state. A bit map showing a weight does not prove a published summary is an error, just as the narrower summary does not document the behavior of every out-of-range write. Do not substitute a different RTC's mode or another marking for clarification on this part.
If the system depends on an unattended evening action and confirmation is still missing, choose a part with an explicitly documented range, or validate an independent timing or checking path before board release. A decision to rely on sample evidence alone should record the sample size, covered material, restrictions and owner of the risk. Keep the published limits, observed raw bytes and behavior, and system-level acceptance criteria in their own fields so a new lot or datasheet revision does not silently change what was approved.
At handoff, record the actual tested time rather than “evening passed.” Midnight, 13:00, 18:00 and 23:00 use different combinations. One result cannot stand in for the others, and one boundary failure does not invalidate unrelated alarm fields. If the product only needs one evening time, test that time and a no-match control without promoting the finding to a claim about all-day support.
FAQ
Why is writing and reading 0x18 not a pass?
It verifies communication and a reported register value, not the time comparison. Observe the flag move from clear to set at the specified crossing, then verify the interrupt separately if the product uses it. If there is no transition, first validate the test chain with the positive control.
May I approve a daily 23:00 alarm if the live clock displays 23:00?
No. Being able to count and display 23 in 04h does not establish support for 23 as a target in 0Ah. List the required evening times and confirm them with controlled documentation and board results. Assess midnight separately as well; do not silently expand an 01–12 summary into an all-day alarm guarantee.
