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

Diodes PT7C4311 crystal RTC: Is an E3h hour register value normal?

It can be. Register 02h stores the 24-hour BCD hour in its lower six bits. The upper two bits are CEB, the century-enable bit, and CB, the century bit. If both are set at 23:xx, the raw byte is E3h. Mask it with 3Fh to recover 23h, then decode that as BCD hour 23. Do not decode the whole byte as BCD or treat the top bit as a 12-hour mode flag. The manufacturer's function table lists 24-hour operation, not 12-hour operation.

A generic decoder sees E in the upper nibble of the raw byte and may report invalid BCD, even while the seconds and minutes advance normally. For repair, log the raw hour byte, the masked hour and several seconds readings before replacing the 32.768 kHz crystal. If the masked value is itself outside valid 00–23 BCD, investigate the register access and the last time-setting operation rather than assuming the upper flags explain it.

Keep hour and century handling separate in the driver. When setting only the hour, apply the project's intended CEB and CB policy rather than clearing the top two bits by overwriting the full register with bare hour BCD. If they are meant to remain unchanged, preserve them in the update and verify the readback. Test 00 and 23 with different upper-bit combinations, then capture a real midnight transition on the target board. Recognizing the century fields does not establish how a particular application handles a century rollover; validate that as a separate calendar case.

Related selection guide: MERLIN Crystal Timing: Diodes PT7C4311 crystal circuit: Why 2.5 V can set the time but cannot qualify a RAM write

Resource link: https://www.mecxtal.com.cn/en/handbook/dio-027.html

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.