Clock correlation between active crystal oscillators, passive crystal oscillators and MCUs

The clock system serves as the core for stable operation of microcontrollers (MCUs). As a critical component of clock sources, crystal oscillators are categorized into two types: passive crystals (Crystal) and active oscillators (Oscillator). This analysis systematically explores the interrelationship between these two oscillator types and MCUs from multiple dimensions, including working principles, hardware interfaces, electrical characteristics, and MCU application scenarios.

 

一、Logical Association Between Passive Crystal Oscillator and MCU

1. Core Definitions and Working Principles

A passive crystal oscillator (quartz crystal resonator) is a purely passive device without built-in oscillation circuitry. It generates oscillation signals solely through the resonant properties of quartz crystals and requires driving from the MCU's on-chip oscillator (OSC) to produce sine wave outputs.

2. Hardware interface with MCU

Pin configuration: Typical 2-pin configuration (no polarity), no power pin, and two ground pins.

Connection method: Directly connect to the MCU's OSC_IN (XI) and OSC_OUT (XO) clock pins.

Peripheral configuration: Two load capacitors (CL) must be connected in series and grounded, with capacitance values matching the crystal oscillator's load parameters. Otherwise, insufficient negative impedance may cause failure to start oscillation or frequency deviation.

3. Electrical and Compatibility Characteristics

Internal MCU circuitry: The inverter and feedback resistor within the MCU form a complete oscillation circuit, while the crystal oscillator only provides the resonant frequency.

Power consumption and cost: With no independent power supply, it features extremely low power consumption and low cost, making it the mainstream clock solution for MCUs.

Frequency range: Designed for medium and low-frequency applications, commonly supporting 8MHz, 12MHz, and 16MHz (system clock) and 32.768kHz (RTC real-time clock).

4. Advantages and Limitations

Key advantages: low cost, low power consumption, simple circuit design, and compatibility with most general-purpose MCUs.

Limitations: Weak anti-interference capability, slow vibration initiation speed, and frequency stability affected by peripheral capacitors and wiring, making it unsuitable for ultra-high-speed and high-reliability scenarios.

 

二、Logical Association Between Active Crystal Oscillator and MCU

1. Core Definitions and Working Principles

An active crystal oscillator (quartz crystal oscillator) is an integrated active device that incorporates a quartz crystal, oscillation circuit, amplification circuit, and voltage regulation circuit. Upon power supply, it can independently output a stable clock waveform without requiring external driver circuits from the MCU's internal oscillator.

2. Hardware interface with MCU

Pin configuration: Standard 4-pin (OE, GND, OUT, VDD)

Connection method: Connect the OUT pin directly to the MCU's external clock input pin (CLK_IN/EXT_CLK).

Peripheral components: Only requires simple power filtering with minimal circuitry.

3. Electrical and Compatibility Characteristics

Independent operation: Does not rely on the MCU's internal circuitry, directly outputs a standard voltage-level clock signal.

Stability: Featuring built-in voltage regulation and amplification circuits, it demonstrates superior interference resistance, with frequency accuracy and temperature stability far exceeding those of passive crystal oscillators.

Frequency range: Supports high-frequency output (10MHz~100MHz+), compatible with high-speed MCUs, RF applications, and high-precision timing scenarios.

4. Advantages and Limitations

Advantages: Fast startup, high stability, strong anti-interference capability, and excellent high-frequency support.

Limitations: Requires independent power supply, higher power consumption compared to passive crystal oscillators, and consequently higher costs.

三、Guide to MCU Clock Scheme Selection

1. Priority scenarios for passive crystal oscillators:

Low-cost, low-power embedded projects (51 microcontrollers, STM32 general-purpose applications, small household appliances, sensor nodes); medium-low frequency clock requirements (≤50MHz); RTC real-time clock (32.768kHz); space-efficient and simplified wiring circuit designs (YXC recommended series YST310S, YSX211SL, YSX321SL, etc.).

2. Priority scenarios for active crystal oscillators

High-speed MCU operation (clock frequency ≥100MHz); industrial control, automotive electronics, medical equipment, and other high-interference, high-reliability scenarios; RF modules (WiFi, Bluetooth, LoRa), high-precision timing, and communication synchronization scenarios; systems with stringent requirements for frequency accuracy and temperature stability. (Recommended series by YXC: YSO110TR, YSO131LR, YSO120TK, etc.)

 

四、Design Considerations

Passive crystal oscillator: The load capacitor must match the oscillator specifications. The OSC_IN/OSC_OUT traces should be kept as short as possible and kept away from interference sources. Cross-clock-domain routing is strictly prohibited.

Active crystal oscillator: Ensure stable power supply and consider adding a filter capacitor. Connect the output pin directly to the MCU clock input.

MCU configuration: For passive crystals, enable internal oscillator mode; for active crystals, configure them as external clock input mode.

 

五、Summary

Passive and active crystal oscillators represent two core solutions for MCU clock systems. Passive oscillators utilize internal MCU circuits to deliver low-cost, low-power clock signals, making them the preferred choice for general applications. Active oscillators operate independently, offering enhanced stability and high-frequency performance to meet demanding high-end requirements. The key distinction between these two types lies in their reliance on internal oscillation circuits. During design, comprehensive consideration of cost, power consumption, stability, and frequency specifications is essential to ensure stable and reliable MCU system operation.