Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Passive Crystals and Oscillator Circuits

RX-8731LC EEPROM Won't Write? Check Crystal Startup and the Byte-to-Byte Delay

Access to some Epson RX-8731LC registers after power-up does not prove it can write EEPROM. The internal quartz clock participates in writing, so writes cannot proceed before oscillation works. Write-enable polarity, individual byte transactions, and a 1.8 ms delay matter too. For production registration or service, read back the stored data before release. A bus acknowledgement or a software message is not proof of a completed write.

Verify three write conditions independently

The ETM23E-04 manual calls EWP EEPROM write protect, but on this model a value of 1 permits writing. A cold start from 0 V resets it to 0. Use the documented polarity rather than guessing from the name. EWP shares a control register with timing and interrupt functions. Enabling writes does not authorize overwriting unrelated bits. Preserve required operating fields and handle reserved bits under the component's rules.

The manual distinguishes EEPROM at 10h–19h and read-only ID-ROM at 1Ah–1Fh. The first holds writable nonvolatile data. The second carries factory identification and cannot be written by the customer. A shared bus interface does not make them one unrestricted write range. Read the factory identifier when needed, but don't store application state there or infer write readiness from an ID read.

The write section says EEPROM uses the quartz oscillator and cannot be written until it operates after power-up. It also prohibits continuous writes by auto-increment. After a byte write, allow 1.8 ms before the next one. A write attempted too early is ignored. The host may communicate with other regions subject to their own rules. Bus availability, registers being readable, and the internal next-write condition are distinct. Do not assume that an ignored write has a particular acknowledgement pattern without evidence.

How much spacing is needed for four bytes?

Suppose oscillation and permission are already confirmed and the first byte write ends at 0 ms. For illustration, neglect subsequent bus durations and allocate 1.8 ms of spacing per pair of write actions. Four illustrative marks are 0, 1.8, 3.6, and 5.4 ms. The three gaps total 5.4 ms. This does not establish the full commit time, because it excludes bus duration, scheduler uncertainty, and verification of the last byte. It is neither a power-up delay nor an oscillator startup time.

A program that issues consecutive writes 1.0 ms apart is short by 0.8 ms. The early request can be ignored, but release should not depend on guessing which locations changed. Actual timing after an ignored request needs observation. Use a driver state check, explicit addresses, and adequate spacing. Read back the complete record and, when required, repeat verification after a controlled restart. Record permission, each write end, and the next write start rather than keeping only a success counter.

For a test that must prove contents changed on this run, use approved samples and data distinguishable from the previous values. Identical bytes can make an old value look like a successful write. Also account for write endurance, power interruption, and concurrent firmware access under the applicable documentation and system design. A successful byte write does not make the entire record atomic.

How can the station distinguish power, oscillation, and write protection?

First keep an unchanged unit and fixture as a baseline. Align module supply, host reset, serial transactions, and available clock-state evidence in the capture. Use an approved output or observation point and avoid disturbing oscillator operation. Mark when the supply entered range, whether stabilization was needed, and when write permission was set correctly. Cold power-up, backup resume, and a software restart may exercise different paths. One test on a continuously powered board does not cover them all.

Next inspect addresses and byte timing. Capture each individual write and its original timestamp, checking that no bulk EEPROM write used auto-increment. If background access is possible, assign ownership of each write sequence and define timeout and resume conditions. Do not let two tasks independently exercise the same storage. After a readback mismatch, stop blind retries and preserve the original state. Review permission, oscillator, timing, power, and addresses separately. Repeated writes can hide an earlier failure and consume endurance.

Finally verify the station-level release criteria. Use an approved sample for permitted writes and confirm that unauthorized addresses are never touched. A simulator can verify the driver's rejection of out-of-range requests without attempting writes to read-only regions in production. For a record that must survive reboot, define version, length, integrity check, and recovery policy. Do not interpret a partially stored record after power loss as complete. Base production success on observed device behavior and verification data, not the host send log.

Give the fixture distinct log states for startup preparation, each write, and post-write verification. When one host serves several units, a board's long wait in the queue does not prove its module was powered. Never use the previous board's startup timer to authorize the next one. Stale timing after a station switch can make a process problem look like a lot-specific one. Link supply, reset, and readback timestamps to each board and identify which module was active. In software testing, include a boundary case showing that the driver rejects too-short delays rather than repeatedly writing production hardware to create the failure. Log recovery after an accidental power loss as a retry or reinitialization instead of overwriting the original failure time. After a passing test, restore write protection under the project rules and read back the control state so qualification does not leave unnecessary write permission enabled.

EEPROM write checklist

ItemEvidenceRelease requirement
Power and oscillatorSupply trace and evidence of a working timebaseBus access is not write readiness
Write permissionEWP write and readback, handling of other control bitsUse model-specific polarity
Address and spacingExplicit byte addresses and transaction timestampsStay outside ID-ROM and allow 1.8 ms
Stored dataReadback, status, and restart verification if requiredDistinguish sent, accepted, and retained

Frequently asked questions

Can I write EEPROM as soon as the bus can read the ID?

No. ID-ROM readability is a different function. Verify oscillator operation, EWP state, and write timing. Communication alone does not establish that data was stored.

Does inserting a read between writes always supply the required delay?

No. Measure the time between actual writes rather than counting operations. The read may finish quickly. Firmware still needs to enforce the required gap and verify the resulting data.

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.