3

Click here to load reader

Diagnosing ADC nonlinearity at the bit level

  • Upload
    mf

  • View
    218

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Diagnosing ADC nonlinearity at the bit level

IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT. VOL. 38, NO. 6. DECEMBER 1989 113Y

Short Papers

Diagnosing ADC Nonlinearity at the Bit Level

MAHMOUD FAWZY WAGDY, SENIOR MEMBER, IEEE

sion. Only harmonics satisfying the sampling theorem are consid- ered, i.e., 1 5 n 5 N/2. When the ADC most significant bit has failure, the nth harmonic after a DFT for the ith sequence where i = B - 1 is given by

Abstract-This paper discusses two methods for identifying analog- to-digital converter (ADC) nonlinearity at the bit level. The integral nonlinearity (INL) is analyzed in the frequency domain using both DFT and Walsh transforms to determine which ADC bit is responsible for which harmonic or bin. It is shown that the effects of different bits on the outputs of either transform are separable. A 5-bit ADC example is investigated using both transforms to illustrate the implementation of the techniques.

I. INTRODUCTION The most famous methods for dynamic testing of analog-to-dig-

ita1 connecters (ADC’s) are the code density histogram test, and the spectral analysis FFT test. The histogram test is most sensitive to differential nonlinearity (DNL) errors, whereas the FFT test is most sensitive to integral nonlinearity (INL) errors [l] . The DFT output spectrum contains the input sine wave test signal, a noise floor caused by quan t i za th errors, and harmonic distortion caused by INL. A spectral averaging technique was proposed [2] to mea- sure harmonic distortion and noise floor with the latter based on a closed form formula. A new method for measuring the ADC effec- tive number of bits, based on spectral analysis, was also proposed

The INL has not been analyzed before using DFT to diagnose the ADC bits, i.e., determine which bit corresponds to which fre- quency bin. Therefore, a major intention of this paper is to fill this gap. A 5-bit ADC with failures in all bits is analyzed to illustrate the technique.

The INL has been analyzed before using the Walsh transform [4] to identify the ADC nonlinearity at the bit level. This paper provides a general formula for the technique, and illustrates its im- plementation for a 5-bit ADC with failures in all bits.

11. ANALYSIS OF INL USING THE FFT

[31.

A . The General Case Assume a B-bit bipolar ADC with N output codes, i.e., N = 2B.

Based on the definition of INL for nonideal ADC’s [ 5 ] , failure in bit i (weight 2‘) contributes 6’ to the INL. This INL component due to bit i failure is a periodic sequence with frequency 2B-’-’ in a stream of 2’ samples. Assuming that all ADC bits have failures, then the INL plot versus ADC output code is composed of a su- perposition of B periodic sequences, each sequence having a mag- nitude E , . Fig. l(a) shows the transfer characteristics of an example 4-bit nonideal ADC, while Fig. l(b) shows the corresponding INL. It is obvious that a 16-point DFT is needed to analyze the e 3 se- quence, whereas for the e 2 sequence, an 8-point DFT is sufficient.

In general, for a B-bit ADC, an N-point FFT is practically used, where N = 2 ’. For the sake of our analysis a variable length DFT is used in order to simplify the analysis and derive a general expres-

Manuscript received November 6, 1988; revised July 10, 1989. The author was with the Department of Electrical Engineering, Univer-

sity of Lowell, Lowell, MA. He is now with the Department of Electrical Engineering, California State University-Long Beach, Long Beach, CA 90840.

IEEE Log Number 8930983.

( 1 ) 1 + . . . + e - ~ 2 r n ( N / 2 - I)lN

where SF is a scale factor equal to N/2 for 1 I n < N/2 and N for n = N/2. From a finite series table [6]:

Then from (1) and (2), it can be shown that

It is obvious that all even harmonics disappear, whereas only odd harmonics exist. The same procedure is followed for the B - 2 sequence, however, only N/2 points are needed for the derivation. Since the odd harmonics of tne N / 2 point DFT are in fact even harmonics for an N-point DFT, then

By carefully examining (3) and (4), it is obvious that there is a recurrence formula for the harmonics corresponding to any bit fail- ure. It can be shown that

N sin ( k a n / N ) ’ 2k

1 I n I - - l , i > 0

N E i /sin ($)I, n = - 2k

( Y ( k d =

i = 0, 1, * * * , B - 1 k = 2B-‘-1

B. A 5-Bit ADC Example

( 5 )

In this case, B = 5 and i is scanned from 0 through 4. By sub- stituting these values into ( 5 ) , the resulting amplitudes correspond- ing to all harmonic indexes are shown in Table I. It is obvious that the failures of different ADC bits have separate effects on the DFT output spectrum. Thus in general, by studying the DFT spectrum of the INL caused by single-bit failures, it is possible to determine the amount of error associated with each bit. This can help error correction during ADC manufacturing, and circuit analysis based on actual specifications of the utilized ADC’s. However, by using the DFT, it may be very difficult to separate the effects of different bit failures when bit intermodulation (i.e., superposition error) oc- curs. For ADC’s with negligible superposition error, the DFT is perfectly suitable for bit diagnostics, and the harmonic components have more physical significance than those of any other transform.

0018-9456/89/1200-1139$01.00 0 1989 IEEE

Page 2: Diagnosing ADC nonlinearity at the bit level

I140

Harmonic Index kn

1

3

5

7

9

11

13

15

2

6

10

14

4

12

8

16

IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 38, NO. 6, DECEMBER

Harmonic Amplitude I y(kn) I

0.638 €4

0.215 q

0.133 q

0 099 q

0.081 4

0.071 E4

0.065 q

0.063 q

0.641 €3

0.225 E3

0.150 E3

0.127 €3

0.653 €2

0.271 €2

0.707 €1

2 %

1989

/

I INL

I (bl

(b)

Fig. 1. (a) 4-bit ADC transfer characteristics. (b) Corresponding INL

TABLE I AMPLITUDE SPECTRUM OF INL OF 5-BIT ADC

bit in error I

4

4

4

4

4

4

4

4

3

3

3

1 0

DU t

Y

I

111. ANALYSIS OF INL USING THE WALSH TRANSFORM A . The General Case

The Walsh functions have the same periodicity as the bit failure sequences, therefore, it is recommended for analyzing the INL data of ADC's [7 ] . The Walsh transform was fully described in [4].

Let us consider the INL plot of Fig. l(b). By using Wal( 1 , t ) and Wal(3, t ) shown in Fig. 2, there results

Thus in general, it can be shown that for ADC bit i, using Wal(2 '-' - 1 , r ) results in an output transform y ( n ) given by

y ( n ) = y ( 2 ~ - i - 1 ) = -5 2 '

i = 0, . . , B - 1. ( 7 )

B. A 5-Bit ADC Example By scanning i , again, from 4 through 0, Walsh sequences 1, 3,

7, 15, and 31 are, respectively, used. The resulting transforms cor-

Page 3: Diagnosing ADC nonlinearity at the bit level

IEEE TRANSACTIONS ON INSTRUMENTATION A N D MEASUREMENT, VOL

I

I -1

(b) Fig. 2. Walsh functions used for the INL of Fig. l(b). (a) Wal( 1, t) . (b)

Wal(3, t ) .

TABLE I1 WALSH TRANSFORM OF INL OF 5-BIT ADC

bit in error

E2/2

15

0 31

responding to (7) are shown in Table 11. It is obvious that each bit failure corresponds to a unique Walsh output bin. Again, it may be very difficult to separate the effects of different bit failures when bit intermodulation occurs. However, with bit intermodulation, this transform describes the INL with the minimum possible mean- square error [7] for each bin.

IV. CONCLUSIONS The author tried to perform ADC bit diagnostics by directly using

the FFT for the ADC output samples, but this turned out to be impossible. This is because each bit failure gives rise to odd har- monics, and for more than one bit failure the effects on frequency bins become inseparable. Therefore, ADC bit diagnostics should be based on the analysis of INL as opposed to the direct analysis of ADC output samples.

The paper showed that there is no overlap of the contributions of the errors of different bits to the DFT of the INL. Thus groups of harmonics can be attributed to ADC individual bit failures based on a closed form formula. On the other hand, the Walsh transform gives only one output component corresponding to each bit failure which makes it easier for bit diagnostics.

REFERENCES

[l] J. Doemberg, H . 3 . Lee, and D. A. Hodges, “Full-speed testing of AID converters,” IEEE J. Solid-State Circuits, vol. SC-19, pp. 820- 827, Dec. 1984.

[2] Y. C. Jeng, “Measuring harmonic distortion and noise floor of an AID converter using spectral averaging,” in IEEE Instrumentarion Measurement Technology Conf. Proc. , pp. 212-215, Apr. 1988.

[3] Y. C. Jeng and P. Crosby, “Sinewave parameter estimation algorithm with application to waveform digitizer effective bits measurement,” in IEEE Instrumentarion Measurement Technology Conf. Proc. , pp. 218- 221, Apr. 1988.

[4] M. Vanden Bossche, i. Schoukens, and J. Renneboog, “Dynamic test- ing and diagnostics of AID converters,” I€€€ Trans. Circuits Syst.,

[5] A. Holland, “High resolution, high linearity interpolating AID con-

[6] P. Z. Peebles, Jr . , Probability, Random Variables, and Random Signal

vol. CAS-33, pp. 775-785, Aug. 1986.

verter,” in IEEE In?. Test Conf. Proc. , pp. 96-104, 1984.

Principles. 2nd ed. New York: McGraw-Hill, 1987.

38, NO. 6. DECEMBER 1989 1141

171 T. M. Souders, D. R. Flach, and B. A. Bell, “A calibration service for analog-to-digital and digital-to-analog converters,” Tech. Note 1145, Nat. Bur. Stand., July 1981.

A Simple Technique for Analog Tuning of Frequency Synthesizers

JAMES P. HAUSER

Abs#rac#-An analog implementation of the fractional N phase-locked loop variable frequency synthesis technique is presented. In addition to its simplicity, this implementation allows tuning over ranges which exceed the reference frequency.

I. INTRODUCTION The frequency synthesizer to be described was developed in re-

sponse to a need for a compact, low power, local oscillator for a swept heterodyne, low frequency, battery operated, portable spec- trum analyzer. The resulting prototype synthesizer was constructed on a 4 X 4 in circuit board using standard CMOS integrated cir- cuits. The total power requirements were +7 V at 8 mA and -7 V at 1 mA when operated in the 380-580-kHz frequency range. Further reductions in size may be expected from the use of surface mount devices.

The spectral data presented later in this article are for the pro- totype circuit serving as the local oscillator in a prototype swept frequency spectrum analyzer. That is, instead of a spectral analysis of a fixed synthesizer frequency, the synthesizer was swept through a range of frequencies about a stable reference applied to the input of the prototype analyzer. Thus the results are conservative since they include the effects of noise coupled to the sweep voltage from other circuitry within the prototype analyzer. More significantly, this method of evaluation demonstrates one of the distinct advan- tages of this circuit.

11. BACKGROUND Fig. 1 is a block diagram of a typical fractional N frequency

synthesizer. The circuitry outside the dashed lines is that of a clas- sical phase-locked frequency synthesizer. The circuitry within those lines enables the synthesis of frequencies which are fractional mul- tiples of the reference frequency [l] . This is accomplished by in- crementing a digital accumulator by a value corresponding to a phase increment. The incrementing is performed during every ref- erence frequency clock cycle. As the accumulator overflows, a cycle is deleted from the frequency feedback to the divide by the N module. This forces the voltage controlled oscillator to run at a frequency equal to the reference frequency times the feedback di- vide ratio N plus the overflow rate F,,,,( F,,, = F,, X N + Fuvr). Fig. 1 indicates the average frequenciesfwhich would be measured at various positions in the loop. It is important to note that the output from the divide by N module is only on average equal to the reference frequency. This results in the phase comparator gener- ating unwanted phase correction voltages. To prevent these volt- ages from modulating the VCO, the output from the phase com- parator is summed with a compensating analog voltage derived from the digital-to-analog conversion of the digital phase stored in the

Manuscript received June 5, 1989; revised August 28, 1989. The author was with the Aero Spectra Corporation, Boulder, Co. He is

now with the Department of Aeronautics and Astronautics, Naval Post- graduate School, Monterey, CA 93943.

IEEE Log Number 8931183.

0018-9456/89/1200-1141$01 .OO 0 1989 IEEE