An analog-to-digital converter can produce a three-bit output word while one of its eight possible codes has no input interval assigned to it. Counting the available binary words does not establish the converter's actual code-transition behavior.
Differential nonlinearity examines the widths of those input intervals. It describes a different property from container size, sample rate, or the number of bits printed in a data format.
Analog Devices' university chapter defines DNL relative to an ideal one-LSB code width. Its converter-accuracy article relates the ideal width to full-scale span divided by the number of codes. The transfer functions below are original mathematical examples, not measurements of an ADC or specifications for a commercial device.
Declare a finite-range quantizer
Invent a deterministic monotone three-bit converter over the bounded input interval from zero volts inclusive to eight volts exclusive. Assign codes zero through seven in increasing input order.
For this example, the ideal code width q is 8 V divided by 8, or 1 V. Ideal internal transition thresholds would be 1, 2, 3, 4, 5, 6, and 7 V.
Use half-open code intervals: a code includes its lower threshold and excludes its upper threshold. Explicitly bounding the first and last intervals avoids treating their saturation regions as ordinary finite widths. Inputs outside the declared range are not analyzed.
Real ADC data sheets can define transfer references and endpoint conventions differently. These custom boundaries make the following ledger unambiguous; they are not a substitute for a manufacturer's test definition.
Replace the ideal thresholds
Now choose actual internal thresholds of 1, 2, 3.4, 4, 4, 6.2, and 7 V. Including the two declared endpoints, the boundary list is:
0, 1, 2, 3.4, 4, 4, 6.2, 7, 8 V.
Subtracting adjacent boundaries gives widths for codes zero through seven:
1, 1, 1.4, 0.6, 0, 2.2, 0.8, 1 V.
These widths still add to the full eight-volt span. That sum alone does not establish that the widths are equal or that every code appears. A wider interval can absorb input range that another interval lost.
Code two occupies 2 ≤ input < 3.4 V. Code three occupies 3.4 ≤ input < 4 V. Code four would occupy 4 ≤ input < 4 V, which is empty under the stated interval rule.
Normalize width error to one LSB
Define DNL for a finite code interval as width/q − 1, expressed in LSB units. A width equal to q gives zero DNL. A narrower interval gives negative DNL and a wider interval gives positive DNL.
The eight DNL values in this example are:
0, 0, +0.4, −0.4, −1, +1.2, −0.2, 0 LSB.
Code four's zero width corresponds to DNL = −1 LSB. Code five's 2.2 V width corresponds to +1.2 LSB. These are signed width errors, not voltages until multiplied by the chosen one-volt ideal step.
The arithmetic distinguishes a nominal eight-code representation from seven codes with nonempty intervals. The output format can encode code four, but the declared transfer function never emits it for an in-range input.
Trace the missing transition
At 3.7 V, the converter emits code three. At exactly 4 V, it emits code five under the chosen lower-inclusive convention. The output skips code four while input increases continuously through that threshold.
Storing those output words in a larger integer container would preserve the same omission. A display can invent an interpolated estimate for an absent code, but it cannot turn that estimate into an observation that the converter actually supplied.
This deterministic construction ignores noise and transition uncertainty. A real noisy device can alternate among codes near a threshold, requiring a defined measurement procedure. That extra behavior does not change what the idealized empty interval means here.
A wide code does not by itself prove a missing code
Consider a separate monotone eight-code quantizer over the same range. Give its widths as 2.2 V, followed by six widths of 0.8 V, followed by 1 V.
The widths sum to 2.2 + 4.8 + 1 = 8 V. Every interval has positive width, so every code occurs for some input. Nevertheless, the first code has DNL = +1.2 LSB.
An upper positive DNL value above one therefore does not, by itself, identify a missing code in this model. The complete width pattern matters. A negative-one value directly identifies zero width under the declared monotone finite-interval definition.
Likewise, if all such interval widths are strictly positive, their DNL values are strictly greater than minus one. Claims involving manufacturer guarantees must retain the actual specified bounds, conditions, and endpoint treatment rather than importing a shorthand from another converter.
Transition position and interval width differ
Using the endpoint-fixed ideal threshold kq as a reference, the third internal threshold in the first construction is 3.4 V instead of 3 V. Its position deviation is +0.4 V.
The fifth threshold is 4 V instead of 5 V, a position deviation of −1 V. Position deviations depend on accumulated width differences. They are not the same list as the per-code width deviations.
This is the distinction behind integral and differential linearity descriptions. A common offset applied to every boundary leaves interval differences unchanged, while shifting their positions relative to a fixed external reference. The selected reference line and any gain or offset removal consequently belong beside a reported linearity result.
An absent histogram bin needs stimulus context
Suppose a short robot acquisition never produces code two. That observation alone does not establish that the ADC has a missing code. The applied signal might never have entered code two's input interval, or the record might have sampled it too briefly.
A code-density measurement needs a known stimulus and sufficient observation to relate counts to interval widths. In contrast, the worked quantizer explicitly supplies its entire threshold map, so its zero-width conclusion does not depend on a finite random sample.
For robot measurements, retaining the transfer definition, reference step, code widths, stimulus conditions, and test scope gives DNL a concrete meaning. Resolution counts possible labels; differential linearity asks how analog input range is actually allocated to those labels.
Sources checked October 23, 2026: Analog Devices University Program, Chapter 20 Analog to Digital Conversion, DNL and converter terminology, web edition as accessed: https://wiki.analog.com/university/courses/electronics/text/chapter-20
Analog Devices, Rob Reeder, An Inside Look at High Speed Analog-to-Digital Converter Accuracy, dated April 1, 2015, ideal code width and linearity definitions: https://www.analog.com/en/resources/technical-articles/an-inside-look-at-high-speed-analog-to-digital-converter-accuracy-part-one.html
Illustration note: A generic sensor or acquisition-component scene is a concept illustration. It does not show the invented transfer curve, an identified converter, or a measured DNL result.