MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › ADC fundamentals and quantization error
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

ADC fundamentals and quantization error

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.

1. How it works

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.

2. Numbers and practice

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.

3. Pitfalls and fixes

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.

4. Quantization error versus number of bits

Bits NStepsLSB at 5VMax error
825619.5mV9.8mV
1010244.88mV2.44mV
1240961.22mV0.61mV
166553676uV38uV
416312mV156mV
General2^NVref over 2^NHalf an LSB

5. Notes

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.

6. References

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.

7. Cautions

⚠️ Three common pitfalls:
① Signal using only a corner of the range:effective resolution collapses and precision is wasted
② Believing quantization error can be removed:it is fundamental, only reducible
③ LSB computed wrong:error budget off and the wrong part count chosen

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL