The first 1 Hz cycle after a time write can differ from later cycles. The Epson RTC-4543 also shifts its output relative to the internal signal. Neither difference should automatically be counted as crystal frequency error.
Japan’s Epson RTC-4543SA and RTC-4543SB are serial real-time-clock modules with a built-in 32.768 kHz crystal oscillator. When 1 Hz is selected, writing clock data affects the divider. The first interval depends on interface timing; later intervals return to a nominal second. Before diagnosing slow timekeeping, mark the write on the acquisition and assess the first cycle, later cycles, and phase reference separately.
CE does not gate FOUT, but a time write can affect the first cycle
The pin description says FSEL high selects 1 Hz and low selects 32.768 kHz; FOE high enables that waveform on FOUT and FOE low makes FOUT high impedance. CE controls serial access and is not a direct FOUT gate. It is therefore unsurprising to see output continue with CE low. However, that does not mean a register write leaves every cycle unchanged. The write operation changes the divider state, which the pin summary alone cannot show.
During a write, after CE rises, the module resets the stages from 128 Hz to 1 Hz between the first serial clock falling edge and the second rising edge. Carries to the seconds counter are held until completion and deassertion of CE. The manual requires completion within the specified CE window, up to 0.9 s. That is a serial-operation limit, not the first-cycle error or a general 1 Hz accuracy limit.
The manual describes two independent quantities. Its first internal 1 Hz cycle after a write is nominally 1.0 s plus a correction of 0 to −7.8 ms and the indicated tCES and tCLK intervals. Later cycles are output at nominal one-second intervals. The external 1 Hz FOUT signal is separately shifted 15.6 ms relative to the internal 1 Hz signal. That is a timing offset between corresponding edges. Adding it to every one-second period confuses delay with frequency error.
If every output edge triggers a sample, find out whether time writes occur during sampling. Mark the write in the verification build and capture the marker with the sample index. That identifies the affected sampling window without assuming a sample should be discarded. If compensation is needed, the system owner should define whether the time bases are joined, paused, or re-established around the write.
Align three timing references in the capture
First capture serial control: record CE, WR, and CLK, and mark the write start, first two serial edges and CE return according to the timing diagram. Do not substitute a firmware function-entry timestamp for actual pin levels. Interrupts and bus scheduling can separate the log from the physical transaction. Confirm that the event is a write and not polling; capture the data line too if needed to identify it.
Second record FOUT. Confirm the state of FSEL and FOE at the package and verify that the waveform is the selected 1 Hz output. Retain a pre-write baseline, the write interval, and several like-polarity edges afterward. Do not use high pulse width as the period, or mix rising-edge and falling-edge intervals. Keep the scope trigger source, polarity and timebase rather than saving only the automatic measurement. Hold output loading and probing conditions fixed.
Third identify the external timing reference. For first-edge phase, compare FOUT with an independent and documented reference. The internal 1 Hz node drawn in the manual is not a normal external package pin. If a processor generates the comparison signal, consider interrupts, pin toggling, and divider settings; the processor edge is not automatically the device’s internal seconds signal. Without a common reference, report only the intervals between FOUT edges rather than an absolute phase offset.
Subtract timestamps from retained edges instead of letting an averaging algorithm mix the pre-write, write and post-write intervals. When a jump appears, check for a missed trigger or edge first. If a logic analyzer and scope are used separately, align them with a shared marker or trigger and record their timing difference. Otherwise a shift of several milliseconds may reflect different acquisition origins.
Worked write example: keep 15.6 ms in the phase column
Suppose an illustrative board meeting the relevant serial requirements measures tCES as 1.00 ms and tCLK as 0.10 ms under the diagram’s definitions. The first-cycle lower bound is 1000 − 7.8 + 1.00 + 0.10 = 993.30 ms; the upper bound is 1000 + 1.00 + 0.10 = 1001.10 ms. If the first interval, measured from the correct timing reference, is 996.0 ms, this example does not show a −4000 ppm oscillator error. Dividing one special interval by nominal gives a relative difference for that interval only, not long-term timekeeping.
If corresponding FOUT edges are shifted by 15.6 ms relative to internal like-polarity edges, the shift cancels when adjacent times are subtracted. For example, assume internal edges at 1000.0 ms and 2000.0 ms. The corresponding external edges would be at 1015.6 ms and 2015.6 ms, still 1000.0 ms apart. This example only separates constant phase from frequency. It does not guarantee a 15.6 ms phase relative to every external second reference or give the absolute start of the first interval around a write.
If later intervals also stay outside the project limit, investigate frequency, temperature, supplies and the instrument reference separately. If the anomaly only occurs next to a write, mark the acquisition as a write event and decide whether the system can tolerate that disturbance. A peripheral requiring uninterrupted counting must be tested on a controlled board during the actual write sequence. The presence of a 1 Hz feature alone does not qualify it.
Keep four types of evidence separate in production
| Check | Evidence to retain | Do not infer |
|---|---|---|
| Pin function | Fitted SA or SB, FSEL, FOE, and output state | CE low alone disables FOUT |
| Write operation | CE, WR, CLK, initial write interval and marked edges | A software timestamp is the actual pin event |
| First cycle | Interval defined by the diagram, tCES and tCLK | Long-term average frequency error |
| Later cycles and phase | Sequential like-edge intervals, independent reference, measurement basis | A constant phase shift accumulates every cycle |
Before release, distinguish whether the system requires continuous output, an uninterrupted pulse sequence during time setting, or an allowed phase error against an external standard. If the customer only needs accurate timekeeping, do not let one shortened write interval trigger disassembly. If the output is a synchronization source, retain explicit timing evidence and conditions so differences in instrument references are not mixed on one chart.
Run two reproductions with unchanged supply and receiver settings: one performs the same time write; the other skips it while keeping the same timebase. Preserve the comparison if the short interval only occurs with writes. If both runs show irregular intervals, check power disturbances, false triggering, or counter code. When the package changes, retain probe locations for the mapped pins so that a signal name does not conceal two different nets.
Frequently asked questions
Can I apply the first-cycle formula when reading the time?
Not indiscriminately. The formula concerns a divider reset during a data write. It does not apply to an arbitrary read or the first edge after power-on. Capture WR and the relevant serial edges to show which operation occurred.
How should I test long-term timekeeping?
Use consistent like-polarity edges and a sufficiently long observation window at controlled supply, temperature, and reference conditions. Measure an interval without a time write. If the system also needs as-used statistics with writes included, report the write-related contribution separately from the settled interval rather than attributing it to the quartz frequency.
