Skip to content
GATEiit

GATE EC · Analog Circuits

Schmitt trigger and oscillators

Op-amp Schmitt triggers (inverting, non-inverting, with reference) and their thresholds and hysteresis, the op-amp astable multivibrator, and sinusoidal oscillators: Barkhausen criterion, RC phase-shift, Wien bridge, Colpitts, Hartley and crystal.

Before you start

  • Op-amp basics →

    Saturation levels, virtual short and the inverting and non-inverting gains are used throughout.

  • RC charging and resonance →

    The astable period comes from exponential RC charging; LC oscillators run at 1/LC.

  • Feedback →

    Schmitt triggers use positive feedback, and oscillators need loop gain Aβ=1.

Concept notes

1. Inverting Schmitt trigger

A plain comparator switches many times when a noisy input hovers near its threshold. A Schmitt trigger adds positive feedback, so it has two thresholds and the output stays put until the input crosses the far one. The gap between them is the hysteresis.

Inverting circuit: input to the − terminal; output fed back to the + terminal through R2, with R1 from + to ground. The output is at ±Vsat, so

v+=β vo,β=R1R1+R2

VUT=+βVsat,VLT=−βVsat,VH=VUT−VLT=2βVsat

(For unequal saturation levels use βVsat+ and βVsat−.)

Operation: for a very negative input, vo=+Vsat. As vin rises past VUT, vo drops to −Vsat and the threshold jumps to VLT. It switches back only when vin falls below VLT.

With a reference VR in place of ground at the bottom of R1: v+=βvo+(1−β)VR, so both thresholds shift by R2R1+R2VR; the width stays 2βVsat.

Driven by a sine of peak above VUT, the output is a square wave whose edges are delayed relative to the zero crossings.

−+vinvoR2R1v+vinvoVUTVLT+Vsat−Vsat
Inverting Schmitt trigger and its transfer characteristic: output falls at $V_{UT}$ on the way up and rises at $V_{LT}$ on the way down.

2. Non-inverting Schmitt trigger and comparison

Non-inverting circuit: − terminal grounded (or at VR); input through R1 to the + terminal, and R2 from the output to the + terminal. By superposition

v+=R2 vin+R1 voR1+R2

Switching happens when v+=0, i.e. vin=−R1R2vo:

VUT=+R1R2Vsat,VLT=−R1R2Vsat

For a very negative input the output is −Vsat; it switches high when the input crosses VUT.

Inverting Non-inverting
Input goes to − terminal + terminal through R1
Thresholds ±R1R1+R2Vsat ±R1R2Vsat
Low input gives +Vsat −Vsat
Loop traversed high at left, low at right low at left, high at right
Input resistance Very high About R1

Reading a loop in GATE: the side where the output is high for large negative inputs tells you inverting vs non-inverting. The width of the loop is the hysteresis; its centre is set by the reference voltage.

Schmitt triggers are used to square up slow or noisy signals, for zero-crossing detection with noise immunity, and as the switching element of relaxation oscillators.

3. Astable multivibrator (square-wave generator)

Add an RC network to the inverting Schmitt trigger: R from the output to the − terminal and C from the − terminal to ground. The capacitor voltage vC is the trigger's input.

Cycle: with vo=+Vsat, C charges towards +Vsat. When vC reaches +βVsat, the output flips to −Vsat, and C now discharges towards −Vsat until it hits −βVsat, and so on. No input is needed: the circuit is free-running.

Each half period is the time for an exponential to go from −βVsat to +βVsat while heading for +Vsat:

T2=RCln⁡1+β1−β,T=2RCln⁡1+β1−β,β=R1R1+R2

Useful cases:

  • R1=R2 (β=0.5): T=2RCln⁡3≈2.2RC.
  • R2=1.16R1 (β≈0.463): T≈2RC.

The output is a square wave of amplitude ±Vsat with 50% duty cycle (for symmetric saturation). The capacitor voltage is a train of exponential segments between ±βVsat; it looks nearly triangular when β is small.

For unequal ±Vsat, or a diode-steered pair of resistors, the two half periods differ and the duty cycle changes.

A monostable version adds a diode across C and a trigger input; it gives one pulse of fixed width per trigger.

t+Vsat−Vsat+βVsat−βVsat0T/2 = RC ln((1+β)/(1−β))output vocapacitor vC
Astable multivibrator with $\beta = 0.5$: the capacitor voltage swings between $\pm\beta V_{sat}$ and the output toggles each time it reaches a threshold.

4. Sinusoidal oscillators and the Barkhausen criterion

A sinusoidal oscillator is an amplifier A with a frequency-selective feedback network β(jω), connected for positive feedback. Sustained oscillation at ω0 needs the Barkhausen criterion:

∣Aβ(jω0)∣=1,∠Aβ(jω0)=0∘ (or 360∘)

The phase condition fixes the frequency; the magnitude condition fixes the minimum gain. In practice the loop gain is made slightly greater than 1 so oscillations build up from noise, and amplitude is limited by non-linearity or automatic gain control. Barkhausen is a necessary condition, not a guarantee of a stable amplitude.

Oscillator Frequency Gain condition
RC phase shift (3 equal sections, series C, shunt R) f=12πRC6 ∣A∣≥29 (inverting)
Wien bridge f=12πRC A≥3, i.e. Rf≥2R1
Colpitts f=12πLCeq, Ceq=C1C2C1+C2 Gain at least the capacitor ratio
Hartley f=12πLeqC, Leq=L1+L2+2M Gain at least the inductor ratio
Crystal Near the crystal's series or parallel resonance Very high Q, very stable frequency

Phase shift: each of the three RC sections gives 60∘ at f0, totalling 180∘, and the inverting amplifier adds another 180∘. The feedback fraction there is 1/29.

Wien bridge: the series RC and parallel RC form a lead-lag network with zero phase and β=1/3 at f0=1/(2πRC), so a non-inverting amplifier of gain 3 sustains oscillation. RC oscillators suit audio frequencies; LC (Colpitts, Hartley) suit RF.

A crystal has a series resonance fs and a slightly higher parallel resonance fp; between them it looks inductive, and it is used in that region in crystal oscillators.

−+voRfR1CRRCseries RC and parallel RC:β = 1/3 at f₀ = 1/(2πRC)amplifier gain 1 + Rf/R1 ≥ 3
Wien-bridge oscillator: the series and parallel RC arms feed back one third of the output at $f_0 = 1/(2\pi RC)$; the non-inverting gain $1 + R_f/R_1$ must be at least 3.

Formulas to remember

Inverting Schmitt thresholdsR1 from + terminal to ground, R2 feedback
VUT,VLT=±R1R1+R2Vsat
Non-inverting Schmitt thresholdsR1 in series with the input, R2 feedback
VUT,VLT=±R1R2Vsat
Hysteresis width
VH=VUT−VLT
Astable period
T=2RCln⁡1+β1−β,β=R1R1+R2
Barkhausen criterion
∣Aβ∣=1,∠Aβ=0∘
RC phase-shift oscillator
f=12πRC6,∣A∣≥29
Wien-bridge oscillator
f=12πRC,1+RfR1≥3
Colpitts oscillator
f=12πLC1C2C1+C2
Hartley oscillator
f=12π(L1+L2+2M)C

Common mistakes

  • Using R1/R2 for an inverting Schmitt trigger; its thresholds use the divider ratio R1/(R1 + R2), while the non-inverting one uses R1/R2.
  • Taking the hysteresis as βVsat instead of the full width 2βVsat (or VUT − VLT).
  • Thinking a reference voltage changes the hysteresis width; it only shifts the centre of the loop.
  • Quoting the Wien-bridge gain as 1/3; 1/3 is the feedback fraction, the amplifier gain must be 3.
  • Using 1/(2πRC√6) for an RC ladder with series resistors and shunt capacitors; that formula is for series C and shunt R.
  • Adding C1 and C2 in a Colpitts oscillator; they appear in series, so use C1C2/(C1 + C2).

Worked examples

Try each step yourself, then reveal the working.

Example 1: Thresholds of an inverting Schmitt trigger, with and without a reference

numerical

An inverting Schmitt trigger uses Vsat=±12 V, R1=10 kΩ (from + terminal to ground) and R2=20 kΩ (feedback). Find the thresholds and hysteresis. Then repeat with the bottom of R1 taken to VR=3 V instead of ground.

  1. Step 1: Find the feedback fraction.

    Try it on paper first.

Example 2: Frequency of an op-amp astable

numerical

An op-amp astable has R=10 kΩ, C=0.1 μF and R1=R2. Find the period and frequency.

  1. Step 1: Find $\beta$.

    Try it on paper first.

Example 3: Designing a Wien-bridge oscillator

numerical

A Wien-bridge oscillator uses R=10 kΩ and C=10 nF in both arms, and R1=10 kΩ in the gain network. Find the oscillation frequency and the minimum Rf.

  1. Step 1: Frequency from the lead-lag network.

    Try it on paper first.

Example 4: Colpitts frequency

numerical

A Colpitts oscillator has L=1 mH and C1=C2=20 nF. Find the oscillation frequency.

  1. Step 1: Combine the capacitors.

    Try it on paper first.

Previous year questions

2 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.