How Does a Crystal Oscillator Work? XTAL Oscillator Basics

FCom quartz timing components marked 40.000 and 8.000 on a circuit board with a signal waveform

Timing fundamentals

A practical guide to quartz resonance, clock generation and choosing the right timing device.

A crystal oscillator uses a quartz resonator and a powered electronic circuit to generate a repeating electrical signal. The quartz helps determine the frequency; the active circuit supplies the energy needed to sustain oscillation.

Quartz crystals and crystal oscillators

An oscillator converts supply energy into a periodic waveform used for clocks, timing references or signal generation.

A quartz crystal, also called a crystal unit or XTAL, is a passive resonator. It needs an active oscillator circuit, which may be built into a microcontroller or provided separately. A packaged crystal oscillator combines the resonator and active circuitry into a clock source.

Two components with different roles
Component What it provides What the board must provide
Quartz crystal A frequency-selective resonator A compatible oscillator circuit and its required external components
Crystal oscillator A clock output from an integrated resonator and circuit The specified supply, decoupling and output interface

Identify the component from its datasheet and pin functions, not package size alone.

How a crystal oscillator starts and operates

Quartz is piezoelectric: mechanical stress creates electrical charge, and an applied electric field creates mechanical deformation. Alternating electrical excitation can therefore drive mechanical vibration. Near a resonant mode, the crystal responds strongly and helps select the operating frequency.

The resonator does not generate energy. Its losses must be replenished by the surrounding circuit. In the feedback model, the amplifier and frequency-selective network form a closed loop.[1]

  1. A small disturbance starts the process. Noise and power-up transients provide an initial signal.
  2. The loop reinforces a suitable frequency. Around the intended operating point, the phase relationship supports positive feedback and small-signal loop gain is sufficient for amplitude to grow.
  3. The amplitude settles. Circuit nonlinearities or amplitude control limit further growth, allowing a steady oscillation.
  4. The signal is delivered to the load. An oscillator module uses output circuitry to provide its specified waveform and drive capability.

A common implementation is the Pierce oscillator, which uses an inverting amplifier and a crystal feedback network. Many microcontrollers contain the amplifier, while the crystal and some loading components remain external. The exact circuit should follow the processor manufacturer’s recommendations.

What determines the oscillation frequency?

Timing crystals commonly use synthetic quartz, cut, shaped, fitted with electrodes and sealed in a package. The cut, dimensions and vibration mode set its resonant characteristics. AT-cut and SC-cut describe crystal orientations, not oscillator output types. High quality factor (Q) indicates low energy loss relative to stored energy and helps provide sharp frequency selectivity. Circuit loading also affects the operating frequency.

Resonance and the equivalent circuit

A common electrical model represents mechanical vibration with a series resistance, inductance and capacitance, called the motional branch. A parallel capacitance represents the electrodes and package. This model explains why a crystal has both series resonance and a nearby parallel antiresonance.

For a crystal specified at a load capacitance, the marked frequency refers to that loaded condition. Confirm the specified resonance mode and load capacitance when selecting or replacing a crystal.

Load capacitance in a Pierce circuit

For two external capacitors connected from the crystal terminals to ground, a useful first approximation is:[2]

CL ≈ (CA × CB) / (CA + CB) + Cstray

Here, Cstray is the effective contribution of pin and board capacitances in this simplified model. It is not the crystal’s shunt capacitance. Account separately for any integrated, programmable load capacitors.

Illustrative example: if the required load is 12 pF and the estimated effective stray contribution is 2 pF, equal external capacitors would initially be 20 pF each: 20 × 20 ÷ 40 + 2 = 12 pF. Confirm the final values against IC requirements and board measurements.

Verify frequency, startup and drive level on the actual board. Copying load capacitors from another design can change both frequency and operating margin.

Understanding XO, TCXO, VCXO and OCXO

These names describe different ways of generating, adjusting or stabilizing a crystal-based clock. The appropriate type depends on the system’s stability, tuning, power and startup requirements.[3]

Common oscillator categories
Type Main function Selection consideration
XO / SPXO Provides a nominally fixed-frequency clock Check stability, output format, supply and power
TCXO Temperature-compensated: reduces frequency variation with temperature Check the specified temperature range and frequency-error limits
VCXO Voltage-controlled: adjusts frequency through a control voltage Check tuning range, control characteristics and noise
OCXO Oven-controlled: stabilizes temperature using a heated enclosure Allow for warm-up, supply demand and thermal conditions

A VCXO’s tuning function does not by itself guarantee temperature compensation. Likewise, an OCXO’s temperature control does not make every model suitable for every low-jitter application. Compare the actual specifications.

Other options include RC timing circuits, tunable LC oscillators and MEMS devices with micromachined resonators. Ceramic resonators can suit designs with looser frequency tolerances. Compare accuracy, noise and power specifications for the intended application.

Frequency accuracy, phase noise and jitter

A nominal frequency such as 10 MHz tells you the target repetition rate. It does not describe every source of error. Initial tolerance, temperature behavior and aging affect frequency accuracy, while phase noise and jitter describe short-term fluctuations.

Frequency offset is commonly expressed in parts per million:

Frequency error (ppm) = [(f − fnominal) / fnominal] × 106

At 10 MHz, a 10 ppm offset equals 100 Hz. A clock with a constant 10 ppm timing-rate error accumulates approximately 0.864 seconds of error per day. This example excludes temperature changes, aging and any system correction.

Check what a datasheet’s stability figure includes before combining limits. Adding aging or initial tolerance to a specification that already includes those terms would double-count them. For jitter comparisons, use the same measurement definition and integration bandwidth.

Where quartz timing is used

  • Real-time clocks: 32.768 kHz is convenient because division by 215 produces 1 Hz.
  • Embedded systems: a reference clock supports processor timing, communication interfaces and scheduled operations.
  • Wireless equipment: a reference helps synthesizers establish transmit and receive frequencies.
  • Networking and measurement: clock stability and noise influence synchronization, data conversion and signal integrity.

A crystal reference may feed a PLL or clock generator, so the final system clock is not necessarily the crystal’s own resonant frequency. Each clock stage contributes to overall performance.

Practical checks before selecting a device

Start with the receiving circuit: does it require a passive crystal on oscillator pins, or an external clock signal? Then define the frequency, operating environment and acceptable clock error.

  • For a crystal: match frequency, vibration mode, load capacitance, ESR and permitted drive level to the oscillator circuit.
  • For an oscillator module: confirm supply voltage, output standard, load, enable behavior and startup requirements.
  • For either approach: check temperature limits, package, lifecycle and the accuracy or noise requirements of the end product.

Keep a discrete crystal and its load capacitors close to the oscillator pins, with short connections and separation from noisy signals. Follow the IC vendor’s layout guidance; a board change can alter parasitic loading.

If oscillation is slow or intermittent, check configuration, supply behavior, loading, ESR compatibility and drive level before changing components. Prefer a buffered clock output for measurement where available: probing a sensitive crystal node can disturb the circuit.

For a quotation, include frequency, package, temperature range, stability, supply, output, qualification requirements and quantity. Compare total circuit cost, including external components and validation.

Common questions

Does a quartz crystal oscillate with only a DC supply?

No. A sustained clock needs an active circuit that continually supplies energy with the appropriate feedback. A bare crystal is not a powered clock generator.

Are XTAL and XO the same thing?

XTAL usually refers to a crystal resonator; XO commonly refers to a crystal oscillator. Naming varies, so use the datasheet and pinout to identify the part.

Can I replace a crystal with another of the same frequency?

Frequency alone is insufficient. Load capacitance, ESR, vibration mode, drive rating and package compatibility also matter. Validate the replacement in the intended circuit.

Is the output always a sine wave?

No. The waveform at a resonator node differs from a buffered oscillator output. A module may provide CMOS, a differential format or a clipped sine output, as specified in its datasheet.

FCom timing device support
For product selection and technical inquiries, share your target frequency, operating temperature, supply voltage and interface requirements with our team at FCom@fujicrystal.com.

Technical references

  1. Microchip AN826 — Crystal Oscillator Basics and Crystal Selection .
  2. STMicroelectronics AN2867 — Guidelines for oscillator design .
  3. NDK — Crystal and oscillator terminology .

Share:

Suggested Content:

Drag & Drop Files, Choose Files to Upload

Contact Us Anytime

Drag & Drop Files, Choose Files to Upload

Contact Us Anytime

Drag & Drop Files, Choose Files to Upload