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

Epson RX-4803 RTC: Why Can the Capture Read Zero After External Synchronization?

An event on the Epson RX-4803 SA/LC can capture a reading or, under the specified setting, realign internal subsecond counters. Logs should not interpret those actions identically. If both captured seconds and hundredths read zero after an event with ERST armed, verify whether synchronization cleared the buffer. Do not assume that the event occurred at exactly zero seconds or that the whole clock failed.

One event can cause different internal actions

Section 8.2.9 of ETM33E-04 assigns Bank 3 address 0h to captured hundredths, 1h to captured seconds, and Fh to event control. ECP determines whether an event captures seconds and hundredths. ERST has a different purpose: a qualifying external event resets the clock/calendar counters below one second. The manual identifies the affected divider and hundredths counters and says both capture fields clear at the same time.

Order matters. Writing ERST to 1 arms the function; it does not immediately stop time at zero. The qualifying event resets subsecond counters and ERST clears itself. To cancel, write 0 as documented before the event arrives. A software timestamp for the write is not the synchronization instant. Input must meet the event polarity and filtering settings, so a raw pulse edge is not necessarily the event-detection instant.

This is not a command to set the full calendar and clock from an external timestamp. One pulse does not convey the date, hour, or minute. A design using it for synchronization needs a trusted calendar reference and a validation method. Epson also warns that the timing of the reset can affect alarms, fixed-cycle timers, and time update interrupts. Verify both the event and whether downstream functions tolerate the phase change.

Two cases distinguish capture from the result of synchronization

Suppose the RTC reads close to 12:34:56.73 on a bench, and a qualifying event is used for ordinary capture with ECP enabled and ERST not armed. As a matter of data meaning, the captured quantities are seconds 56 and hundredths 73, not the full hour, minute, and date. If the application needs complete event time, obtain the other fields under a verified consistency procedure. Two capture bytes are not a full timestamp.

In a separate synchronization trial, suppose ERST was armed and a qualifying event occurred at about the same phase. The manual describes a subsecond reset and clears the captured seconds and hundredths. Two zero bytes are not proof of an event at 12:34:00.00. Nor can software simply recover 0.73 s as absolute time. That number only illustrates the assumed phase before the event. It does not specify capture precedence, exact edge accuracy, or the other fields.

Some systems have two consumers: one aligns the clock phase to a reference, while another needs the actual event timestamp. If they share a buffer, define which action can erase it and which records must be saved beforehand. If both need trustworthy data for the same event, use a separately verified capture path rather than treating intentional clearing as a valid measurement.

Put control writes, events, and readback on the same timeline

Use three controlled comparisons. First capture without synchronizing, keeping event polarity and filtering fixed, and retain both captured quantities and an independent reference. Second arm ERST under the design settings and apply the same type of event. Observe write completion, event detection, ERST readback, and clearing. Third arm, then cancel before the event demonstrably arrives, to check interference from other writes. Capture EVIN, serial operations, and available timing markers together. State which marker comes from the module and which comes from an external instrument.

Next test the features that consume time. A system using the timer or update interrupt may not see the same externally measured spacing across a phase reset. Capture the first interrupt and subsequent repetitions separately. For a shared interrupt output, use status to identify the source. If host reads of the live clock are a reference, ensure no other routine is also rewriting seconds. Preserve the ERST and ECP settings when a zero capture first appears rather than clearing flags and trying to reconstruct it later.

For a substitute RTC, specify capture, synchronization reset, buffer fields, and self-clearing status separately. A device with an external input and hundredths resolution does not necessarily preserve an event while aligning phase. Verify original time, clearing, and recovery under the intended sequence and make clear which fields are valid historical evidence.

For a reproducible station procedure, record whether the event was detected, whether synchronization was already armed, and whether the application consumed the capture. Some software polls the buffer without a new event; other software overwrites the prior record after every read. A shared log without state before and after the read cannot distinguish cleared fields from old software data. Use the same controlled event spacing and trigger for independent retests, then align the module and external records regardless of whether the display seems plausible.

For a periodic reference, define when rearming is permitted. Self-clearing after one event does not arrange the next synchronization or guarantee a reset on every later pulse. If the application re-arms explicitly, verify behavior near read/write operations and through disable and re-enable transitions. Label boundary observations and retain the controlled settings and event identity, so service cannot confuse ordinary captures in the disabled state with resets in the armed state.

External synchronization checklist

CheckEvidence to retainWhat to verify
Event inputWaveform, polarity, filtering, and referenceRaw edge may not equal the qualified event
CaptureECP and two capture fields in Bank 3Capture does not automatically provide a full calendar
SynchronizationERST arming, event, and readbackA cleared result is not a measured zero
RegressionTimer, alarm, and update records before and afterOne successful reset is not system timing acceptance

Frequently asked questions

Does writing ERST to 1 immediately set internal time to zero?

No. It arms the reset. Timing continues until detection of the qualifying event, after which the subsecond counters reset and the control bit clears.

If both capture fields read 00, can we conclude the event happened on a whole minute?

Not from those fields alone. Synchronization can clear both. Check configuration, the event record, and the independent reference before interpreting the bytes as a capture.

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.