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

RTC-8564 oscillator: why does the first second take only 500 ms after setting time?

When setting an Epson RTC-8564JE or RTC-8564NB, the first seconds update occurs about 500 ms after STOP changes from 1 to 0, rather than after a full second. Epson describes this as a one-time restart behavior. If firmware writes the seconds value and releases STOP at a reference second boundary, the displayed first step may be roughly half a second early. The crystal is not necessarily running fast. Record the written value, the actual release, and the first update separately before deciding whether the system needs phase alignment.

Measure the first update after release, not the first change you happen to read

STOP controls calendar counting. The usual write procedure stops the calendar to prevent a carry while changing multiple fields, writes valid time and date values, and then releases STOP. Epson describes the restart as beginning at the written second plus 500 ms. On that model, only about half a second remains in the first interval, after which normal second timing resumes. Do not turn that one short interval into a ppm figure or infer the normal period from repeated time-setting operations.

Do not define time zero as the host function call. Code may queue for the bus, the driver may return after the transaction, and readback may occur later still. A serial message saying calibration is complete timestamps the print, not necessarily the chip’s acceptance of STOP release. Mark the bus write and host timestamps against an independent reference and place the first valid seconds read on that timeline. Do not assume that Epson designates a particular ACK edge as an exact phase reference. If the application needs tighter guarantees, validate them separately.

External time example: where did the 380 ms lead come from?

Suppose the reference clock reads 12:34:00.120 when effective STOP release occurs and 00 has been written to the seconds field. With nominal 500 ms behavior, the RTC changes to 01 at reference time 12:34:00.620, while the reference advances to 01 at 12:34:01.000. The first update therefore leads by about 380 ms. During this interval, the RTC displays 01 and the reference displays 00, but it is not continuously a second fast. Subtracting coarse integer displays can make a subsecond phase difference look like a one-second discrepancy.

If the application needs its first update near the reference 01 boundary while writing 00, use reference time 00.500 as a candidate release point in a controlled bench test. Then adjust based on bus delay and observations. This is a design starting point derived from nominal behavior, not a guaranteed alignment procedure for every board. Qualify the external reference too. If it is a network-fed display rather than a capturable sync event, estimate network and software uncertainty first.

EventExample reference timeInterpretation
Seconds field written as 00Before releaseA calendar label, not an external phase
STOP released12:34:00.120Locate on an independent time base
First RTC update to 01About 12:34:00.620One-time 500 ms restart behavior
Reference advances to 0112:34:01.000About 380 ms difference between updates

Bracket the update with two valid readings

Use an independent clock for the record. Save the written value and capture the actual STOP release on the bus. Read seconds as the manual specifies, without reasserting STOP to freeze each reading. Otherwise the test keeps reintroducing the half-second behavior and changes the meaning of the log. The last old reading and first new reading bracket the true update. Wider spacing gives a wider bracket. At a 20 ms effective sample interval, the pair can bracket the update to about 20 ms, before accounting separately for bus transfer and timestamp uncertainty.

Repeat with the same connection at several reference phases to see whether an occasional early or late reading is a sampling artifact. Around a boundary, display refresh order can also be misleading. Keep bus transactions, the reference edge, the readback, and display refresh as separate events. If only display data is available, rule out caching, batched refresh, and time-zone conversion. A screen is a useful clue, not a timestamp for exactly when the chip advanced.

Test first-update phase and long-term accuracy separately

The first test measures the interval from a particular STOP release to the initial update. The second measures uninterrupted running after restart without repeatedly writing seconds, with reference and environmental conditions recorded. To verify rollover, test near a minute or date boundary and read the complete fields rather than only observing seconds wrap from 59 to 00. A couple of cycles can verify sequencing but not weekly drift. Conversely, small weekly error does not establish alignment at start.

Epson also distinguishes STOP behavior by output frequency. A selected and enabled 32.768 kHz output can continue, while lower divided outputs may stop while STOP is asserted. That is not the main acceptance criterion here. A continuous 32.768 kHz waveform confirms that output, not the moment of the first calendar update. If the system needs a second-boundary signal, check the relevant output enable and timing conditions and confirm that the signal actually corresponds to the calendar boundary the system uses.

Define phase requirements for firmware and production

Document the stop, write, release, and verification stages of setting time, with a result for each. If a step fails, follow the product’s recovery procedure or mark time unconfirmed rather than continuing to display fields that only look valid. Use a recorded reference to decide when to write and release. Do not qualify alignment because the displays matched after one restart. The one-time short interval may be acceptable for a seconds-only display. If multiple devices must align logs or trigger on an absolute boundary, specify the permitted phase window and reference instead of requiring only that the RTC be readable.

Track two results separately: the time fields are valid, and phase is within tolerance. The first requires a successful write and normal counting. The second requires an observed bound relative to the first reference transition. If bus latency varies, scheduling a write at the same nominal time does not by itself support a claim of alignment within tens of milliseconds. Retain the observed interval rather than only a success message.

Production should distinguish initial start, warm start, and an explicit user time setting. Record firmware, manual revision, and test reference. If a station writes network time, state whether observations were taken before that write and record the last actual STOP transition. Keeping one complete timeline helps the next investigation separate first-update phase, transfer or display delay, and long-term oscillator error.

Does writing STOP as zero always produce a half-second interval?

The documented one-time behavior follows a 1-to-0 transition. Writing zero again when the bit is already zero does not establish the same rephasing action.

Can a 380 ms lead on the first update be reported as daily gain?

No. It is a phase difference in this example, not a daily rate. Measure long-term error against an independent reference over uninterrupted operation without setting the time again.

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.