Sub topic 3
Supply Rails and Output Clipping
Assumed prerequisites: Ohm's law, Kirchhoff's laws, voltage dividers, and the ideal op amp rules (virtual short, no input current). The gain formulas for both configurations are taken as known.
Supply rails and output clipping
An op amp runs from a positive rail (V+) and a negative rail (V-). The output cannot pass these limits. Many parts also stop a volt or more short of each rail, so the usable swing is smaller than the supply.
For an inverting amplifier with Rf = 10k and Rin = 1k, the gain is -10. With ±12 V rails, a 1 V input gives -10 V, which fits. A 1.5 V input would call for -15 V, so the output clips near -12 V.
def clipped_output(ideal, v_plus, v_minus):
return max(v_minus, min(v_plus, ideal))
print(clipped_output(-10 * 1.0, 12, -12)) # -10.0
print(clipped_output(-10 * 1.5, 12, -12)) # -12.0Choosing resistor values for a design
Choose Rin first, usually between 1k and 10k. This keeps the current small and loads the source lightly. For an inverting amplifier, set Rf = |G| × Rin. For a non-inverting amplifier, set Rf/Rg = G - 1. For a gain of 10 with Rg = 1k, Rf = 9k.
Keep Rf between about 10k and 100k. Larger values add noise and make the DC errors below worse.
Gain error from finite open-loop gain
The ideal gain assumes an open-loop gain A that is infinite. A real op amp has a finite A. With A = 100,000, an inverting gain of -10 becomes about -9.9989. The error is roughly (1 + G)/A, so it grows as the closed-loop gain G grows.
Gain-bandwidth product and closed-loop bandwidth
The gain-bandwidth product (GBW) is roughly constant for an op amp. Closed-loop bandwidth is about GBW divided by the noise gain. For a non-inverting amplifier, the noise gain equals the closed-loop gain. For an inverting amplifier, it equals 1 + Rf/Rin. An op amp with 1 MHz GBW at a gain of 10 has a bandwidth near 100 kHz.
DC errors: input bias current and offset voltage
The offset voltage Vos is amplified by the noise gain: output error ≈ Vos × (1 + Rf/Rin). With Vos = 1 mV and a noise gain of 11, the error is 11 mV. Input bias current Ib flows through Rf and adds Ib × Rf. With Ib = 100 nA and Rf = 10k, the error is 1 mV.
Slew rate and large-signal limits
The slew rate (SR, in V/µs) limits how fast the output can change. The full-power bandwidth is f = SR / (2π × Vpeak). With SR = 0.5 V/µs and Vpeak = 10 V, f is about 8 kHz. Above that frequency, a sine wave distorts into a triangle shape.
Exercise
An inverting amplifier has Rf = 22k and Rin = 2.2k, with ±15 V rails. What is the largest input amplitude that avoids clipping? Ignore headroom.
Show answer
The gain is -10. The output limit is 15 V, so the largest input is 15 / 10 = 1.5 V.