---
title: Chopping and auto-zeroing
heading: Removing offset and flicker noise by modulation and by sampling
eyebrow: S2 · Lesson 31 · Chopping and auto-zeroing
xp: 50
---

::: hook
A strain gauge, a thermocouple or a current-sense resistor makes signals of microvolts that change slowly, exactly where an amplifier is worst: millivolts of offset that drift with temperature, and flicker noise that climbs toward DC. Making transistors big enough to fix that by Pelgrom's law would take impractical areas. Instead, precision amplifiers attack the problem dynamically. **Auto-zeroing** measures the offset during one phase and subtracts it during the next. **Chopping** modulates the signal up to a frequency above the flicker corner, amplifies it there, and demodulates it back, which moves the offset and 1/f noise away from the signal where a filter removes them.
:::

::: play
- The solid curve is an amplifier's input noise density with flicker noise below its corner; the dashed curve is the same amplifier chopped at $f_\text{ch}$, where the 1/f noise and the offset have been moved up to the chopping frequency.
- Below $f_\text{ch}$ the chopped amplifier is flat at its white noise floor.
- Chop below the flicker corner and some 1/f noise is left in the band; chop well above it and the floor is white all the way down.
:::

```sim plot
view: graph
x: f = 1..1000000 Hz log
y: e = 1..1000 nV/√Hz log
slider: c = 100..100000 = 10000 Hz log
slider: h = 1000..1000000 = 100000 Hz log
plot: 10*sqrt(1 + c/f) | label: without chopping
plot: 10*sqrt(1 + c/(abs(f - h) + 1)) | dashed | label: chopped
```

::: predict
## A chopper amplifier's switches inject a spike of 10 mV lasting 10 ns at every transition, and it chops at 100 kHz. Roughly what residual offset do the spikes leave after demodulation?

- [ ] None: chopping removes all offset
- [x] About 20 µV
- [ ] About 10 mV
- [ ] About 1 V

::: reveal
The demodulator rectifies the spikes into a DC error of about twice their area per period times the chopping frequency: $2 \times 10\text{ mV} \times 10\text{ ns} \times 100\text{ kHz} = 20$ µV. That residual grows with chopping frequency, which is why chopper amplifiers chop only as fast as the flicker corner demands, and use nested choppers or careful switch layout to go lower.
:::
:::

::: nameit
## Auto-zeroing

In one phase the amplifier's inputs are shorted and its offset is stored on a capacitor; in the next the stored value is subtracted from the signal. It removes offset and its drift, and it removes flicker noise below about the sampling rate, but sampling **folds** the amplifier's wideband white noise into the baseband: with noise bandwidth B sampled at $f_s$, the low-frequency white noise density rises by about $\sqrt{2B/f_s}$ when that ratio is large.

## Chopping

A switch network multiplies the input by a ±1 square wave at $f_\text{ch}$; the amplifier sees the signal moved up to $f_\text{ch}$ (and its odd harmonics), while its own offset and 1/f noise stay at DC. A second chopper after the amplifier moves the signal back and moves the offset up, where a low-pass filter takes it out. Chopping leaves the white noise floor unchanged, which is its advantage over auto-zeroing.

## Residual errors

Charge injection at each switching edge makes spikes that the demodulator rectifies: the residual offset is about $2A_\text{spike}f_\text{ch}$ for spikes of area $A_\text{spike}$. The chopped amplifier's bandwidth must exceed $f_\text{ch}$ several times, or the modulated signal is attenuated.
:::

::: example
## An amplifier has 10 nV/√Hz of white noise and a 10 kHz flicker corner. What is its noise at 1 kHz without chopping, and chopped at 100 kHz?

::: solution
1. **Without chopping.**
   $$\begin{aligned} e_n &= 10\sqrt{1 + \frac{10\,000}{1000}} \\ &= 33\ \text{nV/√Hz} \end{aligned}$$
2. **Chopped at 100 kHz.** Chopped at ten times the corner, the band below a few kilohertz sees only the white floor, 10 nV/√Hz: a threefold improvement at 1 kHz.
3. **At 1 Hz.** The improvement is far more there, where the unchopped noise is
   $$10\sqrt{1 + 10\,000} \approx 1000\ \text{nV/√Hz}$$

**Answer:** 33 nV/√Hz without chopping, and 10 nV/√Hz chopped at 100 kHz.
:::
:::

::: example
## Switch spikes of 10 mV for 10 ns occur at each chopping edge, at 100 kHz. What residual offset results?

::: solution
1. **Residual offset.**
   $$\begin{aligned} V_\text{os} &\approx 2 \times 10\ \text{mV} \times 10\ \text{ns} \\ &\quad \times 100\ \text{kHz} \\ &= 20\ \text{µV} \end{aligned}$$
2. **Lowering it.** Halving the chopping frequency halves it, as long as $f_\text{ch}$ stays above the flicker corner.

**Answer:** about 20 µV.
:::
:::

::: example
## An auto-zeroed amplifier has 10 nV/√Hz of white noise over a 1 MHz noise bandwidth and is auto-zeroed at 50 kHz. What white noise density does it show at low frequency?

::: solution
1. **Folding factor.**
   $$\begin{aligned} \sqrt{\frac{2B}{f_s}} &= \sqrt{40} \\ &= 6.3 \end{aligned}$$
2. **Noise density.**
   $$6.3 \times 10\ \text{nV/√Hz} = 63\ \text{nV/√Hz}$$
3. **Where it fits.** Auto-zeroing trades flicker noise for folded white noise, which is why it suits low-bandwidth amplifiers or is combined with chopping.

**Answer:** about 63 nV/√Hz.
:::
:::

::: check
kind: parts
given: w = 5 | 10 | 20; c = 1 | 10 | 100; f = 0.01 | 0.1 | 1

## An amplifier has {w} nV/√Hz of white noise and a {c} kHz flicker corner, and the signal is at {f} kHz.

::: part
answer: w*sqrt(1 + c/f)
unit: nV/√Hz
tolerance: 0.5%

### What noise density does it see at the signal without chopping?

::: misses
- [any] $e_w\sqrt{1 + f_c/f}$.
:::
:::

::: part
answer: sqrt(1 + c/f)
tolerance: 0.5%

### By what factor would ideal chopping lower it?

::: misses
- [any] Chopping leaves only the white floor.
:::
:::
:::

::: check
kind: parts
given: v = 1 | 10 | 50; t = 1 | 10 | 50; f = 10 | 100 | 500

## A chopper's switches make {v} mV spikes lasting {t} ns at each edge, chopping at {f} kHz.

::: part
answer: 2*v*1e-3*t*1e-9*f*1e3*1e6
unit: µV
tolerance: 0.5%

### What residual offset do they leave?

::: misses
- [any] $2A_\text{spike}f_\text{ch}$.
:::
:::

::: part
answer: 2*v*1e-3*t*1e-9*f*1e3*1e6/2
unit: µV
tolerance: 0.5%

### And at half the chopping frequency?

::: misses
- [any] Half.
:::
:::
:::

::: check
kind: parts
given: w = 5 | 10 | 20; B = 0.5 | 1 | 10; s = 10 | 50 | 200

## An amplifier of {w} nV/√Hz white noise and {B} MHz noise bandwidth is auto-zeroed at {s} kHz.

::: part
answer: sqrt(2*B*1e6/(s*1e3))
tolerance: 0.5%

### By what factor does folding raise its low-frequency white noise?

::: misses
- [any] $\sqrt{2B/f_s}$.
:::
:::

::: part
answer: w*sqrt(2*B*1e6/(s*1e3))
unit: nV/√Hz
tolerance: 0.5%

### What density results?

::: misses
- [any] Multiply by the folding factor.
:::
:::
:::

::: check
kind: parts
given: o = 1 | 5 | 10; d = 2 | 5 | 10; T = 50 | 100

## An amplifier has {o} mV of offset drifting {d} µV/°C, over a {T} °C range.

::: part
answer: d*T/1000
unit: mV
tolerance: 0.5%

### How much does its offset drift over the range?

::: misses
- [any] Drift × range.
:::
:::

::: part
answer: o*1000/20
tolerance: 0.5%

### By what factor must auto-zeroing cut the offset to reach 20 µV?

::: misses
- [any] Offset ÷ 20 µV.
:::
:::
:::

::: check
kind: parts
given: f = 10 | 100 | 500; k = 5 | 10

## A chopper amplifier chops at {f} kHz and needs a bandwidth {k} times that to pass the modulated signal.

::: part
answer: f*k/1000
unit: MHz
tolerance: 0.5%

### What bandwidth must its core amplifier have?

::: misses
- [any] k × $f_\text{ch}$.
:::
:::

::: part
answer: f/10
unit: kHz
tolerance: 0.5%

### Roughly what signal bandwidth is left, if the output filter must cut off a decade below $f_\text{ch}$?

::: misses
- [any] $f_\text{ch}/10$.
:::
:::
:::

::: check
kind: choice

## A sensor amplifier must reach 1 µV of offset at 10 Hz bandwidth with low white noise. Which technique fits best?

- [ ] Large input transistors alone
- [ ] Auto-zeroing alone, at a slow rate
- [x] Chopping above the flicker corner, with care over switch injection
- [ ] Raising the bias current

::: misses
- [1] Reaching a microvolt by area alone would take enormous devices.
- [2] Slow auto-zeroing folds a lot of white noise into the band.
- [4] More current lowers white noise, not offset or flicker noise.
:::
:::

::: check
kind: derivation
vars: w = 1e-9..1e-7, B = 1e4..1e7, s = 1e3..1e6, A = 1e-12..1e-9, f = 1e3..1e6

## An amplifier has white noise w, noise bandwidth B, auto-zero rate s; separately it's chopped at f with spikes of area A.

::: step
answer: w*sqrt(2*B/s)

### What white noise density does auto-zeroing leave at low frequency?
:::

::: step
answer: 2*A*f

### What residual offset does chopping leave?
:::

::: right
Right. Auto-zeroing pays in noise, chopping in residual offset; combining them, chopping first, gets the best of both.
:::
:::

::: check
kind: python

## Write `chop_demo(sig, offset, fch_samples, n)`: simulate n samples of a DC signal `sig` passing through an amplifier with gain 1 and an input offset `offset`, with a chopper modulating by ±1 every `fch_samples` samples before the amplifier and the same ±1 demodulating after it. Return the mean of the demodulated output (which should be close to `sig`), and `unchopped(sig, offset)`: what the amplifier alone gives.

```python starter
def chop_demo(sig, offset, fch_samples, n):
    return sig + offset

def unchopped(sig, offset):
    return sig
```

```python solution
def chop_demo(sig, offset, fch_samples, n):
    total = 0.0
    for k in range(n):
        m = 1 if (k // fch_samples) % 2 == 0 else -1
        amp_out = m * sig + offset
        total += m * amp_out
    return total / n

def unchopped(sig, offset):
    return sig + offset
```

```python tests
assert abs(chop_demo(1e-6, 5e-3, 10, 2000) - 1e-6) < 1e-12, "Over whole periods the offset cancels exactly."
assert abs(unchopped(1e-6, 5e-3) - 5.001e-3) < 1e-12, "Unchopped, the offset swamps the signal 5000 times."
assert abs(chop_demo(1e-6, 5e-3, 10, 2010) - 1e-6) < 5e-3 / 100, "A partial period leaves a small residue."
```

::: right
Right. Multiplying by the same ±1 twice returns the signal, while the offset is multiplied only once and averages away.
:::
:::

::: explain
## Why does chopping remove an amplifier's offset and flicker noise but leave its white noise unchanged?

::: model
The input chopper multiplies the signal by a square wave, which moves it to the chopping frequency and its odd harmonics, while the amplifier's own offset and flicker noise are added afterward and stay near DC. The output chopper multiplies everything by the same square wave again: the signal returns to DC, but the offset and flicker noise are now moved up to the chopping frequency, where a low-pass filter removes them. White noise, though, has the same density at every frequency, so shifting it by the chopping frequency leaves the same density in the signal band. The noise floor is simply the amplifier's white noise.
:::
:::

::: practice
::: check
given: w = 4 | 15; c = 2 | 50; f = 0.1 | 1
answer: w*sqrt(1 + c/f)
unit: nV/√Hz
tolerance: 0.5%

## Unchopped noise at {f} kHz: {w} nV/√Hz white, {c} kHz corner?

::: misses
- [any] $e_w\sqrt{1 + f_c/f}$.
:::
:::

::: check
given: v = 5 | 20; t = 5 | 20; f = 20 | 200
answer: 2*v*t*f*1e-3
unit: µV
tolerance: 0.5%

## Residual offset: {v} mV spikes of {t} ns at {f} kHz?

::: misses
- [any] $2A f_\text{ch}$.
:::
:::

::: check
given: B = 0.2 | 5; s = 20 | 100
answer: sqrt(2*B*1e6/(s*1e3))
tolerance: 0.5%

## Noise folding factor: {B} MHz bandwidth, auto-zeroed at {s} kHz?

::: misses
- [any] $\sqrt{2B/f_s}$.
:::
:::
:::
