Sub topic 8
Supply rails and output clipping
This chapter assumes you can apply the virtual short to the inverting and non-inverting gain equations from the earlier chapters. The gain formulas describe the amplifier only while the output stays inside the supply voltages. This chapter covers what happens when it doesn't.
The output cannot exceed the supply
An op amp makes its output from the power it draws from its supply pins. The output therefore cannot go above the positive supply (+Vs) or below the negative supply (-Vs). A real output stage also needs some headroom, so the usable limits are slightly inside the supplies. These limits are the saturation voltages, written Vsat+ and Vsat-.
| Op amp type | Typical output swing on ±15 V supplies | Notes |
|---|---|---|
| General-purpose bipolar | About ±13 V | Loses 1 to 2 V to headroom |
| Rail-to-rail output | Within tens of millivolts of each supply | Common in single-supply, low-voltage designs |
Always check the output swing in the datasheet. It depends on the load current and the supply voltage.
Predicting clipping
To predict the output, compute the ideal output from the gain equation, then limit it to the saturation voltages:
Vout = clamp(G × Vin, Vsat-, Vsat+)
Here G is -Rf/Rin for the inverting amplifier or 1 + Rf/Rg for the non-inverting amplifier. The largest input amplitude that stays undistorted is V_sat divided by |G|.
def clipped_output(vin, gain, v_sat_pos, v_sat_neg):
ideal = gain * vin
return max(v_sat_neg, min(v_sat_pos, ideal))
# Inverting amplifier, gain -10, output limits +/-10.5 V
print(clipped_output(0.5, -10, 10.5, -10.5)) # -5.0
print(clipped_output(1.5, -10, 10.5, -10.5)) # -10.5 (clipped)
# Non-inverting amplifier, gain 10
print(clipped_output(2.0, 10, 10.5, -10.5)) # 10.5 (clipped)With these limits, the largest undistorted input amplitude is 10.5 V / 10 = 1.05 V. A 1.5 V peak sine wave has an ideal output peak of 15 V. The output instead sits flat at ±10.5 V for the part of each cycle where the ideal output exceeds the limit.
Why the virtual short fails
The virtual short depends on negative feedback having enough room to move the output. When the output hits a rail, feedback can no longer drive the difference between the two inputs to zero. That difference becomes nonzero, and the gain equation stops applying. The circuit is then a saturated, nonlinear stage rather than a linear amplifier.
Clipping adds harmonics to audio and other signals. Some op amps also take a while to leave saturation, so the output stays distorted briefly after the input returns to range.
Single-supply operation
Many circuits use a single supply, such as 0 V and +5 V, with no negative rail. The negative limit is then near 0 V, so an amplifier cannot output negative voltages. Two consequences follow:
- A non-inverting amplifier with a positive input can work directly. Its output can only reach about 0 V on the low end, so check the datasheet for how close a non-rail-to-rail part gets.
- An inverting amplifier with its non-inverting input at ground would need a negative output for a positive input, which is impossible. The usual fix is to bias the non-inverting input to a mid-supply voltage (for example 2.5 V on a 5 V supply) so the output swings around that point.
Design checks
- Find the largest input amplitude you expect.
- Multiply by |G| to get the peak output.
- Confirm the peak is below the datasheet swing for your supply and load.
- If it isn't, reduce the gain, raise the supply voltage, or choose a part with a wider output swing.
Exercise
A non-inverting amplifier uses Rf = 19 kΩ and Rg = 1 kΩ. It runs from ±12 V supplies and its output can reach ±10.5 V. What is the largest input amplitude that stays undistorted? What does the output look like for a 0.8 V peak sine input?
Show answer
The gain is 1 + 19k/1k = 20. The largest undistorted input amplitude is 10.5 V / 20 = 0.525 V. A 0.8 V peak input has an ideal output peak of 16 V. The output follows the sine wave until it reaches ±10.5 V, then stays flat at that value (clipped) until the ideal output drops back inside the limits.