An RTC that gains about 0.173 s per day has an average frequency error of about +2 ppm. Before choosing how many steps to slow it by, determine how many pulses the calibration logic changes per operation. If it can remove one cycle of a 32,768 Hz clock every 60 s, that minute originally contains 1,966,080 cycles. Removing one slows the average rate by about 0.509 ppm.
Try one step before choosing three or four
Under this assumption, three calibration steps compensate for about 1.526 ppm, while four compensate for about 2.035 ppm. Starting from +2 ppm, four steps theoretically leave about −0.035 ppm. Calibration windows vary by IC. Some fields count pulses to be inserted, and others count pulses to be suppressed. A larger register value does not necessarily make the clock run faster.
Save the original register value and use the manual to select a small step. Compare accumulated time error against the same reference over several complete windows. Confirm the direction of change before writing the target code. When handing it to the factory, document the IC revision, ambient temperature, reference clock, and observation duration. A code obtained at room temperature establishes performance only under that condition.
