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

Pericom PT7C4563B RTC crystal is running: How should firmware read seconds byte 95h?

Do not decode the full byte as BCD 95 seconds. In the PT7C4563B seconds register at 02h, D7 is the oscillator-stop flag, OSF, and the lower seven bits encode BCD seconds. In a 95h example, those bits decode to 15 seconds, but OSF is set and clock integrity is not guaranteed. Firmware should preserve both results: the count field reads 15 and the timestamp is not validated. Masking off the flag is necessary for BCD decoding, not for declaring the clock trustworthy.

A buffered waveform or a sequence of advancing seconds can establish that the 32.768 kHz crystal circuit and the counter are working at the time of the check. It cannot erase evidence that the time may previously have become unreliable. The datasheet says that time needs adjustment when OSF indicates lost integrity. Restore time under the approved initialization procedure using a trusted reference. Without one, keep timestamps marked as unverified rather than using them to order service or application events.

Exercise both fields in software tests. Byte 15h gives 15 seconds with OSF clear; 95h gives the same count with OSF set. Byte 7Ah is invalid BCD for seconds even with a clear flag. Validate both BCD digits and the 00–59 range. On a resettable test board retain the raw transaction, decoded time and validity state separately. Do not remove the original evidence just to make the display look normal.

Related selection guide: MERLIN Crystal Timing: Diodes PT7C4563BQ crystal clock chain: Is an 18:00 alarm supported?

Resource link: https://www.mecxtal.com.cn/en/handbook/dio-028.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.