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

32.000 or 32.768 kHz for a Diodes PT7C4372A crystal? Check /XSL before trimming a fast clock

The RTC accepts two crystal frequencies, but the external crystal and /XSL must agree. Use /XSL=0 for 32.768 kHz and /XSL=1 for 32.000 kHz. Their 768 Hz difference cannot be corrected by a few ppm of digital trim.

Match the installed frequency to the divider setting

The PT7C4372A is a real-time clock (RTC), not a standalone powered oscillator with its own crystal. An external passive quartz crystal is fitted between the oscillator pins according to the circuit specification. The Diodes datasheet defines the most significant bit of the Time Trimming register at address 07h as /XSL: 0 selects 32.768 kHz and 1 selects 32.000 kHz. The lower seven bits are the separate trim field. The documented register default is all zeros. A board populated with 32.000 kHz should not be assumed to use the correct mode on an uninitialized start.

First check the actual crystal from the bill of materials and physical marking, then read the register. An application label such as “32 kHz” may mean either frequency or merely the name of a clock output. Record the full frequency and retain the original register value and target value. That gives repair and manufacturing teams the same evidence. If the design can use both A and C versions, check the fitted IC and its pin functions. Do not generalize the A version’s output connection to every related product.

Clock output and calendar time can tell different stories

The clock-output section explains that the crystal’s 32.768 kHz or 32.000 kHz waveform can be observed when the relevant output is configured. For the PT7C4372A, the manufacturer measurement example connects /INTB to a counter with a suitable pull-up. The register section states that trimming changes internal timekeeping, not the crystal oscillation frequency or the 32 kHz output. Measuring the expected output can identify the nominal reference. It does not establish that /XSL or the trim field is correct.

An unchanged external frequency after applying trim does not prove that the register write failed. Measure the output and compare RTC elapsed time separately. Preserve a baseline, wait as appropriate and read back the intended field. Other interrupt functions can also use /INTB, so record its actual configuration. If the expected waveform is missing, check output selection, pull-up and probe point before replacing the passive crystal. Do not assume a conventional probe on a sensitive oscillator node is non-invasive.

Worked example: daily error from the wrong mode

Assume both crystals run at their exact nominal rates, the RTC counts cycles according to the configured frequency, and startup, trim and other errors are ignored. A 32.768 kHz crystal in 32.000 kHz mode gives 32768 ÷ 32000 = 1.024 RTC seconds per real second. That is 2.4% fast, or +24,000 ppm. Over one actual day it gains 2073.6 seconds, about 34 minutes 34 seconds. The opposite mismatch gives 32000 ÷ 32768 = 0.9765625, or about 2.34375% slow. It loses 2025 seconds, or 33 minutes 45 seconds, per day.

The magnitudes differ because the denominator changes. Treating 768 Hz as a symmetric percentage hides that distinction. The manufacturer describes trim steps of around 3.051 or 3.125 ppm, depending on mode, and a total adjustment range around 200 ppm. Match the hardware and /XSL first, then trim residual error. Do not try to hide a percent-level mismatch with an increasing trim value. The daily figures show the scale of the error under nominal assumptions, not a guaranteed drift at every temperature.

Preserve manufacturing evidence from the board to the software

Start with a known-good board of the same revision and a record of a confirmed configuration. Test a full power cycle and any relevant backup recovery. Record power state, fitted crystal identity, software version, register readback, external frequency and timing interval. If writing only the lower trim bits, preserve /XSL under the project’s software procedure. Check whole-byte writes for unintended changes to the high bit. A hardware change that alters the crystal frequency needs corresponding software and production-test changes, not only a drawing update.

CheckEvidence to retainNot established by this check alone
External crystalComplete part number and exact frequencyThe correct physical part does not establish /XSL
Address 07hSeparate /XSL and lower seven bitsA trim write does not change the hardware output frequency
/INTB waveformA-version pin, mode, pull-up and timebaseA correct frequency does not prove calendar accuracy
Elapsed timeIndependent reference, duration and power-up stateOne short test does not establish performance after power changes

Whole-second register readings can hide small errors in a short test, especially when evaluating ppm-scale trim. Have the test script and an independent reference observe the same event and preserve the start and end times. Do not assign host scheduling latency to the crystal. When a board gains or loses tens of minutes per day, first correlate the frequency, setting and time record under repeatable conditions. If changing a part resolves the symptom, preserve the original settings and before-and-after evidence. The repair alone does not establish a crystal-series defect.

A manufacturing diagnostic can review the external frequency first, the most significant bit second and the lower seven bits last. If there is a known-good laboratory unit, compare both boards using the same instrument and timebase. When all units have the same output frequency but only some keep incorrect time, compare initialization, preservation of calibration and power history. If failures cluster within a material lot, reconcile inventory identity and assembly records before deciding whether samples need further inspection.

Define a controlled station test for each supported hardware variant. Require the station software to identify the fitted IC before selecting the clock output. Keep the frequency representation precise in test scripts rather than rounding it to a whole kilohertz. Display the result in both hertz and kilohertz if that makes the difference easier to see. An intentional full-day run is not required to spot every known gross mismatch. Choose an observation window that reflects the project's time resolution, power state and settling behavior. After resolving the mismatch, rerun the normal calibration so an erroneous correction is not left in production.

Two common verification questions

If I measure 32.768 kHz, may I write 00h to register 07h?

Only if the design requires 32.768 kHz and is intentionally clearing any existing trim. The measured frequency identifies the reference. A whole-byte zero also changes any approved calibration in the lower field. Confirm the software preservation policy, register readback and restart initialization before changing the field.

Can the warehouse combine both frequencies under “32 kHz”?

Avoid it. They can require different passive crystals, settings and acceptance criteria. Keep exact frequencies in inventory and associate them with the approved specification and software version. If the same board design supports both, qualify both matched combinations rather than requiring technicians to identify a mix-up by observing drift.

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.