When equipment with an Epson RX-8564LC regains power, do not set the seconds before examining the previous time. This crystal RTC stores its low-voltage flag, VL, in the seconds register. Epson specifies that writing that register clears VL regardless of the data written. A zero read after a write cannot prove that the stored time remained valid while power was out.
Preserve the evidence by reading, not by writing back the top bit
Register 02h contains seconds and VL. Reading it can reveal state left by low voltage or initial power-on from zero. Writing is not the inverse. With an ordinary read-modify-write register, software may preserve an upper bit while changing lower bits. Here writing the previous VL value back does not preserve its history. The act of writing clears the flag. Retain the raw byte before changing the time.
A set VL also has a defined scope. The manual describes it being set after supply drops below the detection condition, or on initial power-on from 0 V. If it is set on recovery, disregard the previous RTC data and initialize the registers according to the manual before using the clock. The flag does not count low-voltage events, timestamp their start, or prove that the backup battery is faulty. It is designed for gradual voltage decline, not as a general recorder of supply spikes or rapid chatter.
Assign responsibility for the first read. On the first supported access, capture raw VL, the seconds register and the acquisition time before deciding whether the old calendar is usable. Other tasks should not write the time, zero the seconds or refresh the calendar beforehand. If the display needs to come up promptly, show the time as unverified rather than rewriting the evidence to make the screen look normal. Then synchronization to a trusted source need not destroy the separate record of the previous state.
One post-write value can follow two different histories
As a register example, suppose the first read after recovery, before any write, returns 0xD8. The top bit is one and the low BCD field represents 58 seconds. That looks like a plausible reading, but a set VL prevents using it as proof of uninterrupted timekeeping. Record “VL set; previous calendar cannot be used” and keep 0xD8 so that the next technician can verify the decode. Do not mark the clock valid because the seconds look normal.
Suppose another board is first set to 00 seconds and then reads 0x00. If the write reached the seconds register and cleared VL, two different boards can now give that same result: one originally had VL set and the other originally had it clear. The post-write data cannot distinguish their histories. Without a saved pre-write reading, record the history as unknown. Do not use 0x00 as proof of no outage or as a battery pass.
This example is not a recommendation to set the RTC by writing only the seconds. Restore from a trusted source using Epson’s calendar and initialization sequence, then verify timekeeping under the project’s conditions. If the old calendar matters for traceability, save it and the independent reference separately before writing. If they disagree, do not choose whichever appears newer or use the later software setting as the time of the fault.
Trace the first write, including automatic initialization
A technician may see only “battery normal” or “time synchronized” in the application log. Inspect the actual I²C transactions and returned bytes. In particular, check whether a startup library writes seconds before the interface even opens. After a controller change or firmware update, do not assume all versions touch the RTC in the same order. Compare normal startup and backup recovery under controlled conditions and keep the first relevant bus exchanges.
To confirm the behavior, use an approved engineering board and establish a known initial state within the manufacturer’s operating conditions. In one trial, read first and then perform the required initialization. In a second, record a controlled write followed by a readback. Mark which transactions are demonstrations and which represent normal startup. Do not substitute bench tests for original field evidence or force equipment in service outside its safe supply conditions to reproduce a low-voltage event.
If VL is clear but the time is wrong, consider a prior write, whether the reading came from current hardware or a cache, and whether the supply event was the kind of slow change the flag can report. If the device has already been modified, preserve two distinct findings: whether it can now be set and run, and whether its original state can still be recovered. A successful service test does not confirm the original fault.
Record the pre-write evidence and the recovery separately
| Check | Evidence to retain | Not a substitute |
|---|---|---|
| First read | Raw 02h byte, VL and acquisition time | A clean result after writing |
| Access order | First I²C read, first write and their caller | One application log saying “synchronized” |
| Source state | Supply trace, boot conditions and trusted time source | Inferring fault duration from one flag |
| Recovery | Initialized time and timekeeping test, alongside the old record | Proof that the old time never became invalid |
Tie service and quality records to the exact part, board revision and firmware. A set flag supports rejecting the previous time and investigating the supply; it does not establish a manufacturing defect in a lot of crystals. Invalidating old time and restoring service are separate. A trusted time source can restore service before the precise cause is known, but a successful recovery should not delete unexplained power-loss evidence.
If startup, background synchronization and field calibration are separate entry points, require each to see the same evidence-captured state before allowing a seconds write. Separate evidence for this power cycle from prior service records so a resolved flag is not carried into the next case. Test a startup where background synchronization tries to run early. Verify that the first read is kept and that ordinary recovery does not depend on someone opening a diagnostics screen quickly.
When correlating the last trusted synchronization before the outage, identify which device supplied that record. If the external controller also lost time, two potentially incorrect timestamps do not validate each other. Align the scope trigger, power recovery and first read to one relative timebase. Even without recovering the wall-clock time, that can establish which access took place before the first write.
Frequently asked questions
Can writing back the seconds register with its top bit unchanged preserve VL?
No. Epson specifies that a write to the register clears VL regardless of the data. Read and retain the evidence first.
Does VL clear after recovery guarantee that the old time is valid?
No. Verify whether the seconds register was written before the read, then consider the supply event, trace and project time checks. If the access order is unknown, mark the previous state as unverified.
