TExcelTAD

The Differential Pair

A thermocouple gives 40 μV/K40\ \mu\text{V/K} 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

VCC = +12 V RC1 10 kOhm RC2 10 kOhm c1 c2 + vod - Q1 Q2 vb1 vb2 e IEE = 1 mA VEE = -12 V

Two matched transistors share a tail current IEEI_{EE}. Whatever the inputs do, the two collector currents must add up to IEEI_{EE} (less the small base currents). With equal inputs each carries IEE/2I_{EE}/2. A difference vid=vb1−vb2v_{id} = v_{b1} - v_{b2} 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:

vid=vb1−vb2,vicm=vb1+vb22v_{id} = v_{b1} - v_{b2}, \qquad v_{icm} = \frac{v_{b1} + v_{b2}}{2}

Large-signal transfer

Each collector current follows IC=ISeVBE/VTI_C = I_S e^{V_{BE}/V_T}, and the two VBEV_{BE} differ by exactly vidv_{id} because the emitters are joined. The ratio IC1/IC2=evid/VTI_{C1}/I_{C2} = e^{v_{id}/V_T}, together with IC1+IC2=IEEI_{C1} + I_{C2} = I_{EE}, gives

IC1,2=IEE2(1±tanh⁡vid2VT),vod=vc2−vc1=IEERCtanh⁡vid2VTI_{C1,2} = \frac{I_{EE}}{2}\left(1 \pm \tanh \frac{v_{id}}{2V_T}\right), \qquad v_{od} = v_{c2} - v_{c1} = I_{EE} R_C \tanh \frac{v_{id}}{2 V_T}

The curve is linear only for ∣vid∣\lvert v_{id} \rvert up to about VTV_T (tanh⁡(0.5)=0.462\tanh(0.5) = 0.462 against 0.50.5: 8 % low at vid=26 mVv_{id} = 26\ \text{mV}); at ±4VT≈±100 mV\pm 4 V_T \approx \pm 100\ \text{mV} 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 ±2 Vov\pm\sqrt{2}\, V_{ov} at full switching, with VovV_{ov} the overdrive at balance: easier to make linear, but lower gain per unit current.

Small-signal gains

For small vidv_{id}, each transistor carries IC=IEE/2I_C = I_{EE}/2 and has gm=IC/VTg_m = I_C/V_T. 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 ±vid/2\pm v_{id}/2:

Ad=vodvid=gmRC,Ad,single=vc2vid=gmRC2A_d = \frac{v_{od}}{v_{id}} = g_m R_C, \qquad A_{d,\text{single}} = \frac{v_{c2}}{v_{id}} = \frac{g_m R_C}{2}

For a common-mode input, the tail's finite resistance REER_{EE} is what lets the emitter currents change. Splitting REER_{EE} into two 2REE2R_{EE} in parallel gives two identical degenerated CE stages:

Acm=vc1vicm≈−RC2REE,CMRR=∣Ad,singleAcm∣≈gmREEA_{cm} = \frac{v_{c1}}{v_{icm}} \approx -\frac{R_C}{2 R_{EE}}, \qquad \text{CMRR} = \left\lvert \frac{A_{d,\text{single}}}{A_{cm}} \right\rvert \approx g_m R_{EE}

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 (REE=roR_{EE} = r_o) 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 vidv_{id} that makes vod=0v_{od} = 0. A relative mismatch δ\delta in RCR_C or in ISI_S gives VOS≈VTδV_{OS} \approx V_T \delta or VTln⁡(1+δ)V_T \ln(1 + \delta); matched on-chip pairs reach 0.10.1 to 1 mV1\ \text{mV} (Real Op-Amps: Offset, Bias Currents, CMRR and Rail-to-Rail).

Worked example

Given: the pair above with RC=10 kΩR_C = 10\ \text{k}\Omega, a resistor tail RT=11.3 kΩR_T = 11.3\ \text{k}\Omega to −12 V-12\ \text{V} (so IEE≈(12−0.64)/11.3 kΩ=1.0 mAI_{EE} \approx (12 - 0.64)/11.3\ \text{k}\Omega = 1.0\ \text{mA}), QN transistors.

Find: gmg_m, the differential gain, the common-mode gain, the CMRR, and vodv_{od} at vid=10 mVv_{id} = 10\ \text{mV}.

Solve:

gm=0.5 mA25.85 mV=19.34 mA/V,Ad=19.34 mA/V⋅10 kΩ=193.4Acm=−10 kΩ2⋅11.3 kΩ=−0.442,CMRR=193.4/20.442=219=46.8 dBvod(10 mV)=1.0 mA⋅10 kΩ⋅tanh⁡1051.7=10 V⋅0.191=1.91 V\begin{aligned} g_m &= \frac{0.5\ \text{mA}}{25.85\ \text{mV}} = 19.34\ \text{mA/V}, \quad A_d = 19.34\ \text{mA/V} \cdot 10\ \text{k}\Omega = 193.4 \\ A_{cm} &= -\frac{10\ \text{k}\Omega}{2 \cdot 11.3\ \text{k}\Omega} = -0.442, \quad \text{CMRR} = \frac{193.4/2}{0.442} = 219 = 46.8\ \text{dB} \\ v_{od}(10\ \text{mV}) &= 1.0\ \text{mA} \cdot 10\ \text{k}\Omega \cdot \tanh\frac{10}{51.7} = 10\ \text{V} \cdot 0.191 = 1.91\ \text{V} \end{aligned}

Check: small-signal Advid=1.93 VA_d v_{id} = 1.93\ \text{V} is 1 % above the tanh result, consistent with 10 mV being well inside the linear range. Each collector sits at 12−0.5⋅10=7 V12 - 0.5 \cdot 10 = 7\ \text{V}, so the transistors are far from saturation for any common-mode input below about 7 V7\ \text{V}: that is the pair's input common-mode range at the top.

In Python

python · try it yourself
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 ro=100 kΩr_o = 100\ \text{k}\Omega (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 ±vid/2\pm v_{id}/2 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.

bash · try it yourself
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

Acm=0.439A_{cm} = 0.439 agrees with 0.4420.442. SPICE's Ad=184.7A_d = 184.7 is 4.6 % below 193.4193.4 because the model has an Early voltage: each collector also sees ro=(VA+VCE)/IC≈215 kΩr_o = (V_A + V_{CE})/I_C \approx 215\ \text{k}\Omega in parallel with RCR_C, and gm(RC∥ro)=19.35⋅9.56=185g_m (R_C \parallel r_o) = 19.35 \cdot 9.56 = 185. The large-signal points are low by the same few percent near the middle and converge to the tanh curve at 100 mV100\ \text{mV}, where the conducting transistor carries the whole tail.

Interactive: differential versus common mode

The lab solves the pair's hybrid-π\pi small-signal model (rπ=10.34 kΩr_\pi = 10.34\ \text{k}\Omega, gm=19.35 mA/Vg_m = 19.35\ \text{mA/V}; a linear model, no transistors, no ror_o). The defaults drive ±0.5 mV\pm 0.5\ \text{mV}, a pure differential input of 1 mV1\ \text{mV}: V(c1)=−96.75 mVV(\text{c1}) = -96.75\ \text{mV} and V(c2)=+96.75 mVV(\text{c2}) = +96.75\ \text{mV}, and the emitter node stays at 0. Slide V2 to +0.5 mV+0.5\ \text{mV} (a pure common-mode input): both outputs fall to −219.6 μV-219.6\ \mu\text{V}, a common-mode gain of 0.439. Then raise REE and watch the common-mode output shrink.

node voltages (to ground 0)b1500.0 uVb2-500.0 uVe0 Vc1-96.75 mVc296.75 mVnetlistV1 b1 0 0.5mV2 b2 0 -0.5mRPI1 b1 e 10.34kRPI2 b2 e 10.34kG1 c1 e b1 e 19.35mG2 c2 e b2 e 19.35mRC1 c1 0 10kRC2 c2 0 10kREE e 0 11.3kelement currents (node 1 to node 2 through it)V1b1>0-48.4 nAV2b2>048.4 nARPI1b1>e48.4 nARPI2b2>e-48.4 nAG1c1>e9.68 uAG2c2>e-9.68 uARC1c1>0-9.68 uARC2c2>09.68 uAREEe>00 A

Guided lab: transfer curve and CMRR

Hand calculation. Ad≈185A_d \approx 185 to 193193, Acm≈−0.44A_{cm} \approx -0.44, CMRR about 47 dB; vodv_{od} saturates at ±10 V\pm 10\ \text{V}.

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 ±12 V\pm 12\ \text{V}. For the transfer curve, hold one base at 0 V through 100 Ω100\ \Omega and drive the other from a function generator through a 1000:11000:1 attenuator (100 kΩ100\ \text{k}\Omega and 100 Ω100\ \Omega) so a ±10 V\pm 10\ \text{V} generator ramp gives ±10 mV\pm 10\ \text{mV}; display vodv_{od} against the input in XY mode. Measure the zero crossing: it is the offset, expect ±1\pm 1 to 5 mV5\ \text{mV} for an unmatched discrete pair. For the common-mode gain, tie both bases together and drive them with 1 V1\ \text{V} peak at 1 kHz; expect about 0.44 V0.44\ \text{V} peak at each collector and nearly nothing between them. Amplitudes are good to about 3 %, so CMRR to about ±0.5 dB\pm 0.5\ \text{dB}, but mismatch of RCR_C (1 % resistors) limits the differential-output CMRR to around 60 to 80 dB.

Hazards and safe setup. Two supply channels in series give 24 V24\ \text{V} between the rails: still low voltage, but set both current limits to 10 mA10\ \text{mA} and connect the common terminal to the scope ground only once. Never apply a differential input beyond about 5 V5\ \text{V}: the reverse-biased base–emitter junction breaks down near 6 V6\ \text{V}.

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 IEE/(2β)I_{EE}/(2\beta) from each input: 2.5 μA2.5\ \mu\text{A} 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

  1. A pair with IEE=200 μAI_{EE} = 200\ \mu\text{A} and RC=20 kΩR_C = 20\ \text{k}\Omega: find gmg_m and AdA_d (differential output).
  2. The same pair has a tail of REE=500 kΩR_{EE} = 500\ \text{k}\Omega. Find the single-ended CMRR in dB.
  3. At what vidv_{id} does the pair deliver 90 % of IEERCI_{EE} R_C?
Answer
  1. gm=100 μA/25.85 mV=3.87 mA/Vg_m = 100\ \mu\text{A}/25.85\ \text{mV} = 3.87\ \text{mA/V}, Ad=77.4A_d = 77.4.
  2. CMRR≈gmREE=3.87 mA/V⋅500 kΩ=1934=65.7 dB\text{CMRR} \approx g_m R_{EE} = 3.87\ \text{mA/V} \cdot 500\ \text{k}\Omega = 1934 = 65.7\ \text{dB}.
  3. tanh⁡(x)=0.9⇒x=1.472\tanh(x) = 0.9 \Rightarrow x = 1.472, so vid=2⋅1.472⋅25.85 mV=76.1 mVv_{id} = 2 \cdot 1.472 \cdot 25.85\ \text{mV} = 76.1\ \text{mV}.

Test yourself

A BJT pair with IEE=1 mAI_{EE} = 1\ \text{mA} and RC=5 kΩR_C = 5\ \text{k}\Omega has a differential-output gain of about…

  1. 1919
  2. 9797
  3. 193193
  4. 387387

What sets the common-mode gain of a differential pair with a single-ended output?

  1. β\beta
  2. The resistance of the tail current source
  3. The input signal level
  4. The collector supply only

Beyond about which differential input is a BJT pair almost fully switched?

  1. ±1 mV\pm 1\ \text{mV}
  2. ±100 mV\pm 100\ \text{mV}
  3. ±0.7 V\pm 0.7\ \text{V}
  4. ±5 V\pm 5\ \text{V}

A 2 % mismatch of the collector resistors produces an input offset of about…

  1. 0.05 mV0.05\ \text{mV}
  2. 0.5 mV0.5\ \text{mV}
  3. 5 mV5\ \text{mV}
  4. 50 mV50\ \text{mV}