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

Epson RX-4801 crystal RTC reads all ones: Check the 9h read mode first

The serial clock is toggling, but the data line stays high. Before replacing an Epson RX-4801 on a legacy board, check whether the module actually received a valid read mode.

The RX-4801SA/JE is a real-time clock module with an integrated quartz crystal. Its serial interface uses active-high CE, serial clock CLK, input DI and output DO. A read begins with a four-bit mode code and a four-bit address. Epson specifies 9h for reading and 1h for writing. With other mode codes, the subsequent data is ignored and DO remains high impedance. If board bias pulls the undriven data line high, the host may log an all-ones byte that the module never drove.

1. Identify who drives each line

The module accepts serial operations when CE is active. Epson also states that DO is high impedance when the device is deselected and CLK and DI are not accepted. A toggling signal only establishes that there is clock activity at the probe point. It does not establish that the chip is selected or returning data. Probe CE at the module pin rather than relying on a logic label at the controller. If an inverter or level shifter intervenes, capture both sides.

In an ordinary read, the host sends the mode and address on DI; DO is also high impedance during that phase. Compare the command and data phases instead of taking a single sample. A logic analyzer connected only to clock and DO cannot reveal whether the command was accepted. Add CE and DI to see when selection occurred, what was transmitted, and whether the return appears in the second half. Use an analog capture if thresholds are in doubt rather than treating the decoder threshold as the device’s input requirement.

Distinguish DO from FOUT on the same package. FOUT is a clock output that operates under its own control conditions. Edges there establish only what that path did at the time of measurement. DO carries serial read data; a working clock output does not validate the register interface. Likewise, failed data reads alone do not establish that the internal crystal stopped.

2. Split the first byte into high and low nibbles

The manufacturer’s one-shot read diagram shows sixteen serial clocks. Send four mode bits and four address bits, then receive eight bits of data, most significant bit first. The read and write timing diagrams give the relevant edges; do not choose a default timing mode just because the host controller’s interface name looks familiar. Export the raw frame and mark the meaning of the first through eighth clocks. Check the command against the pin timing before changing decoder labels.

PhaseWhat to checkWhat it does not establish
CE assertionLevel at the module and timing relative to CLKToggling clock does not prove selection
First four DI bits9h read or 1h writeThe whole first byte is not the mode
Next four DI bitsTarget address and transmission orderA correct address cannot repair the mode
DO data windowWhether the next eight bits are actively drivenA biased high-impedance line is not a returned value

Initialization and reset may use a transmit function different from the normal access path. Construct mode and address separately and add encoding tests that catch a swapped nibble. Verify multiple addresses on the analyzer rather than testing only address zero. In a port, check for copied command formats and byte-order settings that leave a sensible-looking log but reverse the actual bit stream. The software log and the pin trace are useful for different reasons.

3. Worked example: 0x97 and 0x79 do not mean the same read

Suppose a test is reading RAM at 7h. The 9h read mode goes first and the 7h address follows. Shift 9 left by four bits to obtain 0x90, then add 0x07, giving 0x97. In this example the host sends the two nibbles most significant bit first. If the transmit buffer swaps the nibbles to 0x79 instead, the module sees 7h first, which is not a supported read mode. Even a complete set of sixteen serial clocks will not produce the expected RAM read.

For illustration, suppose the board has a suitable weak pull-up on the receive line and no other device is driving it. With an invalid mode and DO at high impedance, the host might sample 0xFF during its intended read window. That is a hypothetical result of board bias and sampling, not a documented error code. A weak pull-down might produce a different constant, and another active driver could change the result entirely. Preserve the raw trace before calling 0xFF a value returned by the RTC.

For comparison, on an authorized validation board where service records will not be affected, use known RAM contents for the first read or use a previously captured good reference frame. Do not modify date or time on a customer’s failing board merely to prove that the interface works. After finding a legal mode and data window, cross-check at least two distinct data patterns. A syntactically correct all-ones frame can still resemble idle bias and should not be the only passing evidence.

4. Keep protocol, wiring and part findings separate

Before testing, save the board revision, driver version, raw CE/CLK/DI/DO capture and transmit buffer for the same operation. If CE is active but the first four bits are invalid, fix the encoding and retest the original board. If the correct mode still fails, check supply, pins, premature CE release, clock edges and the host input. Replacing the module at the outset changes solder connections and the power-up sequence, making the original failure harder to reconstruct.

To distinguish high impedance from driven high, first use known board bias and available isolated test points. If an approved fixture requires a bias change to gather evidence, confirm compatible voltages, permitted loading and other devices on the line. Do not drive against an active output or leave test wiring on a production board. Record additional measurement loading so that probe-induced behavior is not mistaken for part failure.

When sourcing a repair replacement, confirm the full model, package pinout, driver version and failing frame. Epson lists the RX-4801SA/JE as discontinued; this is a repair example, not a recommendation for new designs. A substitute may also have clock, chip select and two data lines, but still requires comparison of select polarity, command encoding, bit order, drive window and high-impedance release. Put an interchangeability conclusion in the part approval only after checking the control word and board behavior.

If the repair fixture saves different decoder setups, include the configuration revision in the ticket. A different default bit order can give the next technician a different hex display for the same capture. Keep the raw waveform as the primary evidence and record the decoding edge and display order used for this test.

5. Quick questions

Does a read of 0xFF prove that the chip never responded?

No. A register can contain all ones, or the line can be pulled up while undriven. Check the mode, selection and data window, then compare a legal frame known to return something other than all ones. Without this evidence the result remains unresolved.

Why not send only 9h as the first byte?

9h is a four-bit mode, not the entire first byte. This device expects four address bits next, and the data phase follows. Verify the actual bit stream rather than treating a matching hex digit on a display as proof that it occupied the right position.

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.