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

Does the RX8804CE RTC Miss Events? Check the Margin of Its Internal EVIN Pull-Up

Enabling a pull-up does not guarantee that an open contact reaches a valid high. The Epson RX8804CE has a wide internal pull-up range, so long wiring, leakage and probes can consume the margin.

Check the device pin before blaming missing timestamps on software. The EPU bit can connect an internal pull-up to the external event input EVIN. Epson lists 125 kΩ to 2 MΩ, with 500 kΩ typical. For an open-drain sensor or dry contact, use the weakest pull-up to check released voltage and rise time, and the strongest to check sink current and valid low voltage. Then verify the event detection settings separately. Treating 500 kΩ as a fixed value misses both limits.

Separate pull-up, logic thresholds, and firmware configuration

EVIN is an external event input, not an I²C bus pin. A customary SDA pull-up is not automatically appropriate for this high-impedance sense node. The EPU bit connects or disconnects the internal resistor, not a precision resistor setting. Check that the delivered firmware actually sets the bit and that the external driver, contact, connector and PCB do not add unexpected current paths. A peripheral attached to EVIN can change the pin voltage when it loses power during host sleep. A schematic of the normal operating state alone does not establish a released high in that state.

Epson specifies an EVIN high minimum of 0.8×VDD and low maximum of 0.2×VDD. With an illustrative 3.0 V supply, a guaranteed high needs 2.40 V, and a guaranteed low must not exceed 0.60 V. Do not assume a reading between the boundaries is interpreted consistently or that the device cannot respond there. The sheet separately specifies input leakage under stated conditions. Additional leakage from contamination, wiring and attached devices is a separate board quantity, not the same as an input-leakage entry.

Edge selection, filtering and capture mode also affect whether a timestamp is recorded. Even a waveform crossing the valid thresholds should be verified with the actual event configuration. Conversely, software debounce will not turn an input that only reaches 2.0 V into a guaranteed high. Capture EVIN, supply and event results together to see which departs from the expected behavior first.

A divider example shows what the typical value can hide

Assume a 3.0 V supply, pull-up to VDD, and a 4 MΩ effective path to ground when the contact is open. Ignore all other leakage for this example. With the 500 kΩ typical pull-up, the divider gives 3.0×4÷(4+0.5) = 2.667 V, above 2.40 V. With a 2 MΩ pull-up and everything else unchanged, it gives 3.0×4÷(4+2) = 2.00 V, below the guaranteed high threshold. In this simplified example a 2 MΩ pull-up needs at least 8 MΩ to ground to reach precisely 0.8×VDD. A design needs additional margin. The 4 MΩ value is hypothetical, not a statement about a particular board or device leakage.

Now consider the low state. An ideal contact to ground at 3.0 V draws about 24 µA through 125 kΩ or 1.5 µA through 2 MΩ. These are modeled pull-up branch currents, not total RTC current or contact ratings. If the contact stays closed, the module standby figure alone does not describe battery consumption. A stronger pull-up also requires checking sensor sink capacity, low-level margin, and power budget. With an external pull-up, document whether the internal resistor remains enabled and calculate the resulting network.

Treat capacitance separately. With an assumed 100 pF, an initial voltage near zero and no leakage, a 2 MΩ pull-up takes about 0.322 ms to reach 80% of the supply, or 1.609 RC. The 500 kΩ case takes about 0.080 ms. If the preceding leakage is present, the final voltage itself may never reach the threshold. Waiting longer will not fix that. These calculations illustrate steady voltage and ideal rise time. They do not replace pulse-width or filter requirements or model any nonlinear behavior of the internal pull-up.

Isolate missed events at the input on the bench

Capture actual switch or sensor action, supply voltage, and EVIN. Whenever possible correlate these with timestamp retrieval on one time axis. Record the input resistance and capacitance of a suitable high-impedance probe. When node resistance is in megohms, a nominally high-impedance instrument may still change its behavior. Assess the impact on final level and recovery time, then compare whether capture remains reliable before and after attachment. If the instrument consumes much of the margin, improve the measurement rather than assuming production behaves like the instrumented board.

Test a short local contact, the actual harness and load, and the sensor state during equipment sleep or recovery separately. If it fails only with the harness, measure released voltage and recovery time. If the supply is valid and the waveform clearly crosses its thresholds, investigate event configuration, status handling and retrieval. Use approved supply and environmental conditions, and evaluate simulated leakage or loading before applying it. Do not connect another supply directly to EVIN to force reproduction.

Put the instrument into the same divider model. Suppose its DC input resistance is 10 MΩ. In parallel with the existing 4 MΩ path to ground, the effective resistance is about 2.86 MΩ. With a 2 MΩ pull-up the instrument reads about 1.76 V in the model, compared with 2.00 V without it. Both are below the valid high threshold, but the instrument exaggerates the drop. Do not use those two readings as a direct measure of the harness change.

If several connector paths use the node, document their switch and power states. Keep the measurement location and do not label the sensor-side capture as the pin waveform. Wiring and branch capacitance can shift the crossing times. Where the next event may arrive quickly, confirm that the pin has recovered to a valid high before it needs to detect that event.

Four design-to-acceptance records for the event input

CheckEvidence to retainWhat to decide
Device setupFull model, revision, EPU and event configurationIs the pull-up enabled and the capture setup correct?
Released highVDD, steady voltage, leakage and wiring assumptionsDoes it pass with the weakest pull-up?
Contact lowMeasured low voltage, contact current and durationDoes it stay low and meet power limits with the strongest pull-up?
Timing and retrievalSynchronized waveforms, recovery interval, and event recordsIs the loss electrical or in software?

Do not record only “switch works” for a pilot run. Document actual wiring, low-power conditions and the production service. When field behavior differs from bench results, preserve the failed supply and wiring conditions before changing the pull-up, harness or firmware. Purchasing retains the manufacturer limits, and engineering and manufacturing use the same acceptance basis rather than signing off a marginal design with a typical number.

Frequently asked questions

Can all boards be calculated with the typical 500 kΩ?

No. A larger resistor makes leakage and capacitance more important on release. A smaller resistor makes the external driver sink more current when low. Check both directions with the relevant limits.

Will adding an external pull-up always fix missed timestamps?

No. It can improve the released level but raise closed-contact current and reduce sink margin. First determine whether the failure is at the input voltage or recovery time, then retest levels, consumption and capture with the final pull-up arrangement. A resistor does not directly fix a configuration or retrieval error.

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.