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

Checking Epson RX8900CE crystal timekeeping after power loss: VLF vs. VDET

A plausible calendar reading after main power returns does not prove that temperature compensation stayed active throughout the outage. Record both RX8900CE flags before clearing them. Then decide separately whether the calendar can be retained and whether time error at low voltage needs its own acceptance test.

A clock that keeps counting is not necessarily keeping accurate time

The quartz oscillator inside a real-time clock (RTC) module supplies the ticks that advance its calendar counter. A digitally temperature-compensated crystal oscillator (DTCXO) uses a compensation circuit to reduce timekeeping error caused by temperature changes. Seeing the counter advance tells you that the displayed time is moving forward, not that every minute was counted within the compensated accuracy limits. Likewise, successfully reading the calendar fields over the bus just after power returns does not establish that those fields had a trustworthy starting point throughout backup operation.

For the RX8900CE, the manual lists 1.6–5.5 V as the clock supply range and 2.0–5.5 V as the temperature compensation range. These lower limits apply to different functions; they are not interchangeable specifications. At around 1.8 V on backup, being below the compensation range is not enough to conclude that the RTC stopped. Being within the timekeeping range is equally insufficient to sign off on compensated accuracy. Check the specified frequency grade, temperature interval and test supply. A maximum error on one line of the specification does not automatically apply to every backup condition.

What each flag can tell you

The voltage low flag, VLF, indicates whether the calendar and internal data can still be trusted. A supply drop is not its only trigger: oscillator stop detection or a power-on reset from a cold start can also set it. If VLF reads 1, do not pass the RTC time to the application as trustworthy just because the date looks like today. Follow the device initialization requirements and reconstruct the time from a trusted reference when one becomes available. Until then, mark records as having unverified time rather than simply overwriting the date with a default.

The voltage detection flag, VDET, concerns the reliability of temperature compensation. Its low-voltage check is tied to compensation timing; it does not continuously record high-speed details of the power waveform. The manual specifies a typical detection threshold of 1.95 V and a range of 1.9–2.0 V. That is not permission to design the compensation supply for 1.95 V. The detection table gives a separate range for the voltage threshold that sets VLF, which is likewise not the same specification as the lower limit for clock operation. When one sample happened to set a flag is no substitute for design margin across production units.

Once set, both flags are retained until cleared by writing zero as specified. After main power returns, VLF=0 and VDET=1 are two different pieces of evidence: VLF did not report a calendar integrity problem, but the temperature compensation history cannot be accepted as normal. Check the time difference against an independent reference. Do not discard the calendar merely on that basis, and do not use a spot frequency measurement after recovery as a stand-in for the outage. Two zero flags mean only that no corresponding event was recorded in the flags you read. They do not prove, for example, that there was no short dip or that software never cleared a flag.

Worked example: two pass/fail decisions after a four-hour outage

Suppose a cold-storage logger must retain its calendar for four hours without main power, with accumulated error no greater than 0.50 s relative to an independent reference. The original and replacement boards use the same supply switchover circuit. Set a common trusted start time, record the initial offset, then clear and read back the relevant flags on each board. The reference is independently powered and unaffected by any automatic network time synchronization after the logger comes back online. These numbers illustrate the method; they are neither measured device performance nor datasheet limits.

During the test, hold the backup terminal at 1.80 V. Record the waveforms at the device supply pins relative to local ground and verify that the intended backup path is active. Hold low voltage across multiple configured compensation update opportunities, then repeat under representative load changes and temperature variation. For example, with compensation updates configured every 2.0 s, four hours at low voltage provides very different coverage from a dip shorter than 2.0 s whose timing relative to the update is unknown. For short dips, vary their starting point relative to the compensation cycle and keep the voltage trace. One short pulse that leaves no flag set is insufficient for acceptance.

Assume the first readback, before clearing flags, gives VLF=0 and VDET=1. Calendar continuity is independently verifiable throughout 14,400 s, and the ending time minus the starting time relative to the reference shows a net lag of 0.72 s. Divide accumulated error by elapsed time: −0.72 s ÷ 14,400 s × 10⁶ = −50 ppm. That is the equivalent average timekeeping error over the test interval, not the oscillator's frequency offset at any given instant. The result can satisfy this test's calendar continuity requirement but fails the 0.50 s accuracy limit by 0.22 s. If the time display has only whole seconds, first establish sufficient resolution using second transitions against the reference or another suitable method. Two snapshots showing whole seconds cannot establish a lag of 0.72 s.

Run a control test at a supply voltage within the normal compensation range and keep an independent starting offset for each board. If a discrepancy appears, check whether it occurs only at low voltage or whether the full-voltage control also fails. Measuring only the first few dozen seconds after recovery may tell you only how the RTC behaves after compensation resumes. Comparing the two boards only against each other is also insufficient: both could run slow by nearly the same amount. For acceptance, measure the accumulated error of each board against the independent reference.

An acceptance record for engineering and procurement

CheckEvidence to retainHow to use it
Part identityFull order code, accuracy grade, manual revision, lot and board IDPassing samples do not qualify an untested grade
Supply and detection coverageVDD and VBAT waveforms relative to local ground, switchover settings, compensation interval, low-voltage duration and temperatureSeparate actual backup voltage, compensation detection threshold and switchover threshold
First readbackRaw flag byte and timestamp after bus access returns and before initialization or synchronizationAvoid collecting evidence only after the driver has cleared it
Calendar continuityTrusted initial time, observed second transitions or other continuity evidence, and any resets or time changesA plausible date format is not proof of data integrity
Accumulated errorIndependent reference, test duration, start and end offsets, measurement resolution and toleranceEvaluate low-voltage accuracy separately

Do not put flag collection after routine initialization. After the controller resets, wait until the RTC can be accessed as specified, read and save the flags, and then decide whether to initialize, synchronize and start a new detection interval. When changing the flag-clearing code, account for the other interrupt status bits in the same register. An unintended whole-byte write can wipe alarm or timer evidence. A test firmware build can log the first raw byte together with the firmware version and when main power returned. That helps distinguish an event the RTC did not detect from evidence lost because the software performed its operations in the wrong order.

For procurement, do not limit the comparison to checkboxes for backup and temperature compensation. Capture the lowest planned backup voltage, the longest required period of accurate operation without main power and whether synchronization after recovery is acceptable. If the product must meet its accuracy spec near the end of a low-voltage discharge but the candidate's compensation specification does not cover that range, request missing evidence or revise the design. A pass on calendar continuity cannot cancel out an accuracy failure. If the application allows reduced accuracy, define when that applies and how recovery is handled, so field records are not mistaken for precision timestamps.

Frequently asked questions

If VLF is 0 and VDET is 1, must I replace the backup battery?

Not necessarily. Look for sustained low voltage at the device pins and for voltage sag under load during switchover. An open-circuit battery reading is not a substitute for a reading on the assembled board. Then check whether the application needs compensated accuracy at low voltage. If all it needs is calendar retention and event order, it may be acceptable to resume with the accuracy exception recorded. If the error exceeds the budget, improve supply headroom, revise the switchover design or choose a device specified for that operating range.

If VLF reads 1, can I clear it, read back 0 and accept the old time after all?

No. Clearing the flag prepares it for the next detection interval; it cannot establish that earlier data survived. Initialize as required and establish trusted time before returning timestamps to normal status. If older records lack independent timing evidence, preserve the original values and mark them as having limited reliability.

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.