Skip to content
UPEEC

Crystal Oscillators

Quartz crystals vibrate at an extremely stable frequency — the clock of every microcontroller.

Intermediate
Comments 0

A quartz crystal is piezoelectric: it behaves electrically like an LC circuit with a very high quality factor (Q of 10⁴–10⁶), so its frequency is precise to tens of ppm.

Microcontrollers use a Pierce oscillator: the crystal plus two load capacitors to ground. Calculate them from the crystal's load capacitance CLC_L:

CL=C1C2C1+C2+Cstray⇒C1=C2≈2(CL−Cstray)C_L = \frac{C_1 C_2}{C_1 + C_2} + C_{stray} \quad\Rightarrow\quad C_1 = C_2 \approx 2(C_L - C_{stray})

with CstrayC_{stray} ≈ 2–5 pF. A 32.768 kHz crystal (2152^{15} Hz) runs real-time clocks: divide by two 15 times to get exactly 1 Hz.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.