A battery-powered logger uses a PCF85263A and gains a little time each day. Engineering writes an offset but the counter still measures slightly above 32.768 kHz at CLKOUT. Start with what the trim actually changes. An RTC can periodically correct its seconds counter while the physical 32.768 kHz passive crystal continues to oscillate at essentially its previous rate. Qualification needs both the raw oscillator reading and evidence that timekeeping changes under the selected mode.
Identify the product document and revision
The NXP PCF85263A data sheet, revision 5.4, uses the offset register for the correction value and the oscillator control register for the mode. Normal mode initiates a correction cycle every four hours at approximately 2.170 ppm per step. Fast mode initiates it every eight minutes at about 2.0345 ppm per step. The pulses are then scheduled through the correction interval as documented. A capture of the first second will not necessarily contain the whole correction. The faster mode is useful when correction needs to change more frequently and may use more current.
An older NXP demo-board manual describes two-hour and four-minute timing. When migrating a fixture, use the applicable product data sheet for its test window. Record the complete RTC part, data sheet revision, mode, and programmed offset. For a 32.768 kHz crystal substitution, also retain the crystal order code and actual load conditions. This gives engineering a way to tell whether two fixtures ran the same correction mode for a comparable interval.
Calculate and verify an example code
Suppose the 32.768 kHz output measures 32,768.41 Hz at the specified supply, load, temperature, and instrument time base. This is 0.41 Hz high, or about 12.512 ppm, from 0.41 divided by 32,768 and multiplied by one million. At that rate alone, the device would gain approximately 1.081 seconds per day. This is an illustrative conversion from the instrument reading to a daily error. A counter display rounded to whole hertz would discard much of the information needed here.
Using the product data sheet workflow, divide the observed positive error by the applicable step. For normal mode, 12.512/2.170 is about 5.77, giving a code of positive six. For fast mode it is about 6.15, also giving positive six. The step rates differ, so the nominal residuals in this example are about −0.508 ppm and +0.305 ppm, respectively. Actual results depend on the oscillator’s conditions, the instrument, and the schedule over which the correction applies. Follow the manufacturer’s sign convention for other cases and read back both the mode and code.
Measure frequency and timekeeping over appropriate intervals
For raw oscillator frequency, use the 32.768 kHz output setting, a suitable measurement load, and a documented reference. Ordinary probes directly on a low-power crystal node can change its effective load. Record the raw reading before and after writing the trim if useful. NXP describes altering the period of a corrected second rather than the oscillator frequency itself. A similar raw frequency after correction is expected for the raw-clock setting and does not justify replacing the crystal.
For corrected timekeeping, compare the RTC against a stable reference time base. Document the start and end and include the applicable correction cycle and scheduled corrections. A ten-minute test in four-hour mode can easily miss the relevant event. A shorter debug test may use the documented correction pulse interrupt if it is configured for that purpose. Save the register readback and event capture, and use a sufficiently long timekeeping comparison for final acceptance.
A few hundredths of a second per day can be hard to distinguish with a hand-operated stopwatch or a display that shows whole seconds. Use a stable reference, timestamped acquisition, and a consistent method for observing or reading the device. If timing comes from software reads, account for bus scheduling separately or extend the observation. Interleave boards from different lots at the same temperature so equipment drift does not look like a lot effect. The method needs enough resolution for the acceptance difference.
Separate the crystal lot decision from calibration
Purchasing should verify the exact 32.768 kHz crystal order code and its load capacitance, ESR, and temperature range. A software correction does not qualify a part outside the purchasing spec. If two lots used different modes, repeat tests under comparable settings. Engineering should retain raw frequency, correction code, mode, operating temperature, and corrected timekeeping. If raw error is outside the allowed board budget, start with the crystal and oscillator network. If raw frequency and register readback are sound but the long-term error remains, check the complete correction event sequence and reference time stamps.
Give incoming specification and product timekeeping their own acceptance entries. Keeping both results helps distinguish component aging, assembly effects, and a calibration problem when the next lot arrives.
