Get a BOM Quote
Home › Notes › Crystal Load Capacitance: The ppm Error You Build In Yourself
Design·8 min read

Crystal Load Capacitance: The ppm Error You Build In Yourself

A crystal is specified by frequency, but it runs at that frequency only with the load capacitance it was trimmed for. How a copied reference design puts a clock 100 ppm off before temperature is even considered.

A crystal is one of the few components where the datasheet frequency is conditional. The part is cut and trimmed to oscillate at 16.000 MHz with a specific load capacitance, usually 8, 10 or 12 pF. Change the load and the frequency moves. The circuit designer controls the load, so the designer controls the error.

This is why two boards with the same crystal can have clocks 60 ppm apart, and why a design copied from a reference schematic sometimes runs at the edge of a bus tolerance.

The formula, and the mistake

The load capacitance seen by the crystal is the series combination of the two load capacitors plus the stray capacitance of the traces and pins:

```

CL = (C1 * C2) / (C1 + C2) + Cstray

```

With equal capacitors this becomes C1 divided by two plus stray. Turning it around, for a target load capacitance and an assumed stray of 4 pF:

```

C1 = C2 = 2 * (CL - Cstray)

```

A crystal with CL of 8 pF and 4 pF of stray needs 8 pF on each side. A crystal with CL of 12 pF needs 16 pF on each side.

The common mistake is to put the load capacitance value on each side. That gives an effective load of half the intended value plus stray, which pulls the frequency high or low depending on the crystal cut, and it is a mistake that survives because the oscillator still starts and still produces a clock. It is just not the clock the datasheet promised.

Stray capacitance is not a guess to be taken lightly at these values. A short trace on an inner layer with a ground plane underneath contributes 1 to 2 pF. A socket adds more. Long traces to a crystal placed far from the chip can add 5 pF, which at 8 pF load is a 25 percent error in the capacitor calculation.

What the error actually costs

Pullability, sometimes called trim sensitivity, is the change in frequency per picofarad of load capacitance. For a small MHz crystal in a 3.2 by 2.5 mm package it is typically 10 to 30 ppm per pF, and it rises with the square of the frequency for a given crystal cut.

So 2 pF too much load on a 25 ppm per pF part is 50 ppm low. Add the crystal's own tolerance of plus or minus 10 or 20 ppm, the temperature drift of another 10 to 30 ppm over the industrial range, and aging of 3 to 5 ppm per year, and a part specified as 20 ppm is running at 90 ppm in year three.

Whether that matters depends entirely on the interface:

InterfaceToleranceWhat 90 ppm does
UART, asynchronousabout 2 to 3 percent totalnothing
CAN busabout 0.5 percentnothing
USB full speed2,500 ppmnothing
USB high speed500 ppmuses a fifth of the budget
Ethernet RMII50 ppm at the PHYfails
RF synthesizer referencedepends on loopmay fail adjacent channel

Ethernet is the one that catches people. An RMII PHY that needs a 50 ppm reference and gets a crystal with 30 ppm tolerance, 30 ppm temperature drift and 20 ppm of load error will not link reliably, and the failure appears as occasional packet loss under temperature rather than a clean no-link.

The ppm budget is a column, not a number

Engineers often compare a crystal's tolerance figure to the interface requirement and stop. The tolerance figure is measured at 25 degrees with the specified load. It is one line in a budget with four or five.

SourceTypical valueNotes
Crystal tolerance at 25 Cplus or minus 10 to 30 ppmthe headline number
Temperature driftplus or minus 10 to 30 ppmover the operating range, from the curve
Load capacitance error0 to 50 ppmyour layout, your capacitors
Aging, first year1 to 5 ppmcumulative, logarithmic
Supply voltage variation1 to 5 ppmsmall but not zero

Add them linearly for a conservative estimate, or root-sum-square if the sources are independent and you want the statistical answer. For a 50 ppm interface, a part with 30 ppm tolerance and 30 ppm temperature swing is already over budget before the load error.

That is the argument for an oscillator instead of a crystal. A packaged oscillator contains the crystal and the circuit, is trimmed at the factory, and specifies the whole error over temperature in one number, typically 20 to 50 ppm. It costs more and takes more board area, and for anything with a tight clock requirement it removes a variable the layout would otherwise control.

Negative resistance and starting

Frequency is the visible specification. Starting is the one that fails in the field.

The oscillator amplifier has a negative resistance, and the crystal needs the loop gain to exceed its losses. The rule of thumb is that the negative resistance should be at least three to five times the crystal's maximum equivalent series resistance over temperature. Below that, the circuit may start at room temperature and fail at minus 20, or start slowly enough that the microcontroller's clock monitor trips.

Negative resistance is reduced by the load capacitors, because they are part of the resonant tank. Larger capacitors for a lower load capacitance target, which is the mistake described earlier, also slow the start and reduce the margin. This is the second reason the capacitor calculation matters.

Measuring it is not hard. Insert a resistor in series with the crystal, increase it until oscillation stops, and the value at which it stops is the negative resistance. Compare that against the crystal ESR from the datasheet, at the temperature you care about, and keep the ratio above three.

Drive level is the other limit. Too much power through a small crystal accelerates aging and can crack the blank. Datasheets give a maximum, often 100 or 500 microwatts for small SMD parts. The oscillator circuit sets the drive, and if the chip has a programmable drive strength, the highest setting is not automatically the right one.

The 32.768 kHz case

Watch crystals are a separate discipline. Frequency is 32,768 Hz, load capacitance is usually 6, 7 or 12.5 pF, and the pullability is tiny, so a capacitor error moves the clock by a fraction of a ppm. Getting the load wrong here does not usually cause a timekeeping error you would notice.

What it does cause is a failure to start. A tuning fork crystal has ESR of 30 to 70 kilo-ohms, sometimes more, and the oscillator is a micropower circuit with limited gain. Oversized load capacitors, contamination on the board, or flux residue across the pins can all stop it. The symptom is a real-time clock that works on the bench and loses time in the field, or one that starts only after the board warms up.

Two practical rules. Keep the crystal and its capacitors as close to the chip as the layout allows, with a guard ground and no signals routed underneath. And clean the board, because the leakage path across a contaminated 32 kHz node is comparable to the crystal impedance.

Crystal or oscillator, and when the difference pays

The two parts do the same job and are priced differently, which makes the choice look simple in the wrong direction.

A crystal costs tens of cents and needs two capacitors, a layout that keeps traces short, and a chip with an oscillator amplifier. A packaged oscillator costs a dollar or two, needs power and a clean ground, and produces a clock without any tuning. For a product built in thousands, the difference is real money.

The case for the oscillator is not the component cost, it is the engineering and the risk. An oscillator specifies total stability over temperature, supply and load in one number, usually 20 to 50 ppm, sometimes 10 for a TCXO. There is no load capacitance to calculate, no negative resistance to verify, no stray capacitance to estimate from a layout that does not exist yet. For a first prototype, or for a design with a tight clock budget, that removes a whole class of failure.

The case for the crystal is where the clock budget is loose. A microcontroller running from its internal PLL, a UART, a low speed bus: none of these care about 60 ppm. A crystal plus two C0G capacitors is the cheapest way to get a stable clock that does not depend on the internal RC oscillator's five percent tolerance.

Places where the oscillator usually wins: Ethernet PHYs with a 50 ppm requirement, USB high speed, RF synthesizers, anything with a clock that leaves the board, and anything where the product will be built by a contract manufacturer who will not measure the load capacitance. Places where the crystal wins: cost-sensitive digital boards, battery devices where the oscillator quiescent current matters, and designs already qualified around a crystal.

Measuring the clock instead of trusting it

Frequency is one of the few parameters a small team can verify completely with a bench instrument, and it is worth doing once per design rather than once per batch.

A frequency counter with 1 ppm accuracy, or a scope with a good time base and a long gate, will show the actual output. Measure at room temperature first, then at the extremes of the operating range. The number to compare against is the interface tolerance, not the crystal tolerance, because the interface is what fails.

Measuring at the crystal itself is harder than measuring the output, because the probe capacitance adds to the load and shifts the frequency as you measure. A FET probe with 1 pF or less is the right tool; a standard 10 pF probe will pull a 8 pF load design by more than 20 percent and the reading will be meaningless.

For a design with a programmable clock output, the simplest check is to route the clock to a pin and measure there. It costs a test point and it turns an invisible parameter into a number on a screen.

The one measurement teams skip is startup at cold. Put the board in a freezer for an hour, power it up, and confirm the clock starts within the time the microcontroller expects. A marginal negative resistance passes every room temperature test and fails the one condition the product will actually see in winter.

Buying the right part

A crystal order needs five attributes, and leaving one out is how a wrong part arrives:

  • Frequency, to six or seven digits, since 14.318 MHz and 14.31818 MHz are not the same part
  • Load capacitance, in picofarads
  • Frequency tolerance at 25 degrees, in ppm
  • Operating temperature range and the drift over it
  • Package and, for tuning fork parts, ESR

The load capacitance is the one most often omitted, because it looks like a detail. It is not a detail. It is the condition under which the frequency is true.

Second-sourcing a crystal is where this bites. A distributor cross-reference may match frequency, package and tolerance and miss the load capacitance, or match all four and miss the temperature range. A 12 pF part substituted for an 8 pF part will oscillate and will be off frequency, and no incoming inspection short of a frequency counter at the right load will catch it.

If a design is sensitive, specify the load capacitance on the bill of materials, not just the frequency. And if a substitute is proposed, ask for its load capacitance before approving it. The two numbers that matter are on the first page of the datasheet, and they are usually read one at a time.

Questions buyers ask

How do I calculate the load capacitors for a crystal?

Start from the load capacitance in the crystal datasheet, subtract the stray capacitance of your layout, typically 3 to 5 pF, and double the remainder. That gives each of the two capacitors, assuming they are equal. So a crystal with 8 pF load and 4 pF stray needs 8 pF on each side, not 16. Using the load capacitance value directly on both sides is the most common error and pulls the frequency low.

What happens if the load capacitance is wrong?

The crystal runs off its nominal frequency by an amount set by its pullability, usually 10 to 30 ppm per picofarad for a small MHz crystal. Two picofarads too much can put you 40 ppm low. For a UART that is harmless. For USB full speed, which allows 2,500 ppm, it is still fine, but for USB high speed at 500 ppm it eats a fifth of the budget before temperature and aging are counted.

Does a 32.768 kHz crystal need different capacitors?

The calculation is the same but the sensitivity is different. A tuning fork crystal has very low pullability, so a picofarad of error moves the frequency by a fraction of a ppm rather than tens. The bigger issue is startup: these crystals have equivalent series resistance in the tens of kilo-ohms, so the oscillator amplifier needs enough gain and the load capacitors must not be so large that they slow the start. Wrong capacitors here usually show up as a clock that fails to start when cold, not as a frequency error.

Can I swap a crystal for one with the same frequency but different load capacitance?

Not without changing the capacitors. A 16 MHz crystal trimmed for 8 pF and one trimmed for 12 pF will both oscillate with the same board, and one of them will be off frequency. If the board cannot be changed, choose the load capacitance that matches the existing circuit, or accept a frequency error and verify it against the interface tolerance. In volume, buying the wrong load capacitance is a rework order.

Related on this site

Who writes this

ICDepo is the component sourcing desk of Shenzhen Weimei World Electronics Co., Ltd. We quote part numbers and whole BOMs out of Huaqiangbei every working day, which is where the examples in these notes come from. If something here does not match what you are seeing in the market, tell us — send a note.

Need a price on parts?

Send a part number or paste a whole BOM. You get USD pricing, available quantity and lead time back by email.

Paste a BOM → Single part RFQ

More sourcing notes

Chat with us