Stray Capacitance for Crystals

Most likely this is a crystal intended for parallel resonant drive, and Cl is therefore the total load capacitance.

If the crystal were driven with a 0 impedance sine wave, this is the capacitance on the other side that would result in the desired phase shift at the rated frequency. Parallel resonant drive circuits rely on this phase shift to make the loop gain greater than 1 so that the circuit oscillates. This load capacitance is specified for crystals intended for parallel resonant applications. For normal crystals in the 1-25 MHz range, it's usually around 16-22 pF. For special low frequency watch crystals it is typically less, like 8-12 pF.

What the equation is trying to tell you is to split up this load capacitance equally on each side of the crystal, but to consider stray capacitance in the total. Stray capacitance is the unavoidable capacitance between nearby conductors or on the microcontroller pins to ground. It is impossible to know precisely, but 3-8 pF is a good guess, assuming reasonable layout.

While we see this very simplistic view of crystal load capacitance a lot, it is not all that good a model. This is because it ignores the output impedance of the circuit driving the signal into the crystal. At your frequency, a 18 pF capacitor would have a impedance of 620 Ω. The drive circuit can easily be substantially less than that, especially a drive circuit intended for that frequency. Think of the limiting case where the drive circuit has 0 impedance. Any capacitance added to that side of the crystal would be irrelevant.

When the drive circuit has high impedance, then the total capacitance seen by the crystal accross its leads is the series combination of the capacitance on each lead to ground. That's where the 2 in your forumula comes from. If both these capacitances are equal, then their series combination will be half of the individual values.

In summary, this equation is naive and simplistic. However, the capacitive load spec of a crystal is reasonably forgiving (one advantage of the parallel drive method), so it works well enough most of the time. If in doubt, put 22pF to ground on each side of the crystal, and it will most likely resonate nicely at very close to the rated frequency. Unless you need it to be super accurate, there is little reason to get into more detail.


\$C_{L}\$ is the load capacitance specified in your crystals datasheet. \$C_{STRAY}\$ is the stray capacitance between the two crystal traces on your board. For \$C_{STRAY}\$ I'll usually assume something in the range of 3-5 pF. But that might change depending on the length of your crystal-traces and the actual board stackup.

So, lets assume your capacitor has 20pF stated load capacitance. Then you calculate your capacitors like this. $$ C_{L1} = C_{L2} = 2 * 20pF - 5pF $$ $$ C_{L1} = C_{L2} = 35pF $$

So you might start with a 33pF or 36pF standard capacitor for a first good guesstimate. But you should measure the frequency after your first sample run and adjust the capacitors accordingly if the frequency is off.