Crystal Load Capacitors & PPM Budget

Load capacitor values for a Pierce crystal oscillator with the nearest E12 and E24 parts, the frequency pulling they cause, a ppm budget of tolerance, temperature, aging and load checked against a clock limit you enter, and conversion between frequency error, ppm and clock drift.

Method, formulas and references

Load capacitors

In a Pierce oscillator the crystal sees the two load capacitors in series plus the stray capacitance of the pins and traces. The crystal is calibrated by the manufacturer at a stated load capacitance CL, and the circuit must present that value:

(1)CL = C1C2 / (C1 + C2) + Cstray, so with C1 = C2: C1 = C2 = 2 (CL − Cstray)

The stray capacitance is usually 2–5 pF; it is not known exactly, so check the frequency on the first boards. E12 and E24 are the IEC 60063 preferred-value series.

Frequency pulling

Using the Butterworth–Van Dyke model (motional capacitance Cm, shunt capacitance C0), the load-resonant frequency is approximately

(2)fL ≈ fs (1 + Cm / (2 (C0 + CL)))

so a load capacitance other than the specified one shifts the frequency by Cm/2 · [1/(C0 + CL,actual) − 1/(C0 + CL,spec)]. A smaller load capacitance raises the frequency.

PPM and drift

(3)ppm = (factual − fnominal) / fnominal · 106; drift = ppm · 10−6 · 86 400 s/day

For example, a 20 ppm error makes a clock gain or lose 1.728 s per day, about 10.5 min per year.

PPM budget

A crystal datasheet gives its frequency error as separate terms: the tolerance at 25 °C, the stability over temperature and the aging per year. Each is a ± limit. The budget adds them two ways: the worst case adds them linearly, which is what a specification check needs, and the root-sum-square (RSS) assumes they are independent and do not all reach their limits together, which is closer to a typical board.

Aging is counted as the first-year figure plus the per-year figure for every year after it, because crystals age fastest at the start. A life shorter than one year still counts the whole first-year figure.

The fitted capacitors give a load capacitance other than the specified CL unless the exact value is fitted. Its pulling, from equation (2), is a signed offset that moves the whole error window rather than widening it, so it is added to both totals as it is. The load uncertainty ±ΔCL (the stray-capacitance estimate and the capacitor tolerance) is a ± term; the larger of the two excursions is used, because the pulling curve is steeper at the smaller load.

A PLL or clock multiplier scales the frequency error with the frequency, so the error in ppm is the same for every clock derived from the crystal. For an oscillator module the datasheet stability usually already combines the initial, temperature, supply and load terms; enter it once.

Two ends of a link

Enter the limit from your design requirements. A per-clock limit applies to this clock against nominal. For a link limit, the worst-case offset is the sum of the two independent clocks’ absolute errors.

UART has no specified tolerance; the limit is derived here for an ideal receiver that finds the start edge within one sample, 1/n of a bit at n× oversampling, and samples the middle of every bit. The middle of the stop bit, 9.5 bits after the start edge for 8N1, must stay inside the stop bit, so the two clocks may differ by at most (½ − 1/n) / 9.5: 4.6 % at 16× oversampling. Receivers that vote over three samples tolerate less, so prefer the figure in the UART datasheet where it gives one.

References

  1. E. A. Vittoz, M. G. R. Degrauwe, S. Bitz, "High-performance crystal oscillator circuits: theory and application", IEEE J. Solid-State Circuits, vol. 23, no. 3, 1988.
  2. STMicroelectronics AN2867, Guidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs.
  3. IEC 60063, Preferred number series for resistors and capacitors.

Related tools

Related electronics tools