An analog-to-digital converter produces a discrete numerical code from an input voltage. Its specifications include input range, resolution, conversion rate, input impedance, offset, gain error and nonlinearity. A uniform -bit converter covering voltage span has nominal spacing . The uniform-quantization error bound applies to rounding inside the range, while clipping is a different error. Sampling and quantization are separate operations: neither sufficient sampling rate nor a large bit count alone guarantees accurate reconstruction.
oversampling takes samples faster than the minimum rate required by the desired signal bandwidth. With suitable uncorrelated conversion noise, digital filtering removes noise outside that bandwidth before decimation. Independent-error averaging improves standard deviation as ; fourfold averaging ideally gains one bit of amplitude resolution. Repetition of an unchanged biased code does not produce the same benefit.
dither is an intentionally introduced fluctuation that makes a quantizer's output vary between codes, reducing signal-correlated quantization artifacts. A suitable distribution can make the averaged code carry information about a constant voltage smaller than one conversion step. The improvement requires filtering or averaging; extra noise does not improve an individual conversion or repair arbitrary calibration errors.
Let a constant input be with , between consecutive quantization levels and . Add independent centered uniform dither before nearest-level rounding, and assume that neither code clips.
The upper code is selected exactly when . This subinterval occupies fraction of the uniform distribution's support, so with a Bernoulli random variable of parameter . Thus and . Averaging independent conversions gives
For example, an input one quarter of a step above the lower code produces the upper code one quarter of the time. Its averaged code can estimate a sub-step voltage, with a finite remaining variance. Centering, independence and absence of clipping are assumptions of this calculation; a shifted dither distribution can bias the result.
rounding an unclipped voltage to equally spaced levels of separation leaves error in . If the fractional position within a conversion interval is uniformly distributed, direct integration gives zero mean and expectation value . This is a statistical model for the error, not a claim that the converter adds independent white noise for every possible input.
A smooth input probability density varying slowly on the scale of one conversion interval makes the fractional uniform quantization error approximately uniform. Large overall variance is not sufficient: discrete inputs aligned with conversion levels provide a counterexample. Clipping, coarse sampling and correlations between error and signal require separate analysis.
A full-scale range and allowed quantization step require bits. The ideal uniform-quantizer rms error is approximately . Bandwidth determines the sampling-rate requirement, but does not by itself determine a bit depth.

Articles by others on the same topic (2)

An analog-to-digital converter (ADC) is an electronic device that converts analog signals—continuous signals that can vary over time—into digital signals, which are represented in discrete numerical values. This process allows analog inputs, such as sound, light, temperature, and other physical phenomena, to be processed, stored, and manipulated by digital systems, such as computers and microcontrollers.
Many/most microcontroller boards have analog-to-digital converters built into them, it is very convenient. E.g. it is the case for the Raspberry Pi Pico.