Oscillators
Learning Objectives
By the end of this page, you should be able to:
- Define an oscillator and explain the feedback principle that sustains oscillation
- Distinguish crystal, LC, and RC oscillators by their frequency-determining element and typical stability
- Explain why a crystal oscillator achieves much higher frequency stability than an RC oscillator
- Calculate the resonant frequency of an LC oscillator using f = 1/(2π√(LC))
- Identify the four conditions required for sustained oscillation (gain, feedback, phase, frequency-selective element)
- Describe at least three real-world applications where a specific oscillator type is the natural choice
Quick Answer
An oscillator is a circuit that generates a repetitive waveform — like a sine wave or square wave — entirely on its own, using only a DC power supply as input, with no external signal needed. It does this by taking a fraction of its own output, feeding it back to the input in phase, and amplifying it, creating a self-sustaining loop, as long as the loop gain is at least 1. Different oscillator types use different components to set the frequency: crystal oscillators use a piezoelectric quartz crystal for extremely stable, accurate timing; LC oscillators use an inductor-capacitor resonant tank for tunable radio-frequency signals; RC oscillators use resistor-capacitor timing for simpler, lower-frequency, less precise applications. Oscillators are the heartbeat of nearly every electronic system — from the clock signal driving a microprocessor to the carrier wave of a radio transmitter.
What Is an Oscillator?
An oscillator is a circuit that converts DC power into a repetitive AC output signal without requiring an external AC input signal to trigger each cycle. Unlike an amplifier, which needs a signal at its input to produce an amplified version at its output, an oscillator generates its own signal from noise and feedback.
How Oscillators Work: The Feedback Principle
Every oscillator relies on the same core mechanism:
- An amplifier circuit provides gain.
- A portion of the amplifier's output is fed back to its input through a feedback network.
- A frequency-selective element (like an LC tank, a crystal, or an RC network) ensures that only a specific frequency is fed back in the correct phase to reinforce itself.
- If the loop gain is exactly 1 with the feedback signal in phase with the original (0° or a multiple of 360° phase shift around the loop) — a condition known as the Barkhausen criterion — the circuit sustains continuous oscillation at that frequency.
In practice, oscillation typically starts from tiny random electrical noise present in any circuit. The frequency-selective feedback network reinforces only the component of that noise at the desired frequency, and the amplifier boosts it repeatedly until it grows into a stable, self-sustaining oscillation at a well-defined amplitude (limited by the amplifier's own saturation or a deliberate amplitude-control mechanism).
Types of Oscillators
Crystal Oscillator
Uses a piezoelectric quartz crystal, cut and shaped to mechanically resonate at a very specific, stable frequency. When an electric field is applied, the crystal deforms slightly (the piezoelectric effect); this deformation, in turn, generates an electric charge, and the crystal's mechanical resonance translates into an extremely stable electrical oscillation. Because the crystal's resonant frequency depends on its precise physical dimensions rather than an electrical LC combination (which drifts more with temperature and component tolerance), crystal oscillators achieve very high frequency accuracy and stability — commonly used in wristwatches, computer clock circuits, and communication equipment.
LC Oscillator
Uses an inductor and capacitor forming a resonant tank circuit, whose natural resonant frequency is:
f = 1 / (2π√(LC))
Energy oscillates back and forth between the inductor's magnetic field and the capacitor's electric field at this frequency. LC oscillators are versatile and can be tuned across a range of frequencies by using a variable capacitor or inductor, making them common in radio transmitters and receivers for generating and selecting carrier frequencies. Common LC oscillator topologies include the Hartley oscillator (tapped inductor) and the Colpitts oscillator (tapped capacitor).
RC Oscillator
Uses resistors and capacitors, rather than inductors, to set the timing of oscillation, typically through phase-shift or Wien-bridge feedback networks. RC oscillators are simpler and cheaper to build (no inductor needed) and work well at lower frequencies (audio range), but they are generally less frequency-stable than LC or crystal oscillators, since resistor and capacitor tolerances and temperature drift affect the timing more significantly.
Real-World Example
Inside a smartphone, a small quartz crystal oscillator (often just a few millimeters across) generates the precise clock signal that times every operation of the processor — billions of cycles per second, each one needing to be consistent for the digital logic to function correctly. Even a tiny frequency drift would eventually cause data corruption or communication errors, which is exactly why crystal oscillators, not simpler RC oscillators, are used for critical timing references.
Applications of Oscillators
- Clock generation: Providing the timing reference for microprocessors and digital systems
- Radio communication: Generating carrier waves for transmission and local oscillator signals for reception
- Audio equipment: Generating tone and test signals
- Medical devices: Precise timing references in diagnostic and monitoring equipment
- Radar systems: Generating and timing pulsed signals
Oscillator Feedback Loop
The amplifier and the frequency-selective feedback network form a closed loop. As long as the loop gain around this circuit is at least 1 and the feedback returns in phase with the original signal at one specific frequency, oscillation at that frequency is self-sustaining — the circuit needs no external signal input, only DC power.
Key Terms
| Term | Definition | Related Concept |
|---|---|---|
| Oscillator | Circuit generating a repetitive output signal from DC power with no external AC input | Feedback loop |
| Barkhausen criterion | Condition for sustained oscillation: loop gain ≥ 1, feedback in phase | Oscillator design |
| Crystal oscillator | Oscillator using piezoelectric quartz crystal resonance for high stability | Clock generation |
| Piezoelectric effect | Generation of electric charge from mechanical stress (and vice versa) in certain materials | Crystal oscillators |
| LC oscillator | Oscillator using an inductor-capacitor resonant tank; f = 1/(2π√(LC)) | Radio-frequency generation |
| RC oscillator | Oscillator using resistor-capacitor timing networks | Audio-frequency, low-cost timing |
| Loop gain | Total gain around the feedback loop of an oscillator | Sustaining oscillation |
| Resonant frequency | Frequency at which a tank circuit naturally oscillates most efficiently | LC oscillators |
| Hartley oscillator | LC oscillator topology using a tapped inductor for feedback | LC oscillator design |
| Colpitts oscillator | LC oscillator topology using a tapped capacitor for feedback | LC oscillator design |
Common Mistakes
Misconception: An oscillator needs an external AC signal at its input to produce an output. Why it's wrong: An oscillator's defining feature is that it generates its own repetitive signal from DC power alone, starting from tiny random noise and building up through positive feedback — no external AC signal source is required, unlike an amplifier. Correct understanding: Distinguish oscillators (self-generating) from amplifiers (require an input signal to amplify); oscillators only need a DC supply to start producing an AC output.
Misconception: Any RC or LC combination will automatically produce oscillation if you just power it up. Why it's wrong: Oscillation requires the Barkhausen criterion to be satisfied: sufficient loop gain (at least 1) and the correct phase relationship (feedback signal in phase with the original) at the resonant frequency. Simply having resistors, capacitors, or inductors present in a circuit does not guarantee these conditions. Correct understanding: Oscillator design must deliberately arrange gain and feedback phase to meet the Barkhausen criterion — the frequency-selective network alone isn't sufficient without the right amplifier gain and feedback path.
Misconception: All oscillator types provide roughly the same frequency stability, so the choice is purely about cost. Why it's wrong: Crystal oscillators achieve stability of a few parts per million or better because the resonance depends on the crystal's fixed mechanical dimensions. RC oscillators can drift by much larger percentages due to component tolerance and temperature sensitivity of resistors and capacitors. Correct understanding: Choose the oscillator type based on required stability: crystal oscillators for precision timing, LC oscillators for tunable RF applications, RC oscillators for simple, low-cost, less-critical timing needs.
Comparison and Connections
| Feature | Crystal Oscillator | LC Oscillator | RC Oscillator |
|---|---|---|---|
| Frequency-setting element | Quartz crystal (mechanical resonance) | Inductor + capacitor tank | Resistor + capacitor network |
| Typical stability | Very high (ppm-level) | Moderate | Lower |
| Typical frequency range | kHz to hundreds of MHz | kHz to GHz (RF) | Hz to low MHz (audio range) |
| Tunability | Fixed (or very limited) | Easily tunable | Easily tunable |
| Common use | Clocks, precision timing | Radio transmitters/receivers | Audio tone generation, simple timers |
Practice Questions
Recall
-
What condition (name it) must be satisfied for an oscillator to sustain continuous oscillation? Answer guidance: The Barkhausen criterion — loop gain of at least 1, with the feedback signal in phase with the original at the oscillation frequency.
-
What physical effect allows a quartz crystal to generate a stable electrical oscillation? Answer guidance: The piezoelectric effect — mechanical deformation of the crystal generates an electric charge, and applying an electric field causes mechanical deformation, allowing the crystal's precise mechanical resonance to set a stable electrical frequency.
Understanding
-
Why does an oscillator not need an external signal source, unlike an amplifier? Answer guidance: An oscillator starts from inherent electrical noise in the circuit and uses positive feedback through a frequency-selective network to build that noise up into a sustained signal at a specific frequency — the amplifier's own gain and feedback loop generate the signal, rather than amplifying an externally supplied one.
-
Why is a crystal oscillator more frequency-stable than an RC oscillator? Answer guidance: A crystal's resonant frequency depends on its fixed mechanical dimensions and material properties, which are very stable over temperature and time. An RC oscillator's frequency depends on resistor and capacitor values, which have manufacturing tolerances and change more with temperature, causing greater frequency drift.
Application
-
An LC oscillator uses L = 5 µH and C = 200 pF. What is its resonant frequency? Answer guidance: f = 1/(2π√(LC)) = 1/(2π√(5×10⁻⁶ × 200×10⁻¹²)) = 1/(2π√(1×10⁻¹⁵)) ≈ 5.03 MHz.
-
A design needs a very precise 32.768 kHz timing reference for a real-time clock in a wristwatch. Which oscillator type would you use, and why is that particular frequency common? Answer guidance: A crystal oscillator, for its high frequency stability over time and temperature. 32.768 kHz is chosen because it is 2^15 Hz, so simple binary digital counters can divide it down to exactly 1 Hz for timekeeping.
Analysis
-
Compare the frequency stability implications of using an LC oscillator versus a crystal oscillator in a radio transmitter that must stay within a narrow allocated frequency band. Answer guidance: An LC oscillator's frequency depends on inductor and capacitor values that can drift with temperature and aging, risking drift outside the allocated band over time or in varying conditions. A crystal oscillator (or a crystal-referenced frequency synthesizer) provides much tighter, more stable frequency control, which is why most modern radio transmitters use crystal references even if the actual RF frequency is generated or multiplied electronically afterward.
-
A student builds an RC phase-shift oscillator and finds it doesn't oscillate at all, even though the components seem correctly connected. What are two possible reasons based on the Barkhausen criterion? Answer guidance: (1) Insufficient loop gain — the amplifier's gain might not be high enough to overcome losses in the feedback network, so the loop gain is below 1. (2) Incorrect phase relationship — if the feedback network doesn't provide the correct total phase shift (typically 180° from the RC network plus 180° from an inverting amplifier stage for a total of 360°), the feedback will be out of phase and cancel rather than reinforce the signal.
FAQ
Why do computers use crystal oscillators instead of simpler RC oscillators for their clock signal? A computer's digital logic depends on an extremely consistent, precise clock frequency; even small drift or jitter can cause timing errors between components expecting synchronized signals. Crystal oscillators provide the necessary stability (often specified in parts per million), which RC oscillators, with their larger component tolerances and temperature sensitivity, cannot reliably match.
Can an oscillator's frequency change over time or with temperature? Yes, to varying degrees depending on the type. Crystal oscillators drift the least (often a few parts per million per degree Celsius), LC oscillators drift more due to inductor and capacitor temperature coefficients, and RC oscillators drift the most, since both resistors and capacitors have temperature-dependent tolerances that directly affect the RC time constant setting the frequency.
What does it mean for an oscillator circuit to "start" oscillating? At power-up, there is no signal yet — oscillation begins from tiny, random electrical noise always present in any circuit (thermal noise, power supply transients). The frequency-selective feedback network amplifies the component of this noise at the target frequency more than any other, and repeated passes around the loop grow this small signal into a full, stable oscillation within a very short time, often microseconds to milliseconds.
Why do LC oscillators eventually stabilize at a fixed amplitude instead of growing forever? As the oscillation amplitude grows, the amplifier eventually reaches its limits (power supply rails, transistor saturation, or a deliberate automatic gain control circuit), which effectively reduces the gain at larger amplitudes. This naturally settles the loop gain to exactly 1 at a stable, self-limiting amplitude rather than growing indefinitely.
Is a crystal oscillator the same as a crystal (like the one used in radios)? The physical crystal itself (usually cut quartz) is just the frequency-determining component — it needs to be combined with an amplifier and feedback circuit (often built into the same small oscillator package or IC) to actually produce a continuous electrical oscillation. On its own, a bare crystal doesn't generate a signal; it only resonates mechanically when driven electrically.
Quick Revision
- An oscillator generates a repetitive AC signal from DC power alone, with no external AC input
- Sustained oscillation requires the Barkhausen criterion: loop gain ≥ 1, feedback in phase
- Crystal oscillators use quartz's piezoelectric effect for very high frequency stability
- LC oscillators use resonant tank circuits; f = 1/(2π√(LC)); good for tunable RF applications
- RC oscillators use resistor-capacitor timing; simple and cheap, but less stable, best for audio-range signals
- Hartley and Colpitts are common LC oscillator topologies (tapped inductor vs. tapped capacitor feedback)
- Oscillation starts from random electrical noise, amplified selectively by the feedback network
- Amplifier saturation or automatic gain control naturally limits oscillation amplitude
- Frequency stability ranking (best to least): crystal > LC > RC
- Oscillators provide clock signals, radio carrier waves, and timing references across electronics
Related Topics
Prerequisites: Inductors and capacitors (LC resonance); transistors (amplifier stage); feedback concepts
Related Topics: Inductors (resonant tank circuits); transistors (active gain element); integrated circuits (oscillator ICs, clock generators)
Next Topics: Sensors; digital clock and timing circuits; radio-frequency circuit design; phase-locked loops