Oscillators: RC phase shift, Wien bridge and crystal

Barkhausen criterion, RC phase-shift and Wien bridge oscillators with amplitude control, LC oscillators, and crystal resonances and Q.

Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Instruments need sine-wave sources to excite sensors: an LVDT or capacitive level probe needs a stable AC carrier, an impedance bridge needs a test tone, and every digital system needs a clock. RC oscillators (phase-shift and Wien bridge) cover the audio range cheaply; crystal oscillators give frequency accuracy of parts per million for clocks, counters and communication. All of them are feedback amplifiers deliberately pushed to the edge of instability.

Key ideas

Barkhausen criterion. An amplifier of gain A with a frequency-selective feedback network β oscillates at the frequency where (1) the total phase shift around the loop is 0° (or 360°) and (2) the loop-gain magnitude |Aβ| = 1. In practice |Aβ| is made slightly greater than 1 so that oscillation starts from noise, and a nonlinearity (amplitude limiting) brings the effective loop gain back to exactly 1 at a stable amplitude. Too much gain causes clipping and distortion; too little and the oscillation dies.

RC phase-shift oscillator. An inverting amplifier (180°) drives a ladder of three identical RC sections that together give another 180° at one frequency. Because the sections load each other, each does not give exactly 60°; analysis of the ladder gives the frequency and shows that the network attenuates by a factor of 29 there, so the amplifier gain must be at least 29. With an op-amp, the third section's resistor can be the inverting amplifier's input resistor, and R_f ≥ 29R. Simple, but the frequency is awkward to tune (three components must change together).

Wien bridge oscillator. A non-inverting amplifier (0°) with a lead-lag network: series R-C feeding a parallel R-C. At f₀ = 1/(2πRC) (equal components) the network's phase is 0° and its gain is exactly 1/3, so the amplifier needs a gain of 3: R_f = 2R₁. Amplitude is stabilised by a nonlinear element in the gain-setting arm, such as a small lamp or PTC/NTC thermistor, back-to-back diodes across part of R_f, or a JFET acting as a voltage-controlled resistor. It gives a low-distortion sine and is easily tuned with a dual-gang potentiometer, so it is the standard audio test oscillator.

LC oscillators (Colpitts, Hartley). For radio frequencies, a tank circuit sets f = 1/(2π√(LC)); Colpitts uses a capacitive divider and Hartley an inductive divider for feedback.

Crystal oscillators. A quartz crystal is piezoelectric: mechanically resonant and coupled to its electrodes. Its equivalent circuit is a series R-L-C (the motional arm) in parallel with the holder capacitance C_m. It has a series resonance f_s (minimum impedance, resistive) and slightly above it a parallel resonance f_p (maximum impedance). Between f_s and f_p the crystal is inductive, and most oscillators (such as the Pierce circuit used with logic gates) operate there. The motional L is huge and R small, so Q reaches 10⁴–10⁶, which is why frequency stability is so good. Temperature still shifts the frequency a little; temperature-compensated (TCXO) and oven-controlled (OCXO) versions reduce this further.

Formulas

|A·β| = 1 and ∠A·β = 0° (360°) — Barkhausen criterion (|Aβ| slightly > 1 to start).

f = 1 / (2π·R·C·√6) — three-section phase-shift oscillator with the usual high-pass ladder (series C, shunt R, equal values); required gain |A| ≥ 29. (The low-pass ladder, series R and shunt C, oscillates at f = √6 / (2π·R·C) with the same gain of 29.)

f₀ = 1 / (2π·R·C) — Wien bridge with equal R and C; required gain A = 1 + R_f/R₁ ≥ 3.

f₀ = 1 / (2π·√(R₁R₂C₁C₂)) — Wien bridge with unequal components.

f = 1 / (2π·√(L·C_eq)) — LC oscillator; Colpitts C_eq = C₁C₂/(C₁ + C₂), Hartley L = L₁ + L₂ (+ 2M).

f_s = 1 / (2π·√(L·C)) — crystal series resonance (motional L in H, C in F).

f_p = f_s·√(1 + C/C_m) — crystal parallel resonance; C_m holder capacitance.

Q = (1/R)·√(L/C) — crystal quality factor; R motional resistance (Ω).

Worked examples

Example 1 (standard: phase-shift oscillator). An op-amp RC phase-shift oscillator uses three high-pass sections (series C, shunt R) with R = 10 kΩ and C = 10 nF. The last R is also the input resistor of the inverting amplifier. Find the frequency and the minimum R_f.

  1. f = 1/(2πRC√6) = 1/(2π × 10⁴ × 10⁻⁸ × 2.449) = 1/(1.539×10⁻³) = 650 Hz.
  2. Minimum gain magnitude is 29: R_f ≥ 29R = 29 × 10 kΩ = 290 kΩ. In practice use a slightly larger value (for example a 330 kΩ or a trimmer) so oscillation starts reliably.

Answer: f ≈ 650 Hz, R_f ≥ 290 kΩ.

Example 2 (GATE level: Wien bridge and crystal). (a) Design a Wien bridge oscillator for 1 kHz using C = 10 nF; choose R₁ = 10 kΩ. (b) A crystal has motional L = 0.1 H, C = 0.01 pF and R = 50 Ω, with holder capacitance C_m = 5 pF. Find f_s, f_p − f_s and Q.

  1. (a) R = 1/(2π·f₀·C) = 1/(2π × 1000 × 10⁻⁸) = 15.9 kΩ (both arms).
  2. Gain must be 3: 1 + R_f/R₁ = 3 → R_f = 2R₁ = 20 kΩ, made slightly larger with an amplitude-stabilising element.
  3. (b) f_s = 1/(2π√(LC)) = 1/(2π√(0.1 × 10⁻¹⁴)) = 1/(2π × 3.162×10⁻⁸) = 5.033 MHz.
  4. f_p = f_s·√(1 + C/C_m) = f_s·√(1 + 0.002) ≈ f_s × 1.001, so f_p − f_s ≈ 5.03 kHz (only 0.1 % above f_s).
  5. Q = (1/R)·√(L/C) = (1/50) × √(0.1/10⁻¹⁴) = 3.162×10⁶/50 = 63 200.

Answer: R ≈ 15.9 kΩ, R_f = 20 kΩ (gain 3); f_s ≈ 5.033 MHz, f_p − f_s ≈ 5.0 kHz, Q ≈ 6.3×10⁴.

Common mistakes

  • Using f = 1/(2πRC) for the phase-shift oscillator; the √6 is essential.
  • Assuming each RC section of the phase-shift ladder gives exactly 60°; loading makes them unequal, which is why the gain requirement is 29 and not 8.
  • Setting the Wien bridge gain to exactly 3 with fixed resistors; component tolerance means it either fails to start or clips.
  • Treating the Barkhausen criterion as sufficient for a clean sine; amplitude control is also required.
  • Confusing the crystal's series and parallel resonances, or forgetting that the crystal is inductive between them.

For GATE IN

Expect frequency and minimum-gain calculations for RC phase-shift and Wien bridge oscillators, Colpitts and Hartley frequencies, crystal f_s, f_p and Q from the equivalent circuit, and conceptual questions on the Barkhausen criterion and amplitude stabilisation. Practise deriving the Wien network's gain of 1/3 at f₀.

Quick check

  1. A Wien bridge uses R = 5 kΩ and C = 200 nF. Frequency?
  2. Minimum gain of an RC phase-shift oscillator?
  3. A Colpitts oscillator has L = 100 µH and C₁ = C₂ = 2 nF. Frequency?
  4. Why does a crystal oscillator drift so little?

Answers: 1. 159 Hz. 2. 29. 3. About 503 kHz. 4. Its Q is extremely high (10⁴–10⁶), so the phase changes very sharply with frequency and the loop can only satisfy the phase condition very close to resonance.

Try answering each one aloud before you open it.

  1. 1.What is an RC phase shift oscillator and how does it work?Concept

    An RC phase shift oscillator is a type of electronic oscillator circuit that uses resistors and capacitors to produce a phase shift necessary for oscillation. It typically consists of an amplifier and a feedback network made up of three or more RC sections. The feedback network provides a phase shift of 180 degrees, and the amplifier provides an additional 180-degree phase shift, resulting in a total phase shift of 360 degrees or 0 degrees, which is necessary for sustained oscillations.

  2. 2.Explain the working principle of a Wien bridge oscillator.Concept

    A Wien bridge oscillator is a type of electronic oscillator that generates sine waves. It uses a Wien bridge network, which is a type of RC network, in its feedback loop. The bridge consists of a series RC network and a parallel RC network. The oscillator achieves frequency stability and low distortion by using a gain control mechanism, often involving a thermistor or a lamp, to maintain the loop gain at unity.

  3. 3.What is a crystal oscillator and why is it used?Concept

    A crystal oscillator is an electronic oscillator circuit that uses the mechanical resonance of a vibrating crystal of piezoelectric material to create an electrical signal with a precise frequency. It is used because of its high frequency stability and accuracy, making it ideal for applications like clocks, radios, and computers where precise timing is crucial.

  4. 4.Why is a phase shift of 360 degrees necessary in an oscillator circuit?Application

    A phase shift of 360 degrees (or 0 degrees) is necessary in an oscillator circuit to satisfy the Barkhausen criterion for sustained oscillations. This criterion states that the total phase shift around the loop must be a multiple of 360 degrees and the loop gain must be equal to one. This ensures that the signal reinforces itself and maintains continuous oscillation.

  5. 5.What happens if the gain in a Wien bridge oscillator is not properly controlled?Application

    If the gain in a Wien bridge oscillator is not properly controlled, the oscillator may produce distorted output signals or fail to oscillate altogether. If the gain is too high, the output may become distorted due to clipping, while if the gain is too low, the oscillator may not start or sustain oscillations. Proper gain control is essential for maintaining low distortion and stable oscillations.

  6. 6.How does temperature affect the frequency stability of a crystal oscillator?Application

    Temperature changes can affect the frequency stability of a crystal oscillator because the physical dimensions and properties of the crystal can change with temperature. This can lead to slight variations in the resonant frequency. However, crystal oscillators are generally more stable than other types of oscillators, and temperature-compensated crystal oscillators (TCXOs) are used in applications requiring high stability over a range of temperatures.

  7. 7.Calculate the frequency of oscillation for an RC phase-shift oscillator (three equal high-pass sections) with R = 10 kΩ and C = 100 nF.Numerical

    For three equal CR sections, f = 1/(2πRC√6). Here RC = 10⁴ × 10⁻⁷ = 1 ms, so f = 1/(2π × 10⁻³ × 2.449) = 1/(0.01539) ≈ 65 Hz. The amplifier must also provide an inverting gain of at least 29 to satisfy the Barkhausen magnitude condition.

  8. 8.What is the role of the feedback network in an RC phase-shift oscillator?Concept

    The three-section RC ladder is the frequency-selective part of the loop. Together the sections give exactly 180° of phase shift at one frequency, f = 1/(2πRC√6) for the usual high-pass ladder, which with the inverting amplifier's 180° makes the 360° the Barkhausen criterion needs. Because each section loads the previous one, the shifts are not 60° each, and at that frequency the network attenuates by 1/29, so the amplifier gain must be at least 29.

  9. 9.Why is a thermistor or lamp used in a Wien bridge oscillator?Application

    A thermistor or lamp is used in a Wien bridge oscillator as a gain control element to stabilize the amplitude of the oscillations. These components provide a non-linear resistance that changes with temperature or current, allowing the oscillator to maintain a constant output amplitude by adjusting the gain dynamically. This helps in reducing distortion and maintaining stable oscillations.

  10. 10.A crystal has a series resonant frequency of 10 MHz and a parallel resonant frequency of 10.01 MHz. At what frequency will an oscillator using it run?Numerical

    It depends on the circuit. A series-mode oscillator uses the crystal as a low-impedance (resistive) element and runs at essentially 10 MHz. Most practical circuits, such as the Pierce oscillator, use the crystal in parallel mode, where it behaves as an inductor between f_s and f_p, so the frequency lies between 10 MHz and 10.01 MHz, set by the specified load capacitance. Either way it is within 0.1 % of f_s and very stable because the crystal's Q is so high.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?