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

Why 70h is not the next SRAM byte after 6Fh on the Epson RX8901CE crystal RTC

In SRAM mode, the Epson RX8901CE uses registers 60h through 6Fh as a window. Epson divides the storage into sixteen pages of sixteen bytes. Set RDPAGE first, then access the selected page through that same register range. Logical locations 0Fh and 10h map to 6Fh on page zero and 60h on page one. They do not map to consecutive physical registers with an unchanged page. Record page and window address to separate incorrect addressing from faulty data.

The page number is not a high bit in the wire register address

The RX8901CE is a real-time clock with a built-in crystal. Epson's SRAM section describes enabling SRAM mode with SRAMMOD in BUF1_CFG2, then selecting a page with the four RDPAGE bits. Bank 6 registers 60h through 6Fh access a page; all 256 bytes do not appear as one flat register range. The same 60h reference can reach the start of different pages. Successful communication can return the wrong page's data, so an acknowledgment does not prove location.

Software can expose logical offsets zero through 255. Divide the offset by sixteen: the integer portion selects the page, and the remainder is the position within that page. Add the remainder to register 60h to obtain the window location. This arithmetic applies only within the documented SRAM mode and range. The logical offset is a software abstraction, not an additional device register address. Explicitly label logical offset and physical window in reports.

Four points exercise common mistakes

Logical SRAM offsetRDPAGEActual window register
00h060h
0Fh06Fh
10h160h
FFhF6Fh

These examples follow the manufacturer mapping; they do not require changing production storage. Reading four bytes from logical 0Eh means accessing 6Eh and 6Fh on page zero, then selecting page one and accessing 60h and 61h. Do not continue past 6Fh or substitute arithmetic overflow for a page write. Use only transaction forms supported by the device and the approved interface; the mapping does not authorize arbitrary bus sequences.

FFh is the last byte on page F. A further logical address is out of range, not an instruction to wrap to the beginning or access a register above the window. Validate both start and length before splitting a request. If an application specifies a byte count while the fixture gives a hexadecimal endpoint, state whether the endpoint is included to avoid an extra byte.

Why an incorrect test can still pass

If page zero and one contain the same fill values, reading the wrong page can appear successful. Writing and reading with the same incorrect selection can also look like a pass if page identity is missing from the log. Use distinguishable known data only in approved test areas or on a separate board to avoid overwriting evidence. In service, prefer authorized read-only investigation instead of changing storage to detect the page.

Page selection and window access are separate operations. If diagnostics change the page between them, a reader can get a valid byte belonging elsewhere. Check manufacturing, troubleshooting and bulk dump paths. Software design determines how accesses are serialized, but the record needs to make clear who selected the page for each access. After host or device reset, establish actual mode and page again rather than trusting a cached setting.

Test 0Fh/10h across a boundary, and 00h and FFh at the endpoints. Preserve logical offset, page, window register and raw result. Align the bus capture with the application record if needed. If only the latter two bytes are wrong, verify page selection and actual addresses before labeling the SRAM damaged. Reuse these boundary tests after a fixture change rather than checking only the first byte of one page.

Do not transfer the SRAM procedure to FIFO

This example concerns general SRAM access under SRAMMOD, not a time stamp FIFO read procedure. The recording modes have their own rules. Sharing a register window does not make the same page manipulation valid in both. Keep raw SRAM data separate from valid records in tooling. A blanket register dump cannot verify timestamp interpretation. If a field result does not record the operating mode, leave interpretation open and recover the applicable setup first.

At engineering handoff, state mode, logical start, length and how crossing requests are split. A correct first segment does not qualify a failed second segment. Nor does a bad second segment establish that all stored data is corrupt. Keep the first failing location and page context, then re-establish the selection according to the approved procedure before retrying. Test correct page changes and out-of-range rejection separately.

An evidence reconciliation can check the same boundary example in manufacturing records, service tools and firmware logs. A reviewer should be able to derive the window location from the logical byte and recover the logical offset from the page and window together. A bare 60h without page information is insufficient. This catches tools that use different address notation across revisions.

A diagnostic build can print the planned page and segment before making an approved test access. Include zero length, the first byte of the final page and a request that includes the last byte without exceeding capacity. If a boundary test fails, distinguish an unchanged page from a skipped final byte on the previous page. Those are different segmentation errors. The rule does not depend on one MCU or language; it depends on a consistent definition of logical offset.

A bulk export should identify its data source. Do not append adjacent registers to an SRAM dump and call the result more complete. Correct file size is not proof that each byte came from the selected page. Keep a segment start and status so a reader can distinguish a failed page from actual empty data. Across sessions, verify device state and page selection again. Records that map addresses back to storage are more useful than an unannotated hexadecimal dump.

Frequently asked questions

Does the expected value at 60h prove I read page zero?

No. It is the first window register for every page. Confirm SRAM mode and the RDPAGE selection for that transaction.

Can a read immediately after 6Fh continue into the next page?

Do not assume so. Select the new page and access 60h through the documented window. At the last byte in the last page, reject requests beyond capacity.

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.