---
title: Data acquisition and ADCs
heading: Resolution, quantization noise and effective bits
eyebrow: C11 · Lesson 22 · Data acquisition and ADCs
xp: 40
---

::: hook
Almost every measurement today ends in an analog-to-digital converter, whether it's inside a meter, a scope or a microcontroller logging a sensor. An ADC's bit count says how finely it can divide its input range, but not how well it actually performs: noise, nonlinearity and timing jitter all eat into it, and a "16-bit" converter may deliver only 12 useful bits. Knowing the quantization limit, what the **effective number of bits** means and how the sampling clock limits high-frequency accuracy lets you choose a converter, and set its range and sample rate, for the measurement you need.
:::

::: play
- A full-scale sine (dashed) and the same sine after an N-bit converter (solid): each sample snaps to the nearest of $2^N$ levels.
- At 3 bits the staircase is coarse and the error large; each extra bit halves the step. The readouts give the step size for a ±1 V input and the ideal signal-to-noise ratio, 6.02N + 1.76 dB.
- The difference between the two curves is the **quantization noise**, about $q/\sqrt{12}$ RMS for a busy signal.
:::
:::

```sim plot
view: graph
x: t = 0..2 ms
y: v = -1.2..1.2 V
slider: N = 1..12 = 3 step 1
plot: sin(2*pi*1000*t*1e-3) | dashed | samples: 2000 | label: input
plot: round(sin(2*pi*1000*t*1e-3)*(2^(N - 1) - 0.5))/(2^(N - 1) - 0.5) | samples: 4000 | label: N-bit output
readout: step size for ±1 V, mV = 2000/2^N | digits: 4
readout: ideal SNR = 6.02*N + 1.76 dB
```

::: predict
## What is the best signal-to-noise ratio an ideal 12-bit ADC can give for a full-scale sine?

- [ ] 12 dB
- [ ] 48 dB
- [x] 74 dB
- [ ] 120 dB

::: reveal
74 dB: $6.02 \times 12 + 1.76$. Each bit halves the quantization step and so adds 6 dB. Real 12-bit converters reach 68 to 72 dB, because their own noise and distortion add to the quantization noise.
:::
:::

::: nameit
## Resolution and quantization noise

An N-bit converter divides its full-scale range FS into $2^N$ steps of

$$q = \frac{\text{FS}}{2^N}$$

Rounding to the nearest step leaves an error that, for a signal that moves across many steps, is spread evenly over ±q/2, with an RMS of

$$\frac{q}{\sqrt{12}}$$

For a full-scale sine this gives the ideal

$$\text{SNR} = 6.02N + 1.76 \text{ dB}$$

## Effective number of bits

A real converter's measured **SINAD** (signal to noise and distortion) defines its **effective number of bits**:

$$\text{ENOB} = \frac{\text{SINAD} - 1.76}{6.02}$$

A signal smaller than full scale loses SNR in proportion: one at a tenth of full scale gives up 20 dB. Choose the range so the signal fills it.

## Timing jitter

Uncertainty $\sigma_j$ in the sampling instant turns a sine's slope into noise, limiting the SNR at input frequency f to

$$\text{SNR}_\text{jitter} = -20\log_{10}(2\pi f\sigma_j)$$

so high-frequency, high-resolution sampling needs a very clean clock.

## Oversampling

Sampling faster than needed and averaging down (as in C9.23) spreads quantization noise over a wider band, gaining $10\log_{10}(\text{OSR})$ dB: one bit for every factor of 4 in oversampling, since $10\log_{10}4 = 6$ dB. Delta-sigma converters push this much further with noise shaping.
:::

::: example
## A 12-bit ADC spans 0 to 3.3 V. What are its step and its quantization noise?

::: solution
1. **Step size.**
   $$\begin{aligned} q &= \frac{3.3\ \text{V}}{4096} \\ &= 0.806\ \text{mV} \end{aligned}$$
2. **Quantization noise.**
   $$\begin{aligned} v_q &= \frac{0.806\ \text{mV}}{\sqrt{12}} \\ &= 0.233\ \text{mV RMS} \end{aligned}$$
3. **In practice.** A 1 mV change in a sensor's output is just over one step.

**Answer:** a step of 0.806 mV, and 0.233 mV RMS of quantization noise.
:::
:::

::: example
## A converter measures 68 dB SINAD. How many effective bits does it have?

::: solution
1. **Effective bits.**
   $$\begin{aligned} \text{ENOB} &= \frac{68 - 1.76}{6.02} \\ &= 11.0\ \text{bits} \end{aligned}$$
2. **What part might give this.** A 14-bit part that loses three bits to noise and distortion would give this.

**Answer:** 11.0 effective bits.
:::
:::

::: example
## A 12-bit ADC is oversampled 16 times and averaged, with enough noise to dither it. How many bits of resolution does that gain?

::: solution
1. **Noise reduction.** Averaging 16 samples cuts the noise by
   $$\sqrt{16} = 4$$
   which is 12 dB.
2. **Bits gained.** Each bit is 6.02 dB, so it gains 2 bits: effectively 14-bit resolution at a sixteenth of the sample rate.
3. **When it works.** It only works if the input noise is at least about one LSB, so that the samples differ.

**Answer:** 2 bits, for effectively 14-bit resolution.
:::
:::

::: check
given: FS = 2 | 3.3 | 10; N = 8 | 12 | 16
answer: FS/2^N*1000
unit: mV
tolerance: 0.5%

## What is the step size of an {N}-bit converter with a {FS} V full-scale range?

::: right
Right. $\text{FS}/2^N$ = {answer} mV.
:::

::: misses
- [FS/N*1000] The range divides into $2^N$ steps, not N.
- [any] Not yet. $\text{FS}/2^N$.
:::
:::

::: check
given: N = 8 | 10 | 14 | 16 | 24
answer: 6.02*N + 1.76
unit: dB
tolerance: 0.5%

## What is the ideal SNR of an {N}-bit converter for a full-scale sine?

::: right
Right. $6.02N + 1.76$ = {answer} dB.
:::

::: misses
- [6.02*N] Add 1.76 dB, from the sine's power relative to uniform quantization noise.
- [any] Not yet. $6.02N + 1.76$.
:::
:::

::: check
given: S = 50 | 62 | 80 | 92
answer: (S - 1.76)/6.02
tolerance: 0.5%

## A converter's measured SINAD is {S} dB. What is its ENOB?

::: right
Right. $(\text{SINAD} - 1.76)/6.02$ = {answer} bits.
:::

::: misses
- [S/6.02] Subtract 1.76 first.
- [any] Not yet. Invert the ideal-SNR formula.
:::
:::

::: check
given: FS = 2 | 5; N = 10 | 16
answer: FS/2^N/sqrt(12)*1e6
unit: µV
tolerance: 0.5%

## What is the RMS quantization noise of an {N}-bit converter over {FS} V?

::: right
Right. $q/\sqrt{12}$ = {answer} µV.
:::

::: misses
- [FS/2^N*1e6] That's the step itself; the RMS noise is $q/\sqrt{12}$.
- [any] Not yet. $q/\sqrt{12}$.
:::
:::

::: check
given: f = 1 | 10 | 100; sj = 0.1 | 1 | 10
answer: -20*log(2*pi*f*1e6*sj*1e-12)
unit: dB
tolerance: 0.5%

## A converter's clock has {sj} ps of RMS jitter. What SNR limit does that set for a {f} MHz input?

::: right
Right. $-20\log_{10}(2\pi f\sigma_j)$ = {answer} dB.
:::

::: misses
- [any] Not yet. $-20\log_{10}(2\pi f\sigma_j)$.
:::
:::

::: check
given: d = 6 | 20 | 40; N = 12 | 16
answer: 6.02*N + 1.76 - d
unit: dB
tolerance: 0.5%

## An ideal {N}-bit converter digitizes a sine {d} dB below full scale. What SNR does it get?

::: right
Right. The ideal SNR minus {d} dB: {answer} dB.
:::

::: misses
- [6.02*N + 1.76] The quantization noise stays the same while the signal shrinks.
- [any] Not yet. Subtract the backoff.
:::
:::

::: check
kind: choice

## A 16-bit converter sampling at 100 kS/s records a sensor whose signal of interest is below 1 kHz, but whose wiring picks up 60 kHz interference. What must come before the ADC?

- [ ] Nothing: 16 bits are enough
- [x] An analog anti-aliasing low-pass filter, or the 60 kHz interference will alias to 40 kHz
- [ ] A digital filter after the ADC
- [ ] A higher-resolution ADC

::: misses
- [1] Bits don't stop aliasing.
- [3] Once sampled, the aliased interference can't be told from real signal.
- [4] Resolution doesn't address aliasing.
:::
:::

::: check
kind: parts
given: N = 10 | 12 | 16 | 24; V = 2.5 | 3.3 | 5

## An {N}-bit ADC spans 0 to {V} V.

::: part
answer: V/2^N*1e6
unit: µV
tolerance: 0.5%

### What is one LSB?

::: misses
- [any] $V/2^N$.
:::
:::

::: part
answer: V/2^N/sqrt(12)*1e6
unit: µV
tolerance: 0.5%

### What is its rms quantization noise?

::: misses
- [any] LSB/√12.
:::
:::
:::

::: check
kind: parts
given: S = 62 | 74 | 86; k = 4 | 16 | 64

## An ADC measures {S} dB SINAD; it is oversampled and averaged by {k} with enough dither.

::: part
answer: (S - 1.76)/6.02
tolerance: 0.5%

### What is its ENOB?

::: misses
- [any] $(\text{SINAD} - 1.76)/6.02$.
:::
:::

::: part
answer: (S - 1.76)/6.02 + log(k)/log(4)
tolerance: 0.5%

### What effective resolution does averaging give?

::: misses
- [any] Half a bit per doubling: $\log_4 k$ more bits.
:::
:::
:::

::: explain
## Why does each extra bit of resolution add about 6 dB of SNR?

::: model
Each extra bit doubles the number of levels across the same range, halving the step size. The quantization error is spread over plus and minus half a step, so its RMS halves too, and halving a noise voltage lowers its power by a factor of 4, which is $10\log_{10}4 = 6.02$ dB. The signal's power, for a full-scale sine, doesn't change, so the ratio improves by 6.02 dB per bit; the constant 1.76 dB comes from comparing a sine's power with the uniform error's.
:::
:::

::: practice

::: check
given: FS = 1 | 4; N = 10 | 14
answer: FS/2^N*1000
unit: mV
tolerance: 0.5%

## Step size for {N} bits over {FS} V?

::: misses
- [any] $\text{FS}/2^N$.
:::
:::

::: check
given: N = 8 | 10 | 12 | 14 | 16 | 18 | 24
answer: 6.02*N + 1.76
unit: dB
tolerance: 0.5%

## Ideal SNR of {N} bits?

::: misses
- [any] $6.02N + 1.76$.
:::
:::

::: check
given: S = 50 | 56 | 62 | 68 | 74 | 86 | 98
answer: (S - 1.76)/6.02
tolerance: 0.5%

## ENOB for {S} dB SINAD?

::: misses
- [any] $(S - 1.76)/6.02$.
:::
:::
:::
