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

Diodes PT7C4372A crystal RTC: Why do second 29 and second 30 round differently?

The PT7C4372A's 30-second adjustment uses the current seconds value to decide whether to carry the minute. When ADJ is written as one, values 00 through 29 clear to zero without a minute carry, and values 30 through 59 clear to zero and increment the minute. Thus 10:05:29 rounds to 10:05:00, but 10:05:30 rounds to 10:06:00. This is a one-time adjustment, not a long-term crystal frequency trim.

Treat adjustment as a command, not a busy flag

In DS42964, Control 2 is at Fh. At bit 4, writing operates ADJ and reading reports XSTP, the oscillator stop indication. Polling the same bit does not report whether the adjustment is in progress. Instead validate the resulting hour, minute and seconds. Keep this operation separate from the digital trim that corrects clock rate over time. Calling ADJ repeatedly to fix a clock that gains a few seconds per day makes discrete time jumps and can carry a minute above the threshold.

The datasheet gives 122 µs after writing ADJ with a 32.768 kHz crystal and 125 µs with a 32.000 kHz crystal. These are adjustment completion boundaries, not an application-level latency starting when the host queued an I²C request. Record the actual write transaction and the subsequent time readback rather than treating software log timestamps as the hardware event.

Test a clear case, then the boundary

On a dedicated sample, hold the test date fixed. First request adjustment safely below the threshold, then safely above it. Next test both sides of 29 to 30 seconds, using a trace that identifies when the command was accepted. A host message printed near that transition can otherwise make a correct minute carry look like a defect. Record the crystal frequency, write, and resulting time together. If the device must synchronize to an arbitrary external time, use the project's explicit setting procedure; use ADJ only when its half-minute rounding rule is intended.

Related selection guide: MERLIN Crystal Timing: 32.000 or 32.768 kHz for a Diodes PT7C4372A crystal? Check /XSL before trimming a fast clock

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