An ADC turns a continuous voltage into discrete numbers, and quantization error is unavoidable on the way. This page walks the three steps of sampling, quantizing and coding, and how the error is computed.
The three steps: sampling turns the continuous signal into discrete time points at rate fs; hold keeps each sampled value until conversion finishes; quantization and coding map each sample onto the nearest of 2^N levels and encode it as a digital word. Every ADC goes through these steps, and its quality is the quality of each one.
Quantization and error: quantization slices the amplitude into 2^N steps, each of width LSB equal to Vref over 2^N. Any sample landing inside a step codes as the same word, so the error is at most plus or minus half an LSB, the quantization error, which is fundamental and cannot be removed. With 8 bits and Vref of 5V, LSB is about 19.5mV and the maximum error about 9.8mV; more bits mean finer steps and less error.
Reducing the error: raise the resolution, more bits shrink the LSB; add a touch of dither to randomize the quantization error and avoid periodic distortion; and condition the front end so the signal fills the whole Vref range instead of a corner. Quantization error combined with noise gives SQNR, and engineering judges an ADC by bits and signal-to-noise together.
| Bits N | Steps | LSB at 5V | Max error |
|---|---|---|---|
| 8 | 256 | 19.5mV | 9.8mV |
| 10 | 1024 | 4.88mV | 2.44mV |
| 12 | 4096 | 1.22mV | 0.61mV |
| 16 | 65536 | 76uV | 38uV |
| 4 | 16 | 312mV | 156mV |
| General | 2^N | Vref over 2^N | Half an LSB |
Bits set how fine the steps are, and filling the whole Vref range avoids wasting precision. Quantization error cannot be eliminated in principle, only reduced with more bits.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: ADC principles per GB/T 4728 and IEC 60748 series. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.