The supply status read after the controller restarts is not evidence of what happened during an outage. When the RX8111CE records an external event, keep the timestamp and status byte from the same capture, then check the waveforms to establish what that status actually proves.
Put the event and the later read on separate points in the timeline
An external alarm in a cold-chain logger can arrive while the controller is asleep or main power is low. A real-time clock (RTC) module that is enabled and meets the capture conditions can store the event time. The firmware reads it over I²C once the controller is back. There are two different instants: when the external input triggers the capture and when the controller later reads it over the bus. Main power may have returned in between, and the load on the backup battery may have changed. The host's read time can be useful context, but it cannot replace the event time.
In the RX8111CE's basic timestamp registers, 20h through 28h hold the event time fields. The Status Stamp at 29h is recorded with the event. It is not a voltmeter and cannot tell you the magnitude of the main supply dip. It holds comparator results and oscillator stop status. Use separate fields for event-time status and read-time status in the debug log. A later value from another register should not overwrite the recorded one, even if both have similar display labels.
Decode 29h bit by bit, not as a power-mode number
| Field | Position in 29h | Question it answers |
|---|---|---|
| VLOW | bit 5 | How VBAT compares with its low-voltage detection threshold |
| VCMP | bit 4 | How VDD compares with VBAT; 1 indicates VDD below VBAT |
| VDET | bit 3 | How VDD compares with the VDET1 detection threshold |
| XST | bit 1 | Whether the internal quartz oscillator was reported stopped at capture |
Before interpreting the fields, check which detectors were enabled and when their results update. A status bit is not an instantaneous waveform with unlimited bandwidth. Do not assign your own alarm causes or additional thresholds to the other bit positions. In particular, the VCMP result is not a measurement of current in the backup path. VDD being below VBAT and the chip drawing power from a given path under a particular switch configuration are different questions. To confirm switchover, check the board connections, switch settings and pin waveforms, and measure current if necessary. Likewise, XST reading zero does not establish clock accuracy or rule out an earlier fault.
Worked example: why does the log show a low main supply after power returns?
Suppose a temperature logger feeds an external alarm into the RTC event input, EVIN. Start by testing a single external trigger without enabling internal monitors as additional trigger sources. The main input is normally 3.30 V, and the backup input is steady at 2.80 V. The bench setup produces a 1.90 V plateau at the main input. Once the detection conditions are met and the levels are stable, apply an alarm edge that meets the manual's requirements. Restore the main input to 3.30 V and read the stored event once bus access is allowed. These are illustrative bench voltages, not device thresholds or guarantees. Set minimum operating voltage, plateau duration and edge conditions from the actual circuit and controlled specifications.
Assume the raw status byte is 0x10, or 0001 0000 in binary. A bitwise AND with the VCMP mask 0x10 yields 0x10, so VCMP was captured as 1. At trigger time the measured difference is VDD−VBAT = 1.90−2.80 = −0.90 V. At read time it is 3.30−2.80 = +0.50 V. The opposite signs are not a contradiction: one indicates that the main input was below the backup input at capture, while the other describes the voltages when the controller later read the record. The status byte is not misreporting the restored 3.30 V.
If the real acceptance question is whether the alarm occurred during the backup interval, capture VDD, VBAT and EVIN on a common timebase, and put the register read on the same timeline. If the alarm edge falls right at the supply crossing, do not infer the order of events from a single comparison bit. Establish a reproducible baseline with the events separated, then move the edge to either side of the crossing while checking detector latency and measurement resolution. If the bench readings disagree with the status byte, first rule out the wrong event, sampling timing and unintended triggers before diagnosing a supply-path or chip failure.
As a negative control, leave main power normal and repeat the alarm under otherwise identical input conditions. Check whether the log distinguishes it from the low-voltage event. Also try restoring main power before applying the alarm to confirm the software does not reuse the previous status byte. Give the control events different labels so you can trace each back to its raw capture. If the data layer fetches time and status in separate operations, deliberately insert another event to test for a mismatched pair.
Preserve the raw data before classifying events in the application log
| Check | Minimum record | Why retain it |
|---|---|---|
| Part and firmware | Full order code, application manual revision, board ID and firmware version | RTCs with timestamp support do not necessarily share register addresses and status definitions |
| Trigger settings | Event source, EVIN configuration, enabled detectors and single-record setting | Establish that the record corresponds to the intended external alarm |
| Two points in time | Event input trace and the time of the bus read after recovery | Prevent later status from being assigned to the event time |
| Raw registers | Time fields and raw 29h value from the same capture, with decoded data stored separately | Retain the evidence for reanalysis instead of storing only “power loss” |
| Power evidence | VDD and VBAT at the device referenced to local ground, plus branch current and switch settings where needed | Distinguish comparator status from the actual supply path |
For a single-event read, follow the manual's example for handling the timestamp enable bit, ETS, before retrieving the record so a new external trigger does not change the data you intend to read. If command or internal triggers are enabled as well, follow the applicable timing for each. Clearing ETS alone should not be assumed to disable every trigger source. There may be a capture gap between disabling and rearming; estimate it and account for it at the system level. This example covers one external event, not an unconditional register sequence for multievent or buffered reads.
For hardware and purchasing reviews, do not stop at a checkbox for timestamp support. If the equipment must report the supply conditions at the time of an event, make same-capture status fields, trigger configuration, access timing and readability after recovery part of acceptance. With a candidate that records only time, a separately powered logger is one alternative. Present-time status from the restarted controller cannot substitute for event-time evidence. Keep the waveform file ID, event label, raw bytes and decoder version so older records can be reinterpreted if the decoding rules are corrected.
Frequently asked questions
Does 0x10 prove that the device was running on the backup battery?
No. It establishes that the captured VCMP bit was 1, reporting VDD below VBAT. To establish the actual supply path, check board configuration, switch status and, where needed, current measurements. The bit does not indicate remaining battery capacity.
If everything looks normal after power returns, can I mark the alarm as a false positive?
Not from recovery behavior alone. Verify that the status stamp and raw input waveform belong to the same event, then distinguish actual low voltage from unintended triggers and readout mismatches. If there is no evidence from the time of the alarm, leave the cause unresolved.
