Part 7 · Data Conversion
DC errors — offset, gain, INL, DNL
Key point: offset and gain are a shift and a tilt. Two points take them out. The bow and a missing code stay.
Previous
Next
5-bit cartoon on a 5 V box, so the shapes are visible. Top is the transfer. Middle is INL. Bottom is DNL. A 12-bit LSB would vanish on this plot.
1
Trimmed, not perfect.
Offset is 10 mV (0.2% FS). Gain is +0.2%. The bow knob is +0.4 LSB. Worst DNL is −0.17 LSB. No missing code.
Well-trimmed
2
Offset is a parallel shift.
280 mV (5.6% FS). Gain is +0.0%. Bow is +0.0 LSB. Worst DNL is 0.00 LSB. No missing code. Two points take this out.
Offset-heavy
3
Gain tilts the line.
Offset is 0 mV. Gain is +6.0%. Bow is +0.0 LSB. Worst DNL is 0.00 LSB. No missing code. Same two-point cal.
Gain-heavy
4
The bow stays after the fit.
Offset and gain are zero. The bow knob is +4.5 LSB. Worst DNL is 0.00 LSB. No missing code. The INL plot peaks at 4.49 LSB.
INL bow
5
DNL through −1 LSB removes a code.
The bow is only +0.4 LSB. Worst DNL is −1.19 LSB. Missing code is YES. That stair is gone. Two-point cal does not bring it back.
Missing code
Reset the page
Put datasheet offset, gain, INL, and DNL into the ADC Tools calculator for a real error budget. The series hub is the outline.
Offset, gain, INL, DNL
\[ v_{\mathrm{out}} = (1+\varepsilon_g)\,v_{\mathrm{in}} + V_{\mathrm{os}} + \mathrm{INL}(v_{\mathrm{in}}) \]
\[ \mathrm{DNL}_k = \dfrac{\Delta v_k}{\mathrm{LSB}} - 1 \]
→
—
\[ \mathrm{INL} \approx \sum \mathrm{DNL}\quad\text{(plus a smooth bow)} \]
→
—
5-bit, 5 V on purpose — a 12-bit LSB is 1.2 mV and would vanish on this plot.
Offset and gain still calibrate out (two points). INL and a missing code do not.