Negative Feedback: Topologies and Their Effect on Gain, Bandwidth and Impedance
The open-loop gain of an op-amp is "about 100 000", give or take a factor of three between parts and another factor of two over temperature. Yet a non-inverting amplifier built from it has a gain of to the tolerance of two resistors. Harold Black's 1927 idea of negative feedback trades surplus gain for precision, bandwidth, linearity and impedances chosen by the designer. This lesson derives the closed-loop gain, shows what the loop gain buys and how it is measured, and classifies the four ways a feedback network can sample and return a signal. Every op-amp circuit in the next section, and the degenerated transistor stages of earlier lessons, are instances of it.
The loop
A forward amplifier amplifies the error ; a feedback network returns . Then and
is the loop gain: break the loop, inject a signal, and is what comes back round (with the sign of the subtraction removed). Everything good about feedback is a factor , the amount of feedback, usually quoted in dB.
Desensitivity. Differentiate with respect to :
A 100 % change in becomes a change in when . The gain now depends on , which is made of resistors.
Bandwidth. If , then
The pole moves up by the same that the gain moves down: for a single-pole amplifier the gain–bandwidth product is constant. An op-amp with and a 10 Hz pole gives a gain of 10 to 100 kHz, or 100 to 10 kHz.
Distortion and noise. Distortion generated inside is reduced by about , as is any disturbance injected at the output (supply ripple, a load step). Noise added at the input is not: it is indistinguishable from the signal (Noise in Analog Circuits).
The four topologies
The feedback network can sample the output voltage (connect in shunt, across the output) or the output current (in series with the load), and mix the feedback at the input as a voltage (in series with the source) or as a current (in shunt, at a node). The names give mixing first, then sampling:
| Topology (mixing–sampling) | Stabilises | Ideal amplifier | Example | ||
|---|---|---|---|---|---|
| series–shunt | voltage gain | voltage amplifier | non-inverting op-amp, emitter follower | ||
| shunt–series | current gain | current amplifier | current mirror with feedback | ||
| series–series | transconductance | voltage-to-current converter | degenerated CE/CS stage, op-amp current source | ||
| shunt–shunt | transresistance | current-to-voltage converter | inverting op-amp, photodiode TIA |
The rule behind the table: series connections multiply impedance by , shunt connections divide it. Sampling voltage makes the output a better voltage source (low ); sampling current makes it a better current source (high ). The degenerated common-source stage of the CS lesson is series–series: senses the output current and subtracts from the input voltage, , and indeed its gain fell by and its drain output resistance rose by about the same factor.
Feedback is negative only while the returned signal opposes the input. Every amplifier's phase shifts with frequency; once the loop's phase reaches with , the feedback turns positive and the circuit oscillates. That is the subject of Stability and Frequency Compensation.
Worked example
Given: a non-inverting amplifier with , , built from the course's op-amp model (, pole at , so GBW ) with a differential input resistance and an output resistance .
Find: the closed-loop gain, bandwidth, input and output resistance at DC.
Solve: series–shunt feedback with :
Check: the gain error is far below the 1 % or 0.1 % tolerance of the resistors that set . At frequency above the pole, , so at only remains and has risen to about : the benefits of feedback shrink as the loop gain falls.
In Python
The first part checks desensitivity and the constant gain–bandwidth product. The second puts an amplifier that compresses like (small-signal gain 100, limits) in a loop with and solves sample by sample.
import numpy as np
from scipy.optimize import brentq
beta = 0.1
print("desensitivity: A0 changes 4x, the closed-loop gain hardly moves")
for A in (5e4, 1e5, 2e5):
print(f" A = {A:8.0f}: T = {A*beta:7.0f}, Af = {A/(1 + A*beta):.5f}")
fp, A0 = 10.0, 1e5
print(f"bandwidth: open loop {fp:.0f} Hz, closed loop {fp*(1 + A0*beta)/1e3:.1f} kHz, "
f"gain x bandwidth = {A0*fp/1e6:.1f} MHz both ways")
# distortion: an amplifier with small-signal gain 100 that compresses like tanh
f = lambda e: 10 * np.tanh(10 * e)
N = 256
t = np.arange(N) / N
def thd(y):
X = np.abs(np.fft.rfft(y)) * 2 / N
return X[1], np.sqrt(np.sum(X[2:20]**2)) / X[1]
x_open = np.arctanh(0.5) / 10 * np.sin(2 * np.pi * t) # about 5 V peak out, no feedback
a1, d1 = thd(f(x_open))
b = 0.09 # T = 100 * 0.09 = 9 at small signals
x_cl = 0.55 * np.sin(2 * np.pi * t)
y_cl = np.array([brentq(lambda y: y - f(x - b * y), -10, 10) for x in x_cl])
a2, d2 = thd(y_cl)
print(f"open loop: output {a1:.2f} V peak, THD {100*d1:.2f} %")
print(f"closed loop: output {a2:.2f} V peak, THD {100*d2:.3f} % (gain {a2/0.55:.2f}, reduced {d1/d2:.0f} x)")desensitivity: A0 changes 4x, the closed-loop gain hardly moves
A = 50000: T = 5000, Af = 9.99800
A = 100000: T = 10000, Af = 9.99900
A = 200000: T = 20000, Af = 9.99950
bandwidth: open loop 10 Hz, closed loop 100.0 kHz, gain x bandwidth = 1.0 MHz both ways
open loop: output 5.12 V peak, THD 2.34 %
closed loop: output 5.45 V peak, THD 0.313 % (gain 9.91, reduced 7 x)
For a similar output swing, a loop gain of 9 cuts the THD sevenfold. It is less than because at the peaks the compressing amplifier's own slope, and so the loop gain, is smaller: feedback helps least exactly where the amplifier is worst. Real audio amplifiers run 20 to 40 dB of feedback for this reason.
Cross-check with SPICE
The course's op-amp macro-model with and added. One copy measures gain and bandwidth (then alter raises the gain to 100); a second copy, with its input grounded, is driven by a AC test current at the output, so its output voltage is in ohms.
cat > fb.cir <<'EOF'
* Non-inverting amplifier: closed-loop gain, bandwidth and output impedance
* op-amp macro-model of the course (A0 = 1e5, GBW 1 MHz) plus Rid = 1 MEG and Ro = 100 Ohm
.subckt OA inp inn out
Rid inp inn 1meg
G1 0 n1 inp inn 1m
R1 n1 0 100meg
C1 n1 0 159.2p
E1 n2 0 n1 0 1
Ro n2 out 100
.ends
* amplifier 1: gain 1 + RF/RG = 10
Vin in 0 DC 0 AC 1
X1 in n out OA
RF out n 9k
RG n 0 1k
* amplifier 2: same circuit, input grounded, 1 A AC test current into the output
X2 0 n2 out2 OA
RF2 out2 n2 9k
RG2 n2 0 1k
It 0 out2 DC 0 AC 1
.control
ac dec 50 1 10meg
meas ac gain find vm(out) at=100
let t1 = gain/sqrt(2)
set tg1 = "amp;t1"
meas ac f3db when vm(out)=$tg1 fall=1
meas ac zout_1hz find vm(out2) at=1
meas ac zout_1k find vm(out2) at=1k
meas ac zout_100k find vm(out2) at=100k
alter RF 99k
ac dec 50 1 10meg
meas ac gain100 find vm(out) at=100
let t2 = gain100/sqrt(2)
set tg2 = "amp;t2"
meas ac f3db100 when vm(out)=$tg2 fall=1
.endc
.end
EOF
ngspice -b fb.cir 2>&1 | grep -E '^[a-z0-9_]+ +='gain = 9.998984e+00
f3db = 9.891213e+04
zout_1hz = 1.005793e-02
zout_1k = 1.001081e+00
zout_100k = 7.039564e+01
gain100 = 9.989489e+01
f3db100 = 9.988415e+03
Gain 10 gives , gain 100 gives : the product stays at about . The output impedance is at 1 Hz, at 1 kHz and at 100 kHz, rising tenfold per decade above the open-loop pole: it behaves like an inductor, which is why capacitive loads can make op-amp circuits ring.
Interactive: change , keep the gain
The lab solves the amplifier with the op-amp as a linear VCVS E1 (with and ; no frequency dependence) and a load. With it shows for in and an input current of (: the load lowers the effective loop gain to about 9000). Slide E1 down to : the output only falls to . Only when approaches does the gain collapse.
Guided lab: measure the loop's benefits
Hand calculation. Gain 10.00; bandwidth about for a op-amp; output resistance well under at low frequency.
Simulation. SPICE and the lab above.
What you would measure. Build the non-inverting amplifier with a general-purpose op-amp of about 1 MHz GBW on . (1) Gain: peak at 1 kHz; expect with 1 % resistors. (2) Bandwidth: keep the output small ( peak) so slew rate does not interfere (Real Op-Amps: Gain-Bandwidth, Slew Rate and a SPICE Macro-Model), sweep up and find the point; expect the datasheet GBW divided by 10, within the datasheet's spread (often ). (3) Output resistance: load the output with and look for any change of amplitude at 1 kHz; there should be none visible on a scope, a direct demonstration of . (4) Repeat with : bandwidth falls tenfold.
Hazards and safe setup. Dual supply at , current limits about . A load at several volts can exceed the op-amp's output current: keep the amplitude below about peak for that test.
Pitfalls
- Treating as the gain when is small. At high frequency shrinks and the ideal formulas fail; always check at the frequency of interest.
- Expecting feedback to lower input noise. It does not.
- Wrong topology, wrong impedance. A shunt connection at the input lowers input impedance; the inverting amplifier's input resistance is just its input resistor.
- Too much feedback around too many poles. More loop gain, less phase margin.
Practice
- An amplifier with is used with . Find and the change of if drops by 20 %.
- A single-pole op-amp has GBW . What bandwidth does a gain of (inverting, noise gain 50) give?
- Which topology is a transimpedance amplifier for a photodiode, and what does feedback do to its input impedance?
Answer
- , ; with , , : a 0.25 % change, exactly (the desensitivity factor taken at the new loop gain).
- The loop sees : .
- Shunt–shunt; the input impedance is divided by , so the photodiode sees a nearly constant (virtual-ground) voltage.
Test yourself
An amplifier with loop gain has its open-loop gain halved. The closed-loop gain changes by about…
Series–shunt feedback (voltage sampled, voltage mixed) makes the input impedance…
- lower by
- higher by
- unchanged
- zero
A single-pole op-amp with GBW 1 MHz is set to a gain of 20. Its bandwidth is about…
Why does an op-amp's closed-loop output impedance rise with frequency?
- The resistors heat up
- The loop gain falls with frequency, so rises
- The input capacitance grows
- Slew rate