Quantization Error & Dynamic Range
Quantization replaces an interval of input values with one code; its step sets the ideal error bound, while noise, nonlinearity, clipping, correlation, reference error, and converter architecture decide real dynamic range and effective bits.
Quantization is a many-to-one map: every value inside one decision interval produces the same code. That information loss is controlled by step size only in the ideal model. A real converter adds offset, gain, nonlinearity, noise, reference drift, missing codes, and clipping.
Ideal uniform quantization #
For range and bits,
With rounding, ideal error lies approximately in . If error samples are uniformly distributed and uncorrelated with the signal, their variance is
For a full-scale sine wave, this gives the familiar ideal ratio
The assumptions matter. A small periodic signal can produce correlated, tonal error rather than white noise; a DC input may toggle among only a few codes; clipping violates the bounded-error model entirely.
Dynamic range terms #
| Metric | Includes | Excludes/qualification |
|---|---|---|
| SNR | noise relative to signal | usually excludes harmonics and DC |
| SINAD | noise plus distortion | measurement bandwidth and tone matter |
| ENOB | SINAD mapped to ideal-bit formula | performance metric, not literal missing bits |
| SFDR | largest spur below signal | does not summarize total noise |
| Noise-free codes | peak-to-peak code spread at DC | depends on sample count and conditions |
A converter can have excellent SNR and poor SFDR, or excellent DC noise-free resolution and poor high-frequency ENOB. State frequency, amplitude, bandwidth, sample rate, input range, and temperature with every performance number.
Dither and oversampling #
Dither deliberately adds noise so quantization error decorrelates from the signal. It can replace deterministic spurs with a smoother noise floor and recover sub-LSB average information, but it does not make individual samples exact. Averaging independent noise reduces RMS uncertainty approximately as ; it helps only if noise actually causes code variation and the signal is stable over the average.
Oversampling spreads ideal quantization-noise power across a wider Nyquist band. Filtering and decimation then remove out-of-band noise, yielding roughly 3 dB SNR improvement per doubled sample rate for an unshaped quantizer. Delta-sigma conversion adds noise shaping and can improve faster in-band, at the cost of filtering latency and overload constraints.
Error-budget workflow #
Choose range so expected extremes do not clip but still use enough codes. Convert every error source to common units — volts, LSB, or input-referred RMS — over the relevant bandwidth and temperature. Separate systematic errors that can be calibrated from random noise, and monotonicity from absolute accuracy. Finally verify with a representative source impedance, reference, clock, layout, and processing chain; converter bits alone are not a system specification.
Sources
- bookComputer Electronics: Digital Electronic Devicespdfnotes
- docsAnalog Devices MT-001 — Taking the Mystery out of the Infamous Formula SNR = 6.02N + 1.76dB
- docsAnalog Devices MT-003 — Understand SINAD, ENOB, SNR, THD, THD+N, and SFDR