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

Epson RX8901CE Crystal RTC: Why Is the Backup-Voltage Alarm Delayed?

The RX8901CE’s VBATLF flag is not a continuously operating transient detector. In Epson’s primary-battery example, when enabled, the backup voltage is compared once every three seconds. The self-monitoring section requires two consecutive low detections before setting the flag. A short dip may fall between comparisons or be detected only once. Before replacing the battery, separate an actual dip from whether detection was enabled in that mode and when the software could observe the flag.

Read the three configuration bits in the context of the active mode

Epson configures backup-voltage detection in PWSW_CFG. INIEN enables automatic power switching and is a prerequisite for VBATLF operation. VBATLDETEN enables backup-voltage detection, and VBATLDETBK is additionally needed to detect in Backup mode. Detection before entering Backup mode does not establish that detection remains enabled during it. The primary-battery example leaves charging disabled. Detection and charging are separate functions; do not copy a whole configuration byte from another battery design.

VDD is the main supply and VBAT is the backup supply. Each has separate monitoring. VDDSAMP concerns main-supply sensing; its name is no reason to treat it as a control for the VBAT three-second comparison. Retain the actual register readback and confirm which mode was active when the fault occurred. A dip with no flag means little if the detector configuration is unknown.

CheckManufacturer definitionRecord on the board
INIENEnables automatic power switchingRead back to verify prerequisites
VBATLDETEN and VBATLDETBKEnable VBAT detection and permit it in Backup mode, respectivelyRecord Normal and Backup configurations separately
Setting VBATLFTwo successive detections meeting the drop criterionSave the rail trace and flag state
Clearing VBATLFRecover to at least the rising threshold, then write zeroPreserve the fault evidence before clearing and verifying

Why two four-second dips can yield different results

Assume comparisons at 0, 3, 6 and 9 seconds, no previously detected low condition, and all other prerequisites met. If a dip lasts from 0.5 to 4.5 seconds, only the comparison at 3 seconds sees it in this example. By the next comparison, voltage has recovered, so there are not two successive lows. Move the same four-second dip to 2.5–6.5 seconds and it is seen at both 3 and 6 seconds, satisfying the flag condition. The voltage minimum may be identical even though alignment changes the outcome.

For a sustained dip, in an ideal fixed-cadence model, the delay to the second comparison is about one to two intervals, depending on time until the first sample. It is not invariably three seconds from the drop. This is an inference from the timing, not a device-specific software-alarm guarantee. Start timing from the applied dip rather than assuming it aligns with the internal sampling phase. Register readout, interrupt handling and screen presentation introduce separate delay. Display time alone does not reconstruct the rail history.

Nor can any two distinct dips simply be added together. A sampled recovery between them breaks the required sequence. Record the stimulus and the observations separately to understand why several brief drops do not necessarily set the flag. If the system must catch dips shorter than the sampling interval, use a separately verified external monitor or waveform capture rather than assigning this flag an undocumented transient specification.

Verify operation with a sustained dip, then test pulse coverage

Use a controlled backup supply appropriate for the evaluation, retain the original configuration and confirm operating limits. Hold the supply below the falling threshold long enough to cover consecutive comparisons. Measure close to the module’s VBAT pin and record the main supply and actual mode. The bench supply display is not evidence of pin voltage. In Backup mode host register access is not always available. Use the design’s supported observation path, or log the flag after main power returns before normal initialization can erase the evidence.

Once the sustained test passes, shift the timing of short dips relative to sampling and compare flag behavior. Use a shared timeline for the source stimulus, measured pin voltage, available interrupt evidence and final readout. Do not dismiss a captured dip because one test produced no flag. Nor should every scope dip be counted as a detector failure. Distinguish an insufficient stimulus from a failure after a sustained condition, then check configuration and readback for the latter.

Recovery has a different threshold from the falling trip point. A small increase may not yet allow clearing. Confirm recovery to the rising threshold or above, write zero using the documented method and read the flag again. If it remains set, check the recovery voltage, operating mode and access order. Keep required startup behavior intact; designate how the validation build records evidence before it can be cleared. Retain pin-voltage measurements on production checks rather than using a battery swap as a measurement.

Qualify the voltage alarm separately from clock integrity

Specify whether backup detection is required, in which modes, whether short pulses must be captured, and how software preserves evidence after recovery. Purchasing approval should identify the complete part code, document revision, backup storage technology and supply arrangement. The engineering record should separately capture configuration and readback. Revalidate alarm latency after changes to the part, backup storage, or switch-over design. A production first article should cover normal operation, backup and recovery against the product’s individual requirements.

Do not use VBATLF alone to decide whether a timestamp is trustworthy. It reports backup undervoltage detected under specific conditions. It does not directly report the instant the internal oscillator stopped, nor does it indicate that switching occurred. Check oscillator-stop and time-validity indications specified for the device, as well as system records. “Backup undervoltage detected; time integrity under review” is more accurate than treating every timestamp as invalid or treating an unset flag as proof that battery and timing passed.

At minimum, log dip start and end, Backup-mode status, recovery voltage, and flag-readout time. Do not fill missing measurement times with an application log timestamp.

FAQ

Can faster main supply sensing make VBATLF set earlier?

That does not follow. Main-supply sampling and the VBAT comparison interval in the primary-battery example are distinct. Verify backup detection against the manufacturer’s functional description and the actual configuration. Measure alarm latency at system level. If the design must cover dips much shorter than three seconds, specify that requirement and choose a measurement method that can demonstrate it.

Why is the flag still set after voltage recovers?

The flag is not a live voltage indicator. After the prescribed rising condition is met, clear it by writing zero. Save the flag and supply evidence before clearing, then verify the result. If it cannot be cleared, check whether the rising threshold was really reached and whether a new qualifying event occurred afterward.

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.