Sub topic 15
Where the ideal model stops working
This chapter assumes you can analyze the inverting and non-inverting amplifiers with the virtual short, and that you know the finite-gain error formula from the previous chapter. It covers the effects the ideal model leaves out and how to tell when they matter.
What the ideal model hides
The ideal model assumes infinite gain, infinite bandwidth, infinite input resistance, zero output resistance, and a perfectly balanced input stage. Real devices miss each of these by some amount. The virtual short is still a good first answer. You only need to know which error grows first in your circuit.
| Effect | What the ideal model assumes | What a real device does | Typical symptom |
|---|---|---|---|
| Finite open-loop gain | A is infinite | A is large but finite, and it falls with frequency | Gain slightly below the ideal value |
| Input offset voltage Vos | Output is 0 V when both inputs are equal | A small voltage (microvolts to millivolts) appears between the inputs | DC error at the output, amplified by the noise gain |
| Input bias current | Input current is zero | Nanoamps to microamps flow into or out of the inputs | DC error that grows with large resistor values |
| Gain-bandwidth product | Gain is the same at every frequency | Closed-loop bandwidth is about GBW divided by the noise gain | Gain rolls off at high frequency |
| Slew rate | Output can change at any speed | Output voltage changes by at most SR volts per second | Large, fast sine waves become triangles |
| Output swing and current | Output can reach any voltage and supply any current | Output stops short of the rails and is current limited | Clipping, or a gain drop under heavy load |
Offset voltage and noise gain
Offset voltage acts like a small DC source in series with one input. The output error is that offset times the noise gain. The noise gain is the gain the circuit applies to a source at the input terminals. For both standard amplifiers it equals 1 + Rf/Rg, using Rin as Rg in the inverting case.
An inverting amplifier with Rf = 10 kΩ and Rin = 1 kΩ has a noise gain of 11. An offset of 1 mV therefore produces about 11 mV at the output, even though the signal gain is only −10.
Bandwidth and slew rate
The noise gain also sets the bandwidth. A first-order op amp has a roughly constant product of gain and bandwidth, so the closed-loop bandwidth is about GBW divided by the noise gain. Slew rate limits large signals separately. A sine of peak voltage Vp and frequency f needs a slew rate of 2πfVp.
import math
def closed_loop_bandwidth(gbw_hz, noise_gain):
"""Approximate -3 dB bandwidth of a single-pole op amp circuit."""
return gbw_hz / noise_gain
def full_power_bandwidth(slew_rate_v_per_s, v_peak):
"""Highest sine frequency whose peak slope stays within the slew rate."""
return slew_rate_v_per_s / (2 * math.pi * v_peak)
noise_gain = 1 + 10e3 / 1e3 # 11
print(closed_loop_bandwidth(1e6, noise_gain)) # about 90909 Hz
print(full_power_bandwidth(0.5e6, 10.0)) # about 7958 HzThe small-signal bandwidth is about 91 kHz. A 10 V peak output can only be reproduced cleanly up to about 8 kHz. The slew rate is the tighter limit here, so a design check that looked only at GBW would be wrong.
Deciding which effect to check
Common errors
- Using the signal gain instead of the noise gain to estimate bandwidth and offset error.
- Treating a saturated output as a linear result. When the output sits at a rail, the virtual short no longer holds, and the input difference is no longer near zero.
- Using very large feedback resistors with a bipolar-input op amp. Bias current times resistance then produces a visible DC error.
Exercise
A non-inverting amplifier uses Rf = 49 kΩ and Rg = 1 kΩ, with an op amp that has GBW = 2 MHz and Vos = 0.5 mV. Estimate the closed-loop bandwidth and the output error caused by the offset voltage.
Show answer
The noise gain is 1 + 49 kΩ / 1 kΩ = 50. The bandwidth is about 2 MHz / 50 = 40 kHz. The output offset error is about 50 × 0.5 mV = 25 mV.