Keywords: integral nonlinearity, INL, differential nonlinearity, DNL, analoguetodigital, analogtodigital, highspeed, high performance, data converters, ADCs, digitaltoanalog, digitaltoanalogue, converter, DACs
Related Parts 


INL/DNL Measurements for HighSpeed AnalogtoDigital Converters (ADCs) 
Manufacturers have recently introduced highperformance analogtodigital converters (ADCs) that feature outstanding static and dynamic performance. You might ask, "How do they measure this performance, and what equipment is used?" The following discussion should shed some light on techniques for testing two of the accuracy parameters important for ADCs: integral nonlinearity (INL) and differential nonlinearity (DNL). Although INL and DNL are not among the most important electrical characteristics that specify the highperformance data converters used in communications and fast dataacquisition applications, they gain significance in the higherresolution imaging applications. However, unless you work with ADCs on a regular basis, you can easily forget the exact definitions and importance of these parameters. The next section therefore serves as a brief refresher course. INL and DNL DefinitionsDNL error is defined as the difference between an actual step width and the ideal value of 1LSB (see Figure 1a). For an ideal ADC, in which the differential nonlinearity coincides with DNL = 0LSB, each analog step equals 1LSB (1LSB = V_{FSR}/2^{N}, where V_{FSR} is the fullscale range and N is the resolution of the ADC) and the transition values are spaced exactly 1LSB apart. A DNL error specification of less than or equal to 1LSB guarantees a monotonic transfer function with no missing codes. An ADC's monotonicity is guaranteed when its digital output increases (or remains constant) with an increasing input signal, thereby avoiding sign changes in the slope of the transfer curve. DNL is specified after the static gain error has been removed. It is defined as follows:DNL = [(V_{D+1} V_{D})/V_{LSBIDEAL}  1]  , where 0 < D < 2^{N } 2. V_{D} is the physical value corresponding to the digital output code D, N is the ADC resolution, and V_{LSBIDEAL} is the ideal spacing for two adjacent digital codes. By adding noise and spurious components beyond the effects of quantization, higher values of DNL usually limit the ADC's performance in terms of signaltonoise ratio (SNR) and spuriousfree dynamic range (SFDR).Figure 1a. To guarantee no missing codes and a monotonic transfer function, an ADC's DNL must be less than 1LSB. INL error is described as the deviation, in LSB or percent of fullscale range (FSR), of an actual transfer function from a straight line. The INLerror magnitude then depends directly on the position chosen for this straight line. At least two definitions are common: "best straightline INL" and "endpoint INL" (see Figure 1b):
INL = 
[(V_{D}  V_{ZERO})/V_{LSBIDEAL}]  D 
, where 0 < D < 2^{N}1. Figure 1b. Best straightline and endpoint fit are two possible ways to define the linearity characteristic of an ADC. Transfer Function The transfer function for an ideal ADC is a staircase in which each tread represents a particular digital output code and each riser represents a transition between adjacent codes. The input voltages corresponding to these transitions must be located to specify many of an ADC's performance parameters. This chore can be complicated, especially for the noisy transitions found in highspeed converters and for digital codes that are near the final result and changing slowly. Transitions are not sharply defined, as shown in Figure 1b, but are more realistically presented as a probability function. As the slowly increasing input voltage passes through a transition, the ADC converts more and more frequently to the next adjacent code. By definition, the transition corresponds to that input voltage for which the ADC converts with equal probability to each of the flanking codes. The Right Transition A transition voltage is defined as the input voltage that has equal probabilities of generating either of the two adjacent codes. The nominal analog value, corresponding to the digital output code generated by an analog input in the range between a pair of adjacent transitions, is defined as the midpoint (50% point) of this range. If the limits of the transition interval are known, this 50% point is calculated easily. The transition point can be determined at test by measuring the limits of the transition interval, and then dividing the interval by the number of times each of the adjacent codes appears within it. Generic Setup for Testing Static INL and DNLINL and DNL can be measured with either a quasiDC voltage ramp or a lowfrequency sine wave as the input. A simple DC (ramp) test can incorporate a logic analyzer, a highaccuracy DAC (optional), a highprecision DC source for sweeping the input range of the device under test (DUT), and a control interface to a nearby PC or XY plotter.If the setup includes a highaccuracy DAC (much higher than that of the DUT), the logic analyzer can monitor offset and gain errors by processing the ADC's output data directly. The precision signal source creates test voltages for the DUT by sweeping slowly through the input range of the ADC from zero scale to full scale. Once reconstructed by the DAC, each test voltage at the ADC input is subtracted from its corresponding DC level at the DAC output, producing a small voltage difference (V_{DIFF}) that can be displayed with an XY plotter and linked to the INL and DNL errors. A change in quantization level indicates differential nonlinearity, and a deviation of V_{DIFF} from zero indicates the presence of integral nonlinearity. Analog Integrating Servo LoopAnother way to determine static linearity parameters for an ADC, similar to the preceding but more sophisticated, is using an analog integrating servo loop. This method is usually reserved for test setups that focus on highprecision measurements rather than speed.A typical analog servo loop (see Figure 2) consists of an integrator and two current sources connected to the ADC input. One source forces a current into the integrator, and the other serves as a current sink. A digital magnitude comparator connected to the ADC output controls both current sources. The other input of the magnitude comparator is controlled by a PC, which sweeps it through the 2^{N}  1 test codes for an Nbit converter. Figure 2. This circuit configuration is an analog integrating servo loop. If the polarity of feedback around the loop is correct, the magnitude comparator causes the current sources to servo the analog input around a given code transition. Ideally, this action produces a small triangular wave at the analog inputs. The magnitude comparator controls both rate and direction for these ramps. The integrator's ramp rate must be fast when approaching a transition, yet sufficiently slow to minimize peak excursions of the superimposed triangular wave when measuring with a precision digital voltmeter (DVM). For INL/DNL tests on the MAX108, the servoloop board connects to the evaluation board through two headers (see Figure 3). One header establishes a connection between the MAX108's primary (or auxiliary) output port and the magnitude comparator's latchable input port (P). The second header ensures a connection between the servo loop (the magnitude comparator's Q port) and a computergenerated digital reference code. Figure 3. With the aid of the MAX108EVKIT and an analog integrating servo loop, this test setup determines the MAX108's INL and DNL characteristics. The fully decoded decision resulting from this comparison is available at the comparator output P > QOUT, and is then passed on to the integrator configurations. Each comparator result controls the logic input of the switch independently and generates voltage ramps as required to drive succeeding integrator circuits for both inputs of the DUT. This approach has its advantages, but it also has several drawbacks:
Figure 4a. This plot shows typical integral nonlinearity for the MAX108 ADC, captured with the analog integrating servo loop. Figure 4b. This plot shows typical differential nonlinearity for the MAX108, captured with the analog integrating servo loop. To eliminate negative effects in the previous approach, you can replace the servo loop's integrator section with an Lbit successiveapproximation register (SAR) that captures the DUT's output codes, an Lbit DAC, and a simple averaging circuit. Together with the magnitude comparator, this circuit forms a SARtype converter configuration (see Figure 5 and "SAR Converter" discussion below), in which the magnitude comparator programs the DAC, reads its outputs, and performs a successive approximation. Meanwhile, the DAC presents a highresolution DC level to the input of the Nbit ADC under test. In this case, a 16bit DAC was chosen to trim the ADC to 1/8LSB accuracy and obtain the best possible transfer curve. Figure 5. Successive approximation and a DAC configuration replace the integrator section of the analog servo loop. The advantage of an averaging circuit is apparent when noise causes the magnitude comparator to toggle and become unstable, as it does on approaching its final result. Two divideby counters are included in the averaging circuit. The "reference" counter has a period of 2^{M} clock cycles, where M is a programmable integer governing the period (and hence the test time). A "data" counter, which increments only when the magnitude comparator output is high, has a period equal to onehalf of the first 2^{M1} cycles. Together, the reference and data counters average the number of highs and lows, store the result in a flipflop, and pass it on to the SAR register. This procedure is repeated 16 times (in this case) to generate the complete output code word. Like the previous method, this one has advantages and disadvantages:
A SAR converter works like the oldfashioned chemist's balance. On one side is the unknown input sample, and on the other is the first weight generated by the SAR/DAC configuration (the most significant bit, which equals half of the fullscale output). If the unknown weight is larger than 1/2FSR, this first weight remains on the balance and is augmented by 1/4FSR. If the unknown weight is smaller, the weight is removed and replaced by a weight of 1/4FSR. The SAR converter then determines the desired output code by repeating this procedure N times, progressing from the MSB to the LSB. N is the resolution of the DAC in the SAR configuration, and each weight represents 1 binary bit. Dynamic Testing of INL and DNLTo assess an ADC's dynamic nonlinearity, you can apply a fullscale sinusoidal input and measure the converter's signaltonoise ratio (SNR) over its entire fullpower input bandwidth. The theoretical SNR for an ideal Nbit converter (subject only to quantization noise, with no distortion) is as follows:SNR (in dB) = N×6.02 +1.76. Embedded in this figure of merit are the effects of glitches, integral nonlinearity, and samplingtime uncertainty. You can obtain additional linearity information by performing the SNR measurement at a constant frequency and as a function of the signal amplitude. Sweeping the entire amplitude range, for example, from zero to full scale and vice versa, produces large deviations from the source signal, as source amplitude approaches the converter's fullscale limit. To determine the cause of these deviations, while ruling out the effects of distortion and clock instability, use a spectrum analyzer to analyze the quantizationerror signal as a function of frequency.Countless other approaches are available for testing the static and dynamic INL and DNL of both high and lowspeed data converters. The intent here has been to give you a better understanding of the generation of powerful TOCs (typical operating characteristics) using tools and techniques that are simple but still smart and precise. References


Related Parts  
MAX104  ±5V, 1Gsps, 8Bit ADC with OnChip 2.2GHz Track/Hold Amplifier  
MAX105  Dual, 6Bit, 800Msps ADC with OnChip, Wideband Input Amplifier  Samples 
MAX106  ±5V, 600Msps, 8Bit ADC with OnChip 2.2GHz Bandwidth Track/Hold Amplifier  
MAX107  Dual, 6Bit, 400Msps ADC with OnChip, Wideband Input Amplifier  Samples 
MAX108  ±5V, 1.5Gsps, 8Bit, Ultra HighSpeed, A to D Converter with OnChip 2.2GHz Track/Hold Amplifier 
Next Steps  
EEMail  Subscribe to EEMail and receive automatic notice of new documents in your areas of interest. 
Download  Download, PDF Format (112kB) 
© Nov 20, 2001, Maxim Integrated Products, Inc. 
APP 283: Nov 20, 2001
TUTORIAL 283, AN283, AN 283, APP283, Appnote283, Appnote 283 