Interview questions & answers
Q1. What is the Barkhausen criterion and what conditions must be satisfied for sustained oscillation?
The Barkhausen criterion states that for a circuit to sustain oscillations, the loop gain magnitude must equal exactly 1 (|Aβ| = 1) and the total phase shift around the loop must be 0° or a multiple of 360°, so feedback is purely in phase (positive feedback). In a Wien bridge oscillator with TL071, the RC network provides exactly zero phase shift at f = 1/(2πRC), and the amplifier gain is set to exactly 3 to make Aβ = 1 at that frequency. In practice, gain is started slightly above 1 to ensure oscillation builds up from noise, then an AGC or lamp limits amplitude to bring loop gain back to unity.
Follow-up: What happens if the loop gain is greater than 1 at the oscillation frequency?
Q2. Explain the Wien bridge oscillator and its frequency of oscillation.
The Wien bridge oscillator uses an RC lead-lag network in the positive feedback path that provides zero phase shift at f = 1/(2πRC), combined with a non-inverting amplifier with gain = 3 (R2 = 2R1) to satisfy Barkhausen criterion. With R = 16 kΩ and C = 10 nF, oscillation frequency = 1/(2π × 16kΩ × 10nF) ≈ 995 Hz. The classic Wien bridge uses a tungsten lamp as the gain-setting element in R1 — its positive temperature coefficient automatically reduces gain when amplitude increases, providing elegant AGC without additional circuitry.
Follow-up: Why must the amplifier gain be exactly 3 and not 2.9 or 3.1 for the Wien bridge?
Q3. What is a Colpitts oscillator and how does it differ from a Hartley oscillator?
A Colpitts oscillator uses a capacitive voltage divider (two capacitors C1, C2 in series across the inductor) in the LC tank circuit to feed back the right fraction of the oscillation voltage to the transistor base. The Hartley oscillator instead uses an inductive voltage divider (tapped inductor or two inductors) with a single capacitor. In a 10 MHz Colpitts using a JFET (2N3819) with L = 10 µH and C1 = C2 = 100 pF (series equivalent 50 pF), fo = 1/(2π√(LC)) = 1/(2π√(10µ × 50p)) ≈ 7.1 MHz. The Colpitts is preferred at high frequencies because capacitors are more ideal than tapped inductors above 10 MHz.
Follow-up: What determines the feedback fraction in a Colpitts oscillator?
Q4. What is a crystal oscillator and why does it have superior frequency stability?
A crystal oscillator uses a piezoelectric quartz crystal as a highly resonant mechanical-electrical element with quality factor Q exceeding 10,000–100,000, giving frequency stability orders of magnitude better than RC or LC oscillators. A 10 MHz AT-cut quartz crystal like the HC-49U has frequency stability of ±30 ppm over 0–70°C temperature range and aging of <5 ppm/year, compared to ±1% (10,000 ppm) for an RC oscillator. In microcontroller clock generation (STM32, Arduino), a 16 MHz crystal ensures accurate timing for UART, I2C, and USB protocols where even ±2% frequency error would cause communication failure.
Follow-up: What is the equivalent circuit model of a quartz crystal?
Q5. What is phase noise in an oscillator and why is it important in communication systems?
Phase noise is the short-term random frequency fluctuation of an oscillator's output, appearing on a spectrum analyzer as 'noise skirts' around the carrier frequency, specified in dBc/Hz at a given offset from the carrier. The RV-8564-C3 RTC oscillator has phase noise of -140 dBc/Hz at 10 kHz offset, while a cheap RC oscillator might show -80 dBc/Hz. In a GSM receiver, the local oscillator's phase noise at 200 kHz offset (channel spacing) directly determines how much adjacent channel interference appears in the desired channel — poor phase noise in the LO means strong adjacent channels swamp the weak desired signal.
Follow-up: What is the relationship between oscillator Q factor and phase noise?
Q6. What is the difference between a free-running and a synchronized oscillator?
A free-running oscillator determines its own frequency based on its internal RC, LC, or crystal elements without external reference, while a synchronized (injection-locked) oscillator or a PLL-based oscillator locks its frequency to an external reference. A 555 timer astable circuit running at 1 kHz is free-running and drifts ±1% with temperature; a PLL using a 32.768 kHz crystal reference (as in the DS3231 RTC) generates any desired output frequency locked to crystal accuracy. In frequency synthesizers for mobile phones, PLLs generate GHz carrier frequencies locked to a MHz TCXO reference, combining frequency agility with crystal stability.
Follow-up: What is a phase-locked loop (PLL) and what are its key components?
Q7. Explain the RC phase shift oscillator and calculate its frequency.
An RC phase shift oscillator uses a cascade of three RC networks, each providing 60° phase shift at the oscillation frequency, to create a total of 180° phase shift that combined with the 180° inversion of a CE amplifier gives the required 360° loop phase. Each RC section contributes 60° when f = 1/(2π√6 × RC); with R = 10 kΩ and C = 10 nF: fo = 1/(2π × 2.449 × 10k × 10n) = 650 Hz. The minimum amplifier gain required to sustain oscillation is 29 (|Av| ≥ 29), which is why the CE amplifier in this design must have sufficient collector resistance to achieve this gain.
Follow-up: Why must the minimum gain be exactly 29 for the RC phase shift oscillator?
Q8. What is a voltage-controlled oscillator (VCO) and how is it used in a PLL?
A VCO is an oscillator whose frequency is controlled by an applied control voltage, implemented using varactor diodes that change the LC tank capacitance or by current-controlled ring oscillators in CMOS. The MAX2622 VCO covers 855–915 MHz with Kv = 35 MHz/V tuning sensitivity, used as the frequency-agile element in Bluetooth frequency hopping synthesizers. In a PLL, the VCO output frequency is divided, compared to the reference in a phase detector, and the resulting error voltage fed back to the VCO control input — pulling the VCO to phase-lock to the reference and stay locked despite temperature or supply variations.
Follow-up: What is VCO gain (Kv) and how does it affect PLL bandwidth?
Q9. What is a relaxation oscillator and give a practical example?
A relaxation oscillator generates non-sinusoidal waveforms (square, triangle, or sawtooth) by charging and discharging an RC circuit between two threshold levels, with the switching action provided by a comparator or Schmitt trigger. The 555 timer in astable mode with R1 = 10 kΩ, R2 = 10 kΩ, and C = 100 nF generates a square wave at f = 1.44/((R1 + 2R2)×C) = 1.44/(30k × 100n) ≈ 480 Hz with ~67% duty cycle. Unlike sinusoidal oscillators, relaxation oscillators are simple to implement, produce logic-compatible outputs, and are widely used for timing in microcontroller peripheral circuits and power supply switching.
Follow-up: How do you set the duty cycle of a 555 astable to exactly 50%?
Q10. What is an astable multivibrator and how does it work?
An astable multivibrator is a two-transistor regenerative switching circuit with no stable state — it continuously switches between two quasi-stable states based on capacitor charge-discharge timing, generating a square wave output. With BC547 transistors, R = 47 kΩ and C = 10 µF, the oscillation period T = 1.38 × R × C = 1.38 × 47k × 10µ ≈ 649 ms, giving about 1.54 Hz oscillation. Each transistor alternately saturates and cuts off, with the capacitor that was charging through the collector resistor now discharging through the base resistor to turn on the previously off transistor.
Follow-up: What determines the rise and fall times of the output square wave of an astable multivibrator?
Q11. What is frequency stability in an oscillator and what factors affect it?
Frequency stability is the ability of an oscillator to maintain its nominal frequency over time, temperature, supply voltage changes, and load variations, typically quantified in ppm (parts per million). A 10 MHz crystal oscillator may have 0.5 ppm stability over 0–70°C, meaning frequency changes by only ±5 Hz; an RC oscillator might change ±5,000 Hz (±500 ppm) over the same range. The dominant factors are: temperature coefficient of the resonant element (crystal cut determines TC — AT-cut gives ~±0.5 ppm/°C), supply voltage sensitivity (tuning varactor sensitivity), and aging of the crystal due to internal stress relief.
Follow-up: What is the difference between TCXO and OCXO in crystal oscillator design?
Q12. What is a Clapp oscillator and how does it improve on the Colpitts?
A Clapp oscillator adds a third series capacitor C3 across the inductor in a Colpitts configuration, making the resonant frequency primarily determined by C3 (which is small and stable) while C1 and C2 set the feedback fraction independently, giving much better frequency stability than the basic Colpitts. With L = 1 µH, C1 = C2 = 1000 pF, and C3 = 100 pF in series, the tank is dominated by C3 and fo ≈ 1/(2π√(L×C3)) = 15.9 MHz, largely independent of transistor capacitance variation. The Clapp is used in signal generators where frequency accuracy matters more than simplicity, particularly in the 1–100 MHz range.
Follow-up: Why does the Clapp oscillator have better frequency stability than the Colpitts?
Q13. What is the Q factor of an oscillator and how does it relate to spectral purity?
Q factor of an oscillator's resonant element is 2π × (energy stored / energy dissipated per cycle), and it determines how narrow the resonance peak is and thus how sharply frequency-selective the feedback is. A quartz crystal has Q of 10,000–100,000 while an LC tank circuit has Q of 50–300; the crystal's narrower resonance means it much more strongly rejects frequencies away from resonance, keeping oscillation locked to the crystal frequency even with transistor gain variations. Higher Q directly translates to lower phase noise: Leeson's equation shows phase noise improves by 6 dB for every doubling of Q.
Follow-up: What is Leeson's equation and what does it predict about oscillator phase noise?
Q14. What is the startup condition for an oscillator and how is it different from the sustaining condition?
The startup condition requires the loop gain to be greater than 1 (|Aβ| > 1) at the intended oscillation frequency so that any small noise signal grows exponentially until amplitude-limiting mechanisms take effect. The sustaining condition (Barkhausen criterion) requires |Aβ| = 1 once steady-state amplitude is reached, achieved by nonlinear gain compression or an explicit AGC circuit. In the Wien bridge oscillator, the tungsten lamp's resistance increases as amplitude grows, reducing amplifier gain from its initial >3 to exactly 3 at steady-state, which is an elegant self-regulating mechanism that achieves both startup and sustaining conditions automatically.
Follow-up: What is amplitude stabilization and why is it necessary in oscillator design?
Q15. What is the difference between a series resonant and parallel resonant crystal oscillator?
A quartz crystal has two resonant frequencies: series resonance (fs) where the crystal impedance is minimum (few ohms), and parallel resonance (fp, typically ~0.1–0.2% above fs) where impedance is maximum. Series resonant oscillators (like Pierce oscillators) use the crystal as a series element, oscillating at fs where the crystal acts as a low impedance in the feedback path; parallel (anti-resonant) oscillators use the crystal between gate and drain of a CMOS inverter where it oscillates between fs and fp. The 16 MHz crystal in an Arduino is operated in parallel resonance mode within an internal Pierce oscillator of the ATmega328 microcontroller.
Follow-up: What is the load capacitance specification on a crystal and why does it affect oscillation frequency?
Common misconceptions
Misconception: Any circuit with positive feedback will oscillate.
Correct: Oscillation requires both Barkhausen conditions to be met simultaneously — loop gain exactly 1 AND loop phase exactly 0° at the same frequency; positive feedback alone with gain > 1 causes latching, not oscillation, unless the phase condition is also satisfied.
Misconception: Crystal oscillators are more accurate than all other oscillators at any temperature.
Correct: Standard crystal oscillators still drift with temperature; TCXO (temperature-compensated) and OCXO (oven-controlled) add compensation circuits to achieve ppb-level stability that a bare crystal cannot achieve alone.
Misconception: Increasing the amplifier gain in an oscillator always produces a better (larger, more stable) output.
Correct: Excess loop gain causes amplitude to grow until the transistor clips, generating harmonic distortion; proper oscillator design uses just enough gain to start oscillation and an amplitude control mechanism to stabilize at the desired level.
Misconception: An RC oscillator and a crystal oscillator are interchangeable in all applications.
Correct: An RC oscillator has 1,000–10,000× worse frequency stability than a crystal, making it unsuitable for serial communication, timing, or any application where frequency accuracy better than ±1% is required.