Electronics · Sensors and mixed-signal measurements
Converter accuracy, error budgets and reconstruction
More output bits make smaller code steps, but they do not guarantee a more accurate measurement or a smoother physical waveform. Trace the input, reference, code mapping and output timing before deciding what the number of bits means.
Lesson preparation and course links
Use the circuit and analogue-signal chapters. Keep voltage levels, timing and measurement uncertainty with every digital or sampled-data claim.
Back to the Electronics chapterAfter reading, you can
Distinguish nominal resolution from accuracy, build a stated converter error budget, and explain why a held DAC output needs reconstruction filtering.
Resolution describes the size of a code step
An analogue-to-digital converter, or ADC, assigns a digital code to an input voltage according to a transfer characteristic. For an ideal N-bit converter covering a range VREF, a useful step size is Δ = VREF/2ᴺ. The least significant bit, LSB, refers to one code step in that ideal model. Actual endpoint conventions must be read from the converter’s transfer definition.
Assume a 12-bit, 3.3 V range and nearest-level rounding for interior codes. The ideal step is 3.3/4096 = 0.8057 mV, and the interior rounding error is at most half a step, about 0.4028 mV. This is resolution, not total measurement accuracy. Clipping at the endpoints, incorrect range selection or a disturbed reference can produce errors that are not bounded by half an LSB.
Separate offsets, scale errors and nonlinearity
Offset error shifts the transfer characteristic; gain error changes its slope. Integral nonlinearity, INL, describes departure from a specified reference straight line after the stated fitting convention. Differential nonlinearity, DNL, describes the deviation of individual code widths from an ideal step. These specifications answer different questions and use definitions that must be read for the selected converter.
Reference-voltage error changes the voltage represented by a code. It can be counted separately only if the other stated error specifications exclude it. Otherwise adding both would double-count one effect. Keep systematic bounds separate from random noise. Adding absolute worst-case limits is conservative when the limits can occur together; root-sum-square arithmetic requires a justified statistical model and does not turn unknown biases into random quantities.
A converter also has an input and a clock
A conversion result depends on the analogue signal actually acquired. Some ADC inputs charge an internal sampling capacitor during an acquisition interval. Source impedance, input networks, switching and the time allowed for settling therefore influence accuracy. A sensor that produces the right steady voltage may not drive a particular sampling input fast enough without a suitable buffer, a circuit that presents a lighter load to the sensor while driving the converter input.
The sampling clock determines when observations are taken. Jitter is variation in those times, which matters more when the input changes rapidly. Anti-alias filtering must limit unwanted input content before sampling; correcting code offsets afterward cannot recover information already mixed by aliasing. Here we concentrate on converter errors and reconstruction, building on the separate lesson about sampling itself.
Do not turn a quantization model into a universal noise claim
For a sufficiently varying signal under suitable assumptions, quantization error can be approximated as uniformly distributed and uncorrelated with the input. That model gives an RMS error of Δ/√12. RMS means root mean square, a way of expressing the size of a varying quantity. The model is not a promise that a constant input will produce independent random errors that vanish by averaging.
A real converter also contributes circuit noise and distortion. Signal-to-noise ratio compares a defined signal with noise; signal-to-noise-and-distortion ratio includes specified distortion as well. Effective number of bits is derived from measured dynamic performance under stated conditions. It is consequently different from the number of output bits. Compare specifications at the relevant input frequency, sample rate, reference and measurement bandwidth.
A DAC turns each code into a physical output
A digital-to-analogue converter, or DAC, maps a code to an output quantity. For an ideal unipolar voltage DAC in this lesson, VOUT = VREF D/2ᴺ, where D is an integer from zero to 2ᴺ − 1. With eight bits and VREF = 2.56 V, the step is 10 mV; code 128 produces 1.28 V and code 255 produces 2.55 V. The highest code does not reach the reference in this convention.
Real DAC outputs have offset, gain and linearity limits, finite settling time and a permitted load range. A code update does not establish that the output has already settled to its new target. Some architectures also create a brief switching disturbance called a glitch. Select the load and the observation time from the device contract, then check the required output accuracy at that time.
A staircase is not yet the desired smooth waveform
A zero-order hold keeps each DAC value constant until the next update. Its staircase waveform contains spectral images around multiples of the update frequency, in addition to the desired signal. A reconstruction filter reduces these images while preserving the required signal band. Its transition band, amplitude response, phase and settling must fit the application.
For an ideal hold, the magnitude response includes |sin(πf/fS)/(πf/fS)|, with value one at zero frequency. At a desired 1 kHz signal and 10 kS/s update rate, the factor is about 0.9836: the hold alone reduces the amplitude by roughly 1.64%. Images near 9 kHz and 11 kHz still require attention. A larger code word does not remove those images. Interpolation can ease reconstruction-filter requirements, but it is a defined signal-processing step rather than a claim that arbitrary intermediate values restore missing information.
Build an explicitly bounded 1 V measurement budget
Assume a 12-bit ADC with a 3.3 V reference range. At a 1.000 V input, the separately specified limits are: offset 1.0 mV; ADC gain error, excluding reference error, 0.20% of reading; reference contribution 0.10% of reading; INL 1 LSB; and interior rounding 0.5 LSB. Ignore random noise only for this constructed calculation.
One LSB is 0.805664 mV. The gain and reference contributions are 2.0 mV and 1.0 mV. Add the stated absolute bounds: 1.0 + 2.0 + 1.0 + 0.805664 + 0.402832 = 5.208496 mV, approximately 5.21 mV. The number of code steps was never a complete accuracy specification.
If the manufacturer’s gain-error limit already included the reference, those terms could not be added again as independent contributions. If input settling, temperature or noise matters to the requirement, add their properly defined contributions or revise the test; do not quietly treat them as zero.
Try the reasoning
For the assumed ideal 12-bit, 3.3 V converter, what are one LSB and the interior nearest-level rounding bound?
Show the answer and reasoning
Δ = 3.3/4096 = 0.000805664 V, or about 0.8057 mV. Half a step is about 0.4028 mV. This is only the stated interior rounding model, not a bound on total real conversion error or clipping.
Why can averaging repeated conversions fail to remove an offset?
Show the answer and reasoning
Offset is a systematic shift. Averaging can reduce suitable uncorrelated random variations, but a common bias remains in every sample unless it is separately calibrated or otherwise corrected.
A DAC uses the lesson’s ideal eight-bit, 2.56 V convention. What output corresponds to code 200?
Show the answer and reasoning
The step is 2.56/256 = 0.010 V. Code 200 therefore targets 2.00 V. Real output accuracy and settling under the chosen load still require the device’s specifications.
Does a 16-bit DAC automatically remove images created by its hold operation?
Show the answer and reasoning
No. More amplitude levels reduce ideal step size. Images arise from the time-domain update and hold process; output filtering, update rate and any interpolation must be designed separately.
Why is root-sum-square inappropriate for a set of merely stated worst-case systematic bounds?
Show the answer and reasoning
It assumes a statistical relationship that those bounds do not establish. A conservative sum may be appropriate when simultaneous extremes are allowed; a statistical combination needs evidence about distributions, correlation and the intended confidence.
What to carry forward
Treat code resolution, reference accuracy, settling, noise, distortion and reconstruction as distinct parts of the signal-chain contract.
References
Sources supporting this lesson’s explanations and examples.