The Differential Pair
A thermocouple gives on two long wires that also pick up a volt of mains hum, the same on both. A single-transistor amplifier cannot tell signal from hum, and its own bias drifts by millivolts per kelvin. The differential pair amplifies only the difference between its two inputs and largely ignores what they have in common. It is the input stage of almost every op-amp, comparator and instrumentation amplifier, and the reason DC-coupled amplifiers work at all (Multistage Amplifiers and the Cascode).
The circuit
Two matched transistors share a tail current . Whatever the inputs do, the two collector currents must add up to (less the small base currents). With equal inputs each carries . A difference steers current from one side to the other; a common change of both inputs moves the emitter node with them and changes nothing, as long as the tail is an ideal current source. Inputs are described by a differential part and a common-mode part:
Large-signal transfer
Each collector current follows , and the two differ by exactly because the emitters are joined. The ratio , together with , gives
The curve is linear only for up to about ( against : 8 % low at ); at the pair has switched almost all of the current to one side. That hard, symmetrical limiting is useful in comparators and limiters, and it is why the input of a fast op-amp slews: a large step steers the whole tail current into the compensation capacitor (Real Op-Amps: Gain-Bandwidth, Slew Rate and a SPICE Macro-Model). A MOS pair has a wider linear range, about at full switching, with the overdrive at balance: easier to make linear, but lower gain per unit current.
Small-signal gains
For small , each transistor carries and has . The emitter node does not move (one side's increase is the other's decrease), so each half is a common-emitter stage driven by :
For a common-mode input, the tail's finite resistance is what lets the emitter currents change. Splitting into two in parallel gives two identical degenerated CE stages:
The common-mode rejection ratio depends on how good a current source the tail is: a resistor tail gives tens of dB, a mirror tail () or a cascode tail much more. Taking the output differentially cancels the common-mode output entirely in a perfectly matched pair, so real differential CMRR is set by mismatch, and so is the input offset voltage: the that makes . A relative mismatch in or in gives or ; matched on-chip pairs reach to (Real Op-Amps: Offset, Bias Currents, CMRR and Rail-to-Rail).
Worked example
Given: the pair above with , a resistor tail to (so ), QN transistors.
Find: , the differential gain, the common-mode gain, the CMRR, and at .
Solve:
Check: small-signal is 1 % above the tanh result, consistent with 10 mV being well inside the linear range. Each collector sits at , so the transistors are far from saturation for any common-mode input below about : that is the pair's input common-mode range at the top.
In Python
import numpy as np
VT, IEE, RC, beta = 25.85e-3, 1.001e-3, 10e3, 200
print(" vid (mV) vod ideal (V) fraction of IEE*RC")
for vid in [10e-3, 26e-3, 52e-3, 100e-3]:
frac = np.tanh(vid / (2 * VT))
print(f" {vid*1e3:8.0f} {IEE*RC*frac:13.3f} {float(frac):18.3f}")
gm = IEE / 2 / VT
Ad = gm * RC # differential in, differential out
for name, REE in [("resistor tail 11.3k", 11.3e3), ("mirror tail ro = 100k", 100e3)]:
Acm = RC / (2 * REE) # common mode in, one output (magnitude)
cmrr = (Ad / 2) / Acm # single-ended output
print(f"{name}: Ad = {Ad:.1f}, Acm = {Acm:.4f}, CMRR = {cmrr:.0f} = {20*np.log10(cmrr):.1f} dB")
# input offset voltage from a 1 % mismatch in RC or in IS
print(f"Vos from 1 % RC mismatch = {VT*0.01*1e3:.2f} mV, from 5 % IS mismatch = {VT*np.log(1.05)*1e3:.2f} mV") vid (mV) vod ideal (V) fraction of IEE*RC
10 1.912 0.191
26 4.649 0.464
52 7.648 0.764
100 9.600 0.959
resistor tail 11.3k: Ad = 193.6, Acm = 0.4425, CMRR = 219 = 46.8 dB
mirror tail ro = 100k: Ad = 193.6, Acm = 0.0500, CMRR = 1936 = 65.7 dB
Vos from 1 % RC mismatch = 0.26 mV, from 5 % IS mismatch = 1.26 mV
Replacing the resistor tail by a mirror with (Current Sources and Current Mirrors) buys 19 dB of CMRR, and it does not need a large negative supply.
Cross-check with SPICE: the transfer curve and both gains
Two controlled sources split one differential source Vd into around a common-mode source Vc. The DC sweep traces the tanh curve; the two AC runs measure the differential gain and, after alter moves the AC drive to Vc, the common-mode gain.
cat > dp.cir <<'EOF'
* BJT differential pair, RC = 10k, resistor tail 11.3k to -12 V
.model QN NPN(Is=1e-14 Bf=200 Vaf=100 Br=2 Rb=10 Cje=10p Cjc=4p Tf=0.4n)
VCC vcc 0 12
VEE vee 0 -12
Vd d 0 DC 0 AC 1
Vc cm 0 DC 0 AC 0
E1 b1 cm d 0 0.5
E2 b2 cm d 0 -0.5
Q1 c1 b1 e QN
Q2 c2 b2 e QN
RC1 vcc c1 10k
RC2 vcc c2 10k
RT e vee 11.3k
.control
op
print v(e) v(c1) @q1[ic] @q1[gm]
dc Vd -0.1 0.1 0.001
let vod = v(c2) - v(c1)
meas dc vod_10m find vod at=0.01
meas dc vod_26m find vod at=0.026
meas dc vod_52m find vod at=0.052
meas dc vod_100m find vod at=0.1
ac lin 1 1k 1k
let ad = mag(v(c2) - v(c1))
print ad
alter @vd[acmag] = 0
alter @vc[acmag] = 1
ac lin 1 1k 1k
let acm = mag(v(c1))
print acm
.endc
.end
EOF
ngspice -b dp.cir 2>&1 | grep -E '^(v\(|@|[a-z0-9_]+ +=)'v(e) = -6.35491e-01
v(c1) = 6.994846e+00
@q1[ic] = 5.005155e-04
@q1[gm] = 1.934646e-02
vod_10m = 1.826819e+00
vod_26m = 4.477104e+00
vod_52m = 7.497325e+00
vod_100m = 9.585237e+00
ad = 1.846519e+02
acm = 4.389534e-01
agrees with . SPICE's is 4.6 % below because the model has an Early voltage: each collector also sees in parallel with , and . The large-signal points are low by the same few percent near the middle and converge to the tanh curve at , where the conducting transistor carries the whole tail.
Interactive: differential versus common mode
The lab solves the pair's hybrid- small-signal model (, ; a linear model, no transistors, no ). The defaults drive , a pure differential input of : and , and the emitter node stays at 0. Slide V2 to (a pure common-mode input): both outputs fall to , a common-mode gain of 0.439. Then raise REE and watch the common-mode output shrink.
Guided lab: transfer curve and CMRR
Hand calculation. to , , CMRR about 47 dB; saturates at .
Simulation. The SPICE sweep and the lab above.
What you would measure. Use a matched dual NPN (two transistors in one package) or two parts from one reel taped together. Power from a dual-channel bench supply at . For the transfer curve, hold one base at 0 V through and drive the other from a function generator through a attenuator ( and ) so a generator ramp gives ; display against the input in XY mode. Measure the zero crossing: it is the offset, expect to for an unmatched discrete pair. For the common-mode gain, tie both bases together and drive them with peak at 1 kHz; expect about peak at each collector and nearly nothing between them. Amplitudes are good to about 3 %, so CMRR to about , but mismatch of (1 % resistors) limits the differential-output CMRR to around 60 to 80 dB.
Hazards and safe setup. Two supply channels in series give between the rails: still low voltage, but set both current limits to and connect the common terminal to the scope ground only once. Never apply a differential input beyond about : the reverse-biased base–emitter junction breaks down near .
Pitfalls
- Ignoring the input common-mode range. Raise both inputs until the collectors approach the bases and the transistors saturate; lower them until the tail runs out of voltage.
- Using single-ended output and expecting the differential CMRR.
- Forgetting base currents. The pair draws from each input: here, which flows through the source resistances and creates offset.
- Breaking down the emitter junction with large differential inputs; op-amps add clamp diodes for this reason.
Practice
- A pair with and : find and (differential output).
- The same pair has a tail of . Find the single-ended CMRR in dB.
- At what does the pair deliver 90 % of ?
Answer
- , .
- .
- , so .
Test yourself
A BJT pair with and has a differential-output gain of about…
What sets the common-mode gain of a differential pair with a single-ended output?
- The resistance of the tail current source
- The input signal level
- The collector supply only
Beyond about which differential input is a BJT pair almost fully switched?
A 2 % mismatch of the collector resistors produces an input offset of about…