---
title: Fully differential amplifiers and common-mode feedback
heading: Twice the swing, no even harmonics, and the loop that holds the outputs centered
eyebrow: S2 · Lesson 22 · Fully differential amplifiers and common-mode feedback
xp: 50
---

::: hook
Most high-performance analog signal paths on a chip are fully differential: two outputs moving in opposite directions, with the signal carried by their difference. It doubles the output swing at a given supply, cancels every even-order distortion product, and rejects noise coupled from the supply and substrate equally into both sides. The price is a second feedback loop. A fully differential amplifier's outputs have a common-mode level that nothing in the differential signal path controls, and with high-impedance cascode outputs it drifts to a rail unless a common-mode feedback circuit measures it and steers it to a reference.
:::

::: play
- The output of an amplifier whose transfer curve is $y = x + a_2x^2 + a_3x^3$, driven by a 500 Hz sine, with its spectrum in dB. The solid curve is a single-ended output; the dashed one is a differential pair of such halves, $\frac{y(x) - y(-x)}{2}$.
- Raise $a_2$: the single-ended output grows a second harmonic at 1 kHz. The differential output has none: even-order terms are the same in both halves and cancel.
- Raise $a_3$: both outputs show a third harmonic at 1.5 kHz, since odd-order terms don't cancel.
:::
:::

```sim plot
view: spectrum
x: t = 0..10m s
y: v = -2..2
slider: A = 0.1..1 = 0.6
slider: a2 = 0..0.4 step 0.01 = 0.2
slider: a3 = 0..0.3 step 0.01 = 0.05
plot: A*sin(2*pi*500*t) + a2*(A*sin(2*pi*500*t))^2 + a3*(A*sin(2*pi*500*t))^3 | label: single-ended output
plot: A*sin(2*pi*500*t) + a3*(A*sin(2*pi*500*t))^3 | dashed | label: differential output
samples: 1024
freq: f = 0..3k Hz
scale: db
```

::: predict
## A single-ended amplifier's second harmonic is −40 dBc. The same circuit is built fully differentially, with halves matched to 1%. Roughly where does the second harmonic go?

- [ ] Still −40 dBc
- [ ] −46 dBc
- [x] About −80 dBc
- [ ] Exactly zero

::: reveal
About −80 dBc. In a perfectly balanced differential circuit the even-order terms are identical in both halves and cancel completely. With a 1% mismatch, roughly 1% of the second harmonic survives, 40 dB lower: −80 dBc. That's why ADC front ends and high-linearity filters are differential, and why layout symmetry matters so much.
:::
:::

::: nameit
## Why go differential

- **Swing:** each output swings ±V, so the difference swings ±2V: twice the signal, four times the signal power, at the same supply.
- **Noise:** the two halves' noise is uncorrelated, so noise power doubles. Net SNR gain: 3 dB for the same total current.
- **Even harmonics:** with $y = a_1x + a_2x^2 + a_3x^3$ per half and inputs ±x, the difference $2a_1x + 2a_3x^3$ has no even terms. A mismatch ε leaves about ε times the single-ended even harmonic.
- **Common-mode rejection:** supply and substrate noise, clock feedthrough and charge injection that hit both sides equally cancel.

## Common-mode feedback

The differential loop sets the difference of the outputs; nothing sets their average. With cascode outputs of megohms, a tiny mismatch between the pull-up and pull-down currents swings the common mode to a rail. A **common-mode feedback** (CMFB) circuit:

1. **Senses** the output common mode, $\frac{v_{o+} + v_{o-}}{2}$, with resistors, source followers, or switched capacitors.
2. **Compares** it with a reference $V_{CM}$, usually mid-supply.
3. **Corrects** it by adjusting a current source (often the load or tail current).

The CMFB is a feedback loop of its own and needs its own stability margin; it's usually designed to be at least as fast as the differential loop. Resistive sensing loads the outputs (each output sees the sensing resistor, since the divider's midpoint is a virtual ground for differential signals), which is why switched-capacitor CMFB is preferred in switched-capacitor circuits.

## Distortion terms

For an input $A\sin\omega t$ into $y = x + a_2x^2 + a_3x^3$: second harmonic amplitude $\frac{a_2A^2}{2}$ (HD2 = $\frac{a_2A}{2}$), third harmonic $\frac{a_3A^3}{4}$ (HD3 = $\frac{a_3A^2}{4}$), relative to the fundamental A.
:::

::: example
## A single-ended output can swing ±0.8 V. What does going fully differential do to the swing and to the SNR, at the same noise per half?

::: solution
1. **Swing.** The differential signal swings ±1.6 V, four times the signal power.
2. **Noise.** The noise power doubles (two uncorrelated halves).
3. **SNR.** The SNR rises by 4/2 = 2:
   $$10\log_{10}2 = 3\ \text{dB}$$
4. **Compare a bigger single-ended amplifier.** Spending the same total current on one single-ended amplifier with twice the $g_m$ would lower its noise power by half, also a 3 dB gain, but couldn't double the swing at the same supply.

**Answer:** the swing doubles to ±1.6 V and the SNR rises by 3 dB.
:::
:::

::: example
## A fully differential folded cascode has 5 MΩ of output resistance per side. Its CMFB senses with 1 MΩ resistors from each output to a midpoint. What happens to the differential gain?

::: solution
1. **Virtual ground.** For a differential signal the midpoint is a virtual ground, so each output sees its 1 MΩ sensing resistor in parallel with its 5 MΩ:
   $$5\ \text{M}\Omega \parallel 1\ \text{M}\Omega = 0.83\ \text{M}\Omega$$
2. **Gain loss.** The gain falls by a factor of 6 (about 16 dB):
   $$\frac{5\ \text{M}\Omega}{5\ \text{M}\Omega \parallel 1\ \text{M}\Omega} = 6$$
3. **Avoiding it.** Sensing with source followers, or with switched capacitors that draw no DC current, avoids the loss.

**Answer:** the differential gain falls by a factor of 6, about 16 dB.
:::
:::

::: example
## A fully differential amplifier's common-mode feedback loop has a gain of 200. Its output common mode would drift 0.4 V without it. How far does it drift with it?

::: solution
1. **Feedback divides the error.**
   $$\begin{aligned} \Delta V &= \frac{0.4\ \text{V}}{1 + T} \\ &= \frac{0.4\ \text{V}}{201} \\ &= 2.0\ \text{mV} \end{aligned}$$
2. **What follows.** That's why the CMFB loop needs real gain and bandwidth of its own: a weak loop lets the outputs wander toward a rail.

**Answer:** the output common mode drifts about 2.0 mV.
:::
:::

::: check
given: V = 0.5 | 0.8 | 1.2
answer: 2*V
unit: V
tolerance: 0.1%

## Each output of a fully differential amplifier can swing ±{V} V. What's the peak differential output?

::: right
Right. ±{answer} V.
:::

::: misses
- [V] The outputs move in opposite directions: their difference swings twice as far.
- [any] Not yet. $v_{o+} - v_{o-}$ with each at ±V.
:::
:::

::: check
given: a = 0.05 | 0.15 | 0.3; A = 0.2 | 0.5 | 1
answer: 20*log(a*A/2)
unit: dB
tolerance: 0.5%

## A single-ended stage $y = x + a_2x^2$ with $a_2$ = {a} is driven with amplitude {A}. What's its HD2, in dBc?

::: right
Right. HD2 = $\frac{a_2A}{2}$, or {answer} dBc.
:::

::: misses
- [20*log(a*A)] The second harmonic of $\sin^2$ is half: $\frac{a_2A^2}{2}$.
- [any] Not yet. Expand $a_2A^2\sin^2\omega t$.
:::
:::

::: check
given: a = 0.02 | 0.1; A = 0.3 | 0.8 | 1.5
answer: 20*log(a*A^2/4)
unit: dB
tolerance: 0.5%

## A stage $y = x + a_3x^3$ with $a_3$ = {a} is driven with amplitude {A}. What's its HD3, in dBc?

::: right
Right. HD3 = $\frac{a_3A^2}{4}$, or {answer} dBc.
:::

::: misses
- [20*log(a*A^2*3/4)] The 3/4 belongs to the fundamental; the third harmonic gets 1/4.
- [any] Not yet. $\sin^3 = \frac{3\sin - \sin3\omega t}{4}$.
:::
:::

::: check
given: H = 30 | 40 | 50; e = 0.5 | 1 | 3
answer: -H + 20*log(e/100)
unit: dB
tolerance: 1%

## A circuit's single-ended second harmonic is −{H} dBc. Built differentially with {e}% mismatch, roughly where does it land?

::: right
Right. About $\varepsilon$ times the single-ended level: {answer} dBc.
:::

::: misses
- [-H] Even harmonics cancel in a balanced circuit; only the mismatch's share survives.
- [any] Not yet. Multiply by the mismatch fraction.
:::
:::

::: check
given: R = 1 | 5 | 20; S = 0.5 | 2 | 10
answer: R*S/(R + S)
unit: MΩ
tolerance: 1%

## Each output of a fully differential amplifier has {R} MΩ of output resistance and a {S} MΩ CMFB sensing resistor to a midpoint. What resistance does each output see for differential signals?

::: right
Right. $R_\text{out} \parallel R_\text{sense}$ = {answer} MΩ: the midpoint is a virtual ground.
:::

::: misses
- [R] The sensing resistor loads the output for differential signals.
- [R*2*S/(R + 2*S)] For a differential signal the midpoint doesn't move, so each output sees one sensing resistor.
- [any] Not yet. Find what the midpoint does for a differential signal.
:::
:::

::: check
given: s = 1.5 | 1.8 | 2 | 2.5 | 3 | 4
answer: 10*log(s^2/2)
unit: dB
tolerance: 1%

## Going differential multiplies the signal amplitude by {s} and the noise power by 2. What's the SNR change?

::: right
Right. $10\log\frac{s^2}{2}$ = {answer} dB.
:::

::: misses
- [20*log(s)] The noise power also doubles.
- [any] Not yet. Signal power over noise power.
:::
:::

::: check
kind: parts
given: s = 0.5 | 0.8 | 1.2; n = 50 | 100

## A single-ended output swings ±{s} V; a fully differential version swings ±{s} V on each output, with the same noise per half ({n} µV rms each).

::: part
answer: 4*s
unit: V
tolerance: 0.5%

### What differential peak-to-peak swing does the fully differential version have?

::: misses
- [any] Twice the single-ended peak-to-peak.
:::
:::

::: part
answer: 20*log(2/sqrt(2))
unit: dB
tolerance: 0.5%

### How much does its SNR improve, with signal doubling and uncorrelated noise growing by √2?

::: misses
- [any] $20\log_{10}(2/\sqrt2)$.
:::
:::
:::

::: check
kind: derivation
vars: E = 0.01..1, T = 10..1000

## A common-mode feedback loop of gain T faces a common-mode error E that it would otherwise leave.

::: step
answer: E/(1 + T)

### How much error remains?
:::

::: step
answer: E/(1 + 2*T)

### And with twice the loop gain?
:::

::: right
Right. The CMFB loop is an ordinary feedback loop: its gain sets the accuracy and its bandwidth must keep up with the differential signals.
:::
:::

::: explain
## Why does a fully differential amplifier need a separate common-mode feedback loop?

::: model
The differential feedback network only sees the difference between the two outputs. If both outputs move up together, the difference is unchanged and the differential loop doesn't respond. In a high-gain amplifier the outputs are driven by current sources pulling against each other, and the tiniest imbalance between the pull-up and pull-down currents, multiplied by megohms of output resistance, drives the common-mode level until something saturates. A separate loop that measures the average of the outputs, compares it with a reference and adjusts a bias current is the only thing holding the outputs in the middle of their range, where the transistors stay saturated and the amplifier can work.
:::
:::

::: practice

::: check
given: a = 0.08 | 0.25; A = 0.4 | 1.2
answer: 20*log(a*A/2)
unit: dB
tolerance: 0.5%

## HD2 for $a_2$ = {a}, amplitude {A}?

::: misses
- [any] $20\log(a_2A/2)$.
:::
:::

::: check
given: a = 0.03 | 0.12; A = 0.5 | 1
answer: 20*log(a*A^2/4)
unit: dB
tolerance: 0.5%

## HD3 for $a_3$ = {a}, amplitude {A}?

::: misses
- [any] $20\log(a_3A^2/4)$.
:::
:::

::: check
given: R = 2 | 10; S = 1 | 4
answer: R*S/(R + S)
unit: MΩ
tolerance: 1%

## Output load with {R} MΩ and {S} MΩ sensing?

::: misses
- [any] $R_\text{out} \parallel R_\text{sense}$.
:::
:::
:::
