A 32.768 kHz signal at PCF8563 CLKOUT does not prove the calendar is advancing. If the signal remains present but the seconds freeze after setting the time, read STOP in Control_status_1 first. It can hold the calendar divider while the undivided 32.768 kHz output remains available. Also, the first seconds increment after clearing STOP does not take a full second. Verify crystal oscillation, calendar division, and clock output separately.
1. Identify what is actually being measured
CLKOUT is a programmable open-drain output. After hardware reset it is enabled by default at 32.768 kHz. Firmware can select 1.024 kHz, 32 Hz, or 1 Hz, or disable CLKOUT. Read back the enable and divider selection in CLKOUT_control and confirm you are not probing the interrupt pin. Disabled CLKOUT is high-impedance, so a pulled-up output can remain high even when the oscillator runs.
| Observation | First check |
|---|---|
| 32.768 kHz present but seconds do not advance | STOP and direct seconds register reads |
| No pulses in a divided mode | STOP, enable, and selected frequency |
| Probe reads a constant high | High-impedance state, pull-up, and probe point |
| The first increment follows release in less than a second | First increment versus steady cadence |
An open-drain output does not actively drive both levels. If its pull-up rail is off or the pull-up is too weak, a running internal circuit may not produce a waveform meeting the receiver threshold. Check the pull-up supply, receiver threshold, and probe load. Do not tie a push-pull oscillator to the existing output as a comparison. If another controller is connected, establish which device drives the line before altering the setup.
2. Why STOP does not shut off every crystal-derived signal
NXP shows STOP acting on the divider chain. With STOP set, the upper divider stages feeding the calendar are held in reset. The calendar does not increment and retains its value. Lower stages are not reset by the same action. The 32.768 kHz path remains available, while the generation of 1.024 kHz, 32 Hz, and 1 Hz stops. The same pin may show the high-frequency output but no divided pulses without any crystal defect.
Start with readback that does not modify time
Read the control state and take two direct seconds register reads sufficiently far apart. If the raw seconds advance while the display stays frozen, look at application caching or updates. If the register really is frozen, check whether the set-time function sets STOP and returns early or stops the clock again on its next entry. Capture actual bus transactions, not just software comments. Decode the seconds field separately from the VL low-voltage flag in the same byte. On a customer device already providing timekeeping, start by reading rather than overwriting the evidence.
3. When does the first increment occur after STOP is cleared?
The datasheet puts the first calendar increment between 0.507813 and 0.507935 s after STOP release. The following increments occur at the normal period. A first interval shorter than a second is compatible with a normal steady cadence; it comes from the divider restarting from its forced state. Do not tweak crystal load or extrapolate this partial first interval as daily drift.
What the 122 microseconds represent
I²C writes are asynchronous to the internal 8.192 kHz point that governs uncertainty when the divider resumes. One cycle is about 122.07 µs, consistent with the width of the stated interval. That is not the time to the first calendar increment or a timekeeping-accuracy guarantee across temperatures. Bus reads, observed clock edges, and host timestamps have different acquisition latencies. Choose the reference point explicitly when measuring synchronization.
Polling once every ten milliseconds, for example, only places a change between adjacent reads. It cannot verify a window on the order of a hundred microseconds. A shared time reference and a captured bus transaction can resolve some ambiguity, but check the documented relationship between the observed pulse and calendar update. Log first observed change separately from the interval in which it occurred.
4. When it is worth revisiting the crystal match
After selecting the right output, clearing STOP, and checking power, investigate the crystal if startup, stable oscillation, or long-term frequency is still out of specification. Epson lists FC-135 Q13FC13500004 as 32.768 kHz and 12.5 pF in its reference material for another IC. This is an example of a defined part and load, not qualification for every PCF8563 board. Check effective loading, ESR, drive level, and application conditions for the exact part. An identical outline does not replace its ordering specification.
For accuracy testing, measure a sufficiently long stable interval at CLKOUT using an appropriate method and compare with accumulated calendar time. Exclude the first increment following STOP release from the steady test, and record instrument uncertainty, board temperature, and reference source. A real steady-state +10 ppm error would correspond to approximately 0.864 s gained over a day. It is distinct from a shortened first interval, which occurs only when restarting the divider.
5. Keep firmware and hardware acceptance separate
Firmware tests should cover setting time, confirming STOP clear, observing the first increment, and checking several subsequent seconds. Hardware tests should record the exact 32.768 kHz crystal code, measurement point, pull-up conditions, steady frequency, and output mode. Note whether time was rewritten, only the output mode was changed, or supply conditions changed. A production bus error after setting the time should be reported as an unconfirmed restart, not passed just because a display shows the expected time. If another module depends on CLKOUT, independently qualify the selected output through the calendar stop and restart.
For repeatable bench acceptance, capture a known-good state before setting the RTC. On a dedicated test board, change only STOP and separately observe the direct and divided modes with output enabled. Restore the initial configuration and compare the calendar restart. A product that normally selects a divided mode can temporarily remove a downstream module's clock during setting. Confirm whether that module tolerates the interruption and whether firmware retries could prolong it. Record whether the test used a dedicated sample or the real installation so the result is not generalized beyond matching conditions.
A 32.768 kHz signal only shows that that output is present. Check whether STOP is holding the divider, distinguish the first increment from the steady cadence, and only then decide whether a crystal change is needed.
