Differential nonlinearity describes how wide each output code’s input range is compared with an ideal analog-to-digital converter step. If the next transition arrives early, the code covers a narrower interval. If the transition arrives late relative to the starting boundary, the interval is wider. Making a small table from invented thresholds helps separate a code’s width from the displacement of the thresholds that bound it.
Suppose a longer converter transfer characteristic contains four consecutive interior codes labelled A through D. Choose a local origin for the input so the measured transition coordinates are 0, 0.8, 2.0, 2.5 and 4.0, with all positions expressed in units of the ideal least significant bit, or LSB. Assign each interval from one transition to the next to its corresponding code. Code A covers 0 to 0.8, B covers 0.8 to 2.0, C covers 2.0 to 2.5 and D covers 2.5 to 4.0. The demonstration uses finite interior intervals and avoids endpoints at which a real converter may saturate.

Subtracting successive boundaries gives widths 0.8, 1.2, 0.5 and 1.5 ideal steps. To obtain differential nonlinearity in LSB, divide the measured width by the chosen ideal width and subtract one. With unity as the width of the ideal step in this normalized example, the four results are −0.2, +0.2, −0.5 and +0.5 LSB. Negative values mark narrow intervals and positive values mark wide ones.
Use the reference transition coordinates 0, 1, 2, 3 and 4 in the example. The measured departures from that reference are 0, −0.2, 0, −0.5 and 0 LSB. At the transition into code C, the observed departure is zero. Code C still has a width of half the ideal step because the next transition is early. Code D begins with that displaced boundary and ends at the ideal fourth boundary. The larger width compensates for the preceding narrow interval over these two codes.

Integral nonlinearity describes transition or transfer-curve displacement relative to a reference straight line under the measurement convention. The chosen reference matters. Some documents use a line through specified endpoints. Others use a best-fit reference after accounting for offset and gain. The worked table uses the explicitly stated boundaries of an ideal unity-spacing reference. On a data sheet, check the line convention before comparing reported errors across devices.
If two adjacent transitions coincide, the interval between them has zero width and its differential nonlinearity is −1 LSB. An ideal continuous input sweep with zero measurement noise has no finite range in which that output code can appear. A zero count in one short capture has a different interpretation. A narrow interval may be missed by sparse or noisy observations, or the applied waveform may have spent little time in that part of the range.
A histogram test can estimate widths from how often codes appear. For a suitable uniformly traversing input, ideal code probabilities in the valid region are equal. For another waveform, the expected histogram can vary with position; a sine wave, for example, naturally spends different fractions of its cycle across the input range. Compare observed counts against the expected distribution for the stimulus before attributing differences only to the converter.
Record the transfer interval used, the nominal ideal step, the reference-line definition and how the transitions were estimated. Keep supply, reference and acquisition conditions with the test if comparing boards. For the five boundaries above, a useful check is to verify that the four widths sum to 4.0. The positive and negative differential errors cancel across that local span, while large individual variations are still visible per code.
Choose a table with two columns for each transition and a distinct group of rows for adjacent-code widths. Labelling both with their units helps readers keep the steps straight. A reported maximum differential error alone discards the location of narrow intervals, and a maximum reference departure alone can obscure alternating width errors.
If one ideal step in a hypothetical test is 2 millivolts, the table’s width for C corresponds to 1 millivolt and the width for D corresponds to 3 millivolts. The resulting errors in voltage are −1 and +1 millivolts. Divide each by the ideal 2-millivolt step to recover −0.5 and +0.5 LSB. Reporting both units can help when another instrument measures the input transitions directly in volts and the converter documentation reports its limits in LSB.
Source notes. Texas Instruments’ ADC parameter note describes step-size and transfer-function deviations in LSB. Analog Devices’ converter testing note describes code histograms, missing codes and a fitted INL reference. The five thresholds above are invented. Browse the measurement resources and technical article directory for related material.