Marcio Cunha

How to test a quartz crystal oscillator with an oscilloscope

Learn how to diagnose clock failures in microcontrollers using an oscilloscope. A practical guide to verifying crystal resonance on your workbench.

Marcio Cunha•3 min
Also available in:PortuguêsEspañol
Summary
  • Quartz crystals often fail due to physical impact or cold solder joints.
  • The probe must be connected carefully to avoid parasitic capacitance issues.
  • The oscilloscope must have sufficient bandwidth to capture the crystal's fundamental frequency.
  • Distorted waveforms or lack of amplitude suggest failure in the resonance stage.
  • Oscilloscope testing complements our guide on how to test a crystal with a multimeter .

Why an oscilloscope is essential for testing crystals

When a microcontroller refuses to boot, the culprit often lies in the clock signal. The quartz crystal oscillator is the 'heart' of the system, providing the necessary timing base for the processor to execute instructions. Unlike a simple continuity check, testing with a multimeter cannot validate if the crystal is oscillating at the correct frequency or with sufficient amplitude. An oscilloscope allows you to visualize the real waveform, revealing issues such as signal distortion, excessive noise, or a lack of resonance.

The probe capacitance trap

When measuring a crystal, you are dealing with an extremely sensitive circuit. The input capacitance of your oscilloscope's probe can easily 'load' the crystal, causing it to stop oscillating or drastically changing its operating frequency. In practice, this means that touching the probe to the terminal can disrupt the circuit simply due to the instrument's presence. Always use probes in 10x mode to minimize this unwanted effect, preserving the signal integrity you want to observe.

Preparing the workbench for measurement

Before connecting the oscilloscope, ensure that the probe's ground (GND) is connected to a common reference point on the board. Never attempt to measure the crystal using the probe alone without a solid mass return, as the picked-up noise will be much greater than the clock signal itself. If the board is complex, similar to when we looked at testing a PWM circuit with an oscilloscope, ensure cables are organized to avoid electromagnetic interference (EMI).

Measurement procedure step by step

  1. Set the oscilloscope to a time scale compatible with the crystal's frequency (e.g., for a 16MHz crystal, use a time base of 50ns/div).
  2. Position the probe (set to 10x) on one of the crystal pins, preferably the output or 'OSC_OUT' pin, as the input pin usually carries an attenuated signal.
  3. Observe the resulting waveform on the screen; it should be a clean sine wave or, depending on the processor's input impedance, a defined trapezoidal wave.
  4. Check the peak-to-peak amplitude (Vpp); if it is below 1V in 3.3V systems, there may be a gain failure in the internal inverter circuit of the processor.
  5. If there is no signal at all, inspect the crystal traces to ensure there are no cold solder joints or shorted load capacitors (the small ceramic capacitors next to the crystal).

Interpreting results on the screen

A healthy clock signal should be stable and constant. If you notice that the frequency is constantly varying (jitter) or that the waveform 'jumps' on the screen, there is a high chance that the load capacitors are not sized correctly or are damaged. Remember that replacing the crystal alone often does not solve the problem if the neighboring capacitors have leakage, as they are essential to maintain resonance stability. To explore these architectural concepts further in production, see our related technical analysis on Network slow? How to find packet loops with Wireshark.

Final considerations

Testing a crystal with an oscilloscope is an indispensable skill for any technician. By mastering the technique of minimizing load capacitance and interpreting the waveform, you gain the ability to diagnose issues that would be invisible to simpler tools. Always maintain precision in the connection and care with the instrument's scale to ensure that what you see on the screen is the circuit's actual behavior and not a measurement artifact.