Relaxation Oscillator Phases

Relaxation Oscillator Phases

Op-amp Schmitt trigger with RC feedback: what charges, what trips, and why the output keeps flipping.

Supply ±12 VVSAT ±10 VR 10 kΩC 10 nF RC 100 µsβ 0.50f 4.55 kHz
+12 V −12 V − + R 10 kΩ C 10 nF R1 10 kΩ R2 10 kΩ OUT Vc V+ Vout
Step —
IR —
Comparator —
Output —
Node voltages: power-up then two periodsClick a region to jump to it · trip events widened for visibility
VOUTVC (inverting input)V+ (threshold)

Questions to be ready for

Why doesn't the frequency depend on the supply voltage?

Both thresholds are ±βVSAT and the capacitor charges toward ±VSAT. VSAT scales the start, target and threshold equally, so it cancels in the log term: T = 2RC·ln[(1+β)/(1−β)]. Only R, C and the resistor ratio set the period.

Why does it need hysteresis?

With one threshold, the capacitor would sit at the crossing and noise would make the comparator chatter. Two thresholds give the capacitor a defined swing of 2βVSAT to cover, and the time to cover it is the half-period. The same hysteresis is the noise margin right after each trip.

What limits the maximum frequency?

The output has to slew 2VSAT each trip. A general-purpose op-amp at 0.5 V/µs needs about 40 µs for 20 V, comparable to the 110 µs half-period here. Use a comparator (ns propagation delay) with a pull-up, and keep R large enough that the output can drive it.

Where does jitter come from?

Any noise on VC or on the threshold shifts the crossing time by Δt ≈ vn / (dVC/dt). The exponential is slowest near the threshold, so a wide hysteresis band (larger β) means a flatter slope at the trip point and more jitter per µV. A crystal is orders of magnitude better.

How is this used for capacitive touch?

Make the sense electrode the C. A finger adds ΔC, the period grows, and the MCU counts edges in a fixed window: Δf/f ≈ −ΔC/C. 2 pF on 20 pF of parasitic gives about a 9% shift. It is simple but weak against injected noise such as motor PWM, which is why modern controllers use charge amplifiers with synchronous demodulation.