Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.1 Join the beta Download soon

Calculators Parts

Crystal load capacitor calculator

A crystal is specified for a load capacitance CL. The oscillator sees the two capacitors in series plus the stray capacitance of the board and the pins: CL = C1 C2 / (C1 + C2) + Cstray, so with equal capacitors each is 2 (CL − Cstray).

The calculator also turns the tolerance in ppm into hertz, gives the pulling from the motional capacitance, and the critical transconductance gm,crit = 4 ESR (2πf)² (C0 + CL)² that the oscillator amplifier must beat. These follow the crystal makers' application notes (Abracon, NXP AN2867, Epson).

The calculator

The app's own calculator window, built from the BetterSPICE 0.8.1 source. What needs a schematic is greyed out here: placing the circuit, running it, applying values to parts and picking parts from the library. Open it in its own window.

The formulas it uses

These are the formulas the calculator shows, copied from its source code. The results in the window above come from the same code as the app.

Formulas

  • CL = C1 · C2 / (C1 + C2) + Cstray
  • C1 = C2 = 2 · (CL − Cstray)
  • Δf = (f · ppm) / (106)
  • pulling = Cm / (2 · (C0 + CL)2)
  • gmcrit = 4 · ESR · (2π f)2 · (C0 + CL)2

Sources. Crystal makers' application notes (Abracon, NXP AN2867, Epson): CL = C1 C2 / (C1 + C2) + Cstray, pulling from the motional capacitance, critical transconductance 4 ESR (2 pi f)^2 (C0 + CL)^2.

Simple and Advanced

Simple is the main values, one set of results and a plot. Advanced is the full design view: the operating range with its corners, tolerance and temperature, checks with their margin (a green tick, an amber warning or a red cross), the parts to order with the ratings they need, warnings that give the fact, the number and the fix, and plots over the whole range. A value typed in one view is the same in the other.

In the app it also places the circuit and checks it

With parts selected, Apply to the selected parts writes the result into them, as one undo step.

The last tab of the Advanced view, Verify in simulation, places the calculator's circuit and runs it, with measurements whose pass limits are the calculator's own numbers. A row the simulator cannot check says so and why. More in the manual: Crystal load capacitors.