METHOD FOR TESTING NONLINEARITY ERROR OF HIGH SPEED DIGITAL-TO-ANALOG CONVERTER

A novel method applies the down-conversion sampling technology to test a high-speed digital-to-analog conversion. In the method, a digital-to-analog conversion output signal of a high-speed digital-to-analog converter and a low-frequency sinusoidal carrier wave signal input to a comparator to obtain a low-speed pulse signal. Therefore, the variation of the pulse width of the low-speed pulse signal can be measured by a common logic analyzer to assess the nonlinearity error of the high-speed digital-to-analog converter.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
FIELD OF THE INVENTION

The present invention relates to a method for testing a digital-to analog converter, particularly to a method for testing the nonlinearity error of a high-speed digital-to-analog converter.

BACKGROUND OF THE INVENTION

The high-speed digital-to-analog (D/A) converter has been extensively applied to consumer electronics and communication technology. Refer to FIG. 1. In the conventional test method for the D/A converter (DAC) 1, a precision analog signal measurement circuit 3 containing a sample-hold circuit 4 is arranged in the output 2 of the D/A converter 1. The performance, especially the accuracy and stability, of the sample-hold circuit 4 directly influences the correctness of the measurement results. However, the design for a high-speed or high-resolution hold-sample circuit is hard to realize.

The tested signals are usually converted into special test eigenvalues to facilitate analysis. The test eigenvalues are converted into the frequency or the duty ratio of pulse signals, whereby the digital counting signals can be used to measure analog signals. However, the abovementioned technology needs a high-speed circuit to match the high-speed DAC, which greatly increases the difficulty of design.

SUMMARY OF THE INVENTION

The primary objective of the present invention is to develop a novel DAC test architecture according to the down-conversion sampling technology, whereby the analog signals of a digital-to-analog converter (DAC) is converted into a series of low-speed pulse stream, and whereby the nonlinearity error of DAC is worked out from the width of the pulse signals.

To achieve the abovementioned objective, the method of the present invention comprises steps: obtaining a digital-to-analog conversion output signal from a high-speed DAC; providing a low-frequency carrier wave signal; providing a comparator, and inputting the digital-to-analog conversion output signal and the low-frequency carrier wave signal into the comparator to obtain a low-speed pulse signal; using a logic analyzer to measure the variation of the pulse width of the low-speed pulse signal; working out the nonlinearity error of the high-speed DAC from the variation of the pulse width.

Thus, the present invention does not adopt a high-speed circuit but uses a common logic analyzer to assess the nonlinearity error of a high-speed DAC. Therefore, the present invention can promote the capability of ATE (Automatic Test Equipment) in testing a high-speed DAC.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram schematically showing the environment where a conventional DAC undertakes a test;

FIG. 2 is a diagram schematically showing the principle of the down-conversion technology adopted by the present invention;

FIG. 3 is a diagram schematically showing the architecture and signal according to the down-conversion technology adopted by the present invention;

FIG. 4A is a diagram schematically showing a triangular wave used as a low-frequency carrier wave signal according to the present invention;

FIG. 4B is a diagram schematically showing the crossover of a tested signal and a triangular carrier wave signal according to the present invention;

FIG. 4C is a partially enlarged view of FIG. 4A;

FIG. 5 is a diagram schematically a test eigenvalue according to the present invention;

FIG. 6 is a diagram schematically showing the difference of the periods of a tested signal and a low-frequency carrier wave signal according to the present invention;

FIG. 7A is a diagram schematically showing the relationship of the nonlinearity error and the test eigenvalue according to the present invention;

FIG. 7B is a partially enlarged view of FIG. 7A;

FIG. 8 is a diagram schematically showing a sinusoidal wave used as a low-frequency carrier wave signal according to the present invention;

FIG. 9 is a diagram schematically showing the relationship of the amplitudes of a tested signal and a low-frequency carrier wave signal according to the present invention;

FIG. 10 is a diagram schematically showing the test eigenvalue according to the present invention;

FIG. 11 is a diagram schematically showing the difference of the periods of a tested signal and a low-frequency sinusoidal carrier wave signal according to the present invention;

FIG. 12A is a diagram schematically showing the relationship of the nonlinearity error of a tested circuit and a test eigenvalue according to the present invention;

FIG. 12B is a partially enlarged view of FIG. 12A;

FIG. 13A is a diagram schematically showing four sampling points in ideal quantization levels according to the present invention;

FIG. 13B is a diagram schematically showing four sampling points in physical quantization levels according to the present invention; and

FIG. 14 is a diagram schematically showing the distribution of the slopes of the adjacent sampling points according to the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The embodiments are described in detail in cooperation with the drawings to demonstrate the technical contents of the present invention.

Refer to FIG. 2 and FIG. 3 for the sampling theorem of the present invention. Suppose that f(ωt) is the waveform output by a digital-to-analog converter (DAC) 10 and that the waveform has a period of T. Three sampling points p1, p2 and p3, which are originally sampled from a single cycle, are respectively arranged in three different cycles. Respectively define the time difference and voltage difference of a first sampling point and a second sampling point to be ΔW1 and ΔVi. Thus, ΔWi=Wi−T. The nonlinearity error of the tested circuit f(ωt)/dt can express the signal difference of the sampling points as the pulse width signal, i.e. the variation of the pulse width ΔWi.

Refer to FIG. 3 for the sampling circuit according to the present invention. In FIG. 3, f(ωt) is the digital-to-analog conversion output signal of the DAC 10. The digital-to-analog conversion output signal passes through a low-pass filter 11, and the low-pass filter 11 filters out the high-frequency noise of the digital-to-analog conversion output signal. A carrier wave generator 30 generates a carrier wave signal f(ω′t) 31 having a frequency slightly lower that of f(ωt). The two signals of f(ωt) and f(ω′t) are sent to a comparator 20 for comparison, and the comparator 20 outputs a pulse signal s(t) to a register 40, and the register 40 outputs a low-speed pulse signal w(t). The low-speed pulse signal w(t) reflects the nonlinearity error of the output of the DAC 10. Therefore, the present invention needn't measure a high-speed analog signal with a high-speed or high-resolution measurement circuit but can measure the low-speed pulse signal w(t) with a logic analyzer (not shown in the drawings).

As Wi corresponds to the difference of two sampling points, the offset error of the comparator 20 is neutralized naturally. The method of the present invention works in a low-speed sampling mode, and only a sampling point is taken in each cycle. Thus, the circuit operates in a very low working frequency. Therefore, the required circuit is easy to realize. Further, the final test eigenvalues are the pulse widths of digital signals, which are less likely to distort when transmitted to the outside of the chip. Besides, the oscilloscope of the existing ATE has superior time-domain sampling capability to achieve high precision in measuring the pulse width of signals. Considering the influence of noise on the pulse width during modulation, the duration of the test is prolonged to repeat the same sampling activities in the same positions and obtain an average of the pulse widths. Thus is reduced the influence of noise.

Refer to FIGS. 4A-4C and FIG. 5. In the present invention, a triangular wave or a sinusoidal wave may be used as the low-frequency carrier wave signal 31. In the case of a triangular wave, the relationship of the period Tc of the low-frequency carrier signal 31 and the period Tda of the tested signal 12 (i.e. the digital-to-analog conversion output signal) is Tc=Tda+ΔT, wherein ΔT is the difference of the period Tc of the low-frequency carrier signal 31 and the period Tda of the tested signal 12. The relationship between the slopes of the low-frequency carrier signal 31 and tested signal 12 is expressed by

m da _ i = z x and m c = z y = V C - ( - V C ) T C / 2 = V c T c / 4 wherein T da = 2 × ( 2 n - 1 ) × 1 f da , and T c = 2 × ( 2 n - 1 ) × 1 f da + Δ T As y x = m da m c , x = Δ T - y = Δ T - x · m da m c . Thus , x = Δ T 1 + m da m c

Then, the pulse width Wi can be expressed by

W i = T da + x = T da + Δ T 1 + m da _ i m c ,

as shown in FIG. 5.

Suppose the tested circuit (the DAC 10) is an n-bit element having (2n−1) quantization partitions and has N pieces of test eigenvalues Wi respectively sampled from (N+1) signal cycles. In advance should be determined the cycle difference ΔT of the tested signal 12 and the carrier wave signal 31 and the relationship of the bit number n of the tested circuit and the period Tda of the tested signal 12 before determining the frequency of the carrier wave signal 31 used in modulation. Suppose that N sampling points is needed. Thus, (N+0.5) cycles are needed in obtaining the eigenvalues Wi, wherein i=1, 2, 3, . . . , N.

Thus, the working frequency of the low-frequency carrier wave signal 31 should be obtained. Refer to FIG. 6. In this case, the total sampling time is denoted by ΣT, and ΣT has to meet the following equations:

T = T da ( N + 0.5 ) > i = 1 N W i = NW Therefore , NT da + T da 2 > N ( T da + Δ T 1 + m da m c ) Thus , W = i = 1 N W i N T da + Δ T 1 + m da m c , and m da = m da _ i ( ideal ) = z x = v da - ( - v da ) T da / 2 = V da T da / 4

From the abovementioned equations, it is known that the working frequency of the low-frequency carrier wave signal 31 can be expressed by

f c = 1 T da + Δ T , wherein Δ T < T da 2 N ( 1 + m da m c ) . ( 1 )

Refer to FIG. 7A and FIG. 7B for the relationship of the test eigenvalues and the nonlinearity error of the tested circuit. Suppose that the tested circuit has a nonlinearity error in a specified quantization partition and that the nonlinearity error results in a slope variation Δw in a segment of the tested signal, as shown in FIG. 7A. FIG. 7B is a partially enlarged view of FIG. 7A. The error-induced slope variation has the following relationships:

m j = V j x + Δ w , m i = V i x , and V j V i = y - Δ w y = Δ T - ( x + Δ w ) y . Thus , m j m i = V j V i x x + Δ w = Δ T - ( x + Δ w ) x + Δ w m c m da = Δ T - x x m c m da , wherein x = x + Δ w . Therefore , m da = Δ T - ( W j - T da ) W j - T da m c ( 2 )

From the abovementioned equation, it is known that Wj represents the pulse width modulation signal. Thereby, the nonlinearity error can be deduced from the pulse width, which is the result of the comparison of the low-frequency carrier wave signal 31 and the tested signal 12.

Refer to FIG. 8, wherein a sinusoidal wave is used as a low-frequency carrier wave signal 32. In the practical test environment, a precision and adjustable triangular wave generator is harder to realize. A sinusoidal signal can be generated much more easily than a triangular wave. However, the modulation does not resorted to an instinctive linear manner when a sinusoidal wave is used as the low-frequency carrier wave signal 32. Thus, it is necessary to find out the relationship between the tested signal 12 and the modulated test eigenvalues.

Firstly, the low-frequency carrier wave signal 32 can be imagined to be a combination of piecewise linear slopes because the sampling points amount to a considerable number. In other words, the signal difference between two adjacent sampling points is very small. The voltage signals of two adjacent sampling points are supposed to have a linear relationship. However, the sampling points in different intervals have different linear relationships. Besides, the peak or trough of a sinusoidal signal is unsuitable to be the low-frequency carrier wave signal 32 because the slope variation thereof is too great. Therefore, the sinusoidal signal Vc should be slightly greater than the tested signal Vda lest the sampling points in the overlap regions of the two signals appear in the nearby of the peak or trough.

Therefore, the equation is rearranged into

x = Δ T 1 + m da m c [ i ] wherein i = 1 , 2 , , N , and m c [ i ] = t [ V c sin ( ω t ) ] .

Refer to FIG. 9. The abovementioned mc[i] can be further expressed by

m c [ i ] = t [ V c sin ( ω t ) ] = V c ω cos ( ω t ) t = t 2 - i N + 1 ( t 2 - t 1 ) wherein i = 1 , 2 , 3 , , N , t 1 = 1 ω · sin - 1 ( V da V c ) , and t 2 = 1 ω · sin - 1 ( - V da V c ) .

Refer to FIG. 10 and FIG. 11. Then, express the test eigenvalue Wi in a similar form, and deduce the period difference ΔT of the tested signal 12 and the low-frequency carrier wave signal 32 to determine the frequency of the carrier wave signal used in modulation.

As the sampling points amount to a considerable number, i.e. the difference between two adjacent sampling points is very small, the voltage signals of two adjacent sampling points are supposed to have a linear relationship. However, the sampling points in different intervals have different linear relationships. Thus, Equation (1) is slightly modified as follows:

T = NT da + T da 2 > i = 1 N W i , NT da + T da 2 > i = 1 N [ T da + Δ T 1 + m da m c [ i ] ] . Thus , Δ T < T da 2 × i = 1 N 1 ( 1 + m da m c [ i ] ) .

Refer to FIG. 12A and FIG. 12B. Similarly, Equation (2) is also slightly modified. Suppose that a nonlinearity error exists in a quantization partition of the tested circuit and causes a slope variation Δw in a small segment. The slope variation Δw is modified as follows:

m j = v j x + Δ w , m i = v i x , and v j v i = y - Δ w y = Δ T - ( x + Δ w ) y Then , m j m i = V j V i · x x + Δ w = Δ T - ( x + Δ w ) y · x x + Δ w = Δ T - ( x + Δ w ) x = Δ w · m c [ j ] m da = Δ T - x x · m c [ i ] m da , wherein x = x + Δ w . Thus , m da = Δ T - ( W j - T da ) W j - T da · m c [ i ] ( 2 )

The present invention works out the relationship of the pulse width modulation and the nonlinearity error of the signal output by the DAC 10. In order to decrease the assessment error, the sampling points are increased instinctively. Such a measure can be easily realized via increasing the working frequency of the low-frequency carrier wave signal 32. Suppose that there is an 8-bit DAC having 255 quantization levels, and that 1020 points are sampled therefrom. Thus, each quantization level is sampled four times averagely, and the original 255 quantization levels will be worked out from the 1020 sampling points.

Refer to FIG. 3, FIG. 13A and FIG. 13B. Suppose that the DAC 10 is an ideal converter, and that each quantization level has the same number of sampling points. In such a case, the slope mf can be obtained from the slope average mi of each two adjacent points, wherein i=1, . . . , 4. Unfortunately, the quantization levels of the DAC 10 are non-ideal in fact, and the sampling points are not all identical, as shown in FIG. 13B. It can be found in FIG. 13B that there is a slope inflection m4 between the third and fourth sampling points. Therefore, in the calculation of mf1 and mf2, m4 should be taken into the average. Thus, the differential nonlinearity error (DNL) can be worked out from the following equations:

m f 1 = m 1 + m 2 + m 3 + m 4 4 , and m f 2 = m 4 + m 5 + m 6 + m 7 + m 8 5 , when m 5 > m 3 > m 4 .

However, another case should be also taken in consideration. When m5>m4>m3, it means that the third sampling point is very close to the inflection point. In other words, slope m3 is much smaller than slope m4. Thus, the average of m3 and m4 is almost equal to m4. Therefore, m4 should not be taken into the calculation of mf1. Then, the equations should be modified as follows:

m f 1 = m 1 + m 2 + m 3 3 , and m f 2 = m 4 + m 5 + m 6 + m 7 + m 8 5 , when m 5 > m 4 > m 3 .

To demonstrate the DNL assessment, suppose that there are N sampling points. Refer to FIG. 14 for the distribution of the slope between every two adjacent sampling points. Firstly, the position where the slope has the maximum value is found out to function as the beginning of each code. Then, calculate the slope average corresponding to the maximum value of the slopes.

When m5j>m3j>m4j, it is known from the preceding discussion that

m f 1 j = m 1 j + m 2 j + m 3 j + m 4 j 4 , and m f 5 j = m 4 j + m 5 j + m 6 j + m 7 j + m 8 j 5 . When m 5 k > m 4 k > m 3 k , m f 1 k = m 1 k + m 2 k + m 3 k 3 and m f 5 k = m 4 k + m 5 k + m 6 k + m 7 k + m 8 k 5 .

For an n-bit DAC and N sampling points, the DLN assessment will be normalized as follows:

Find out the maximum slope from mmax[k]={mmk}, k=1, 2, . . . , 2n−1.

In the first situation, when (mmk+1>mmk+1−2>mmk+1−1),

D N L [ k ] = j = m k - 1 m k + 1 - 1 m j m k + 1 - m k + 1 .

In another situation, when (mmk+1>mmk+1−1>mmk+1−2),

D N L [ k ] = j = m k - 1 m k + 1 - 2 m j m k + 1 - m k .

The integral nonlinearity error (INL) can be obtained via summing DNL and expressed by

I N L estimation [ i ] = k = 1 i D N L [ k ] .

Via the preceding equation, INL can be easily worked out from DNL. However, INL also incorporates the systematic errors of DNL.

In order to solve the problem, the source of the systematic errors should be found out, whereby the systematic errors can be separated from the real INL. The pulse width modulation itself has systematic errors because a sinusoidal carrier wave is regarded as the combination of piecewise linear slopes in assessing DNL. In fact, a sinusoidal carrier wave is not a combination of piecewise linear slopes but a combination of continuous curves. Thus, minor errors systematically exist between the real DNL and the assessed DNL. The systematic error appears and varies periodically with the frequency of the output of DAC. Thus, INL can be assessed via the following equations:

I N L estimation [ i ] = k = 1 i D N L estimation = k = 1 i [ D N L real [ k ] + ɛ ( ω k ) ] ,

wherein ε(ωk) represents the systematic error of INL, and

ω = 2 π T da .

From the viewpoint of signal, the INL signal can be regarded as the integral of DNLs, including the systematic errors of DNLs. The period of the signal output by DAC is very great. Because the frequency of the systematic error is much smaller than that of the DNL signal, the systematic error can be removed via a mere high-pass filter (HPF) to improve the accuracy of INL assessment. Thus, the equation for INL is slightly modified into

I N L [ i ] = H P F { k = 1 i [ D N L real [ k ] + ɛ ( ω k ) ] } = k = 1 i D N L real [ k ] .

In conclusion, the present invention proposes a testing method to assess the non-ideal effect of a high-speed DAC. The method of the present invention applies the down-conversion sampling technology to realize a PWM (Pulse Width Modulation) signal, whereby the nonlinearity error of the tested circuit is converted into the variation of pulse width. Thus, the method of the present invention does not need a high-speed or high-definition device to capture analog signals.

Claims

1. A method for testing a nonlinearity error of a high-speed digital-to-analog converter, comprising:

obtaining a digital-to-analog conversion output signal of a high-speed digital-to-analog converter;
providing a low-frequency carrier wave signal;
providing a comparator, and inputting the digital-to-analog conversion output signal and the low-frequency carrier wave signal into the comparator to obtain a low-speed pulse signal;
using a logic analyzer to assess variation of the low-speed pulse signal; and
working out a nonlinearity error of the high-speed digital-to-analog converter from the variation of the low-speed pulse signal.

2. The method for testing a nonlinearity error of a high-speed digital-to-analog converter according to claim 1, wherein the low-frequency carrier wave signal is a triangular wave.

3. The method for testing a nonlinearity error of a high-speed digital-to-analog converter according to claim 2, wherein the frequency of the low-frequency carrier wave signal is slightly lower that that of the digital-to-analog conversion output signal.

4. The method for testing a nonlinearity error of a high-speed digital-to-analog converter according to claim 2, wherein the frequency of the low-frequency carrier wave signal is slightly higher that that of the digital-to-analog conversion output signal.

5. The method for testing a nonlinearity error of a high-speed digital-to-analog converter according to claim 1, wherein the low-frequency carrier wave signal is a sinusoidal wave.

6. The method for testing a nonlinearity error of a high-speed digital-to-analog converter according to claim 5, wherein the frequency of the low-frequency carrier wave signal is adjusted to vary the number of sampling points in the overlap of the low-frequency carrier wave signal and the digital-to-analog conversion output signal and modify the assessment accuracy, and wherein the amplitude of the low-frequency carrier wave signal is controlled to prevent the digital-to-analog conversion output signal from appearing in the nearby of the peak or trough of the low-frequency carrier wave signal.

Patent History
Publication number: 20110169671
Type: Application
Filed: Jan 8, 2010
Publication Date: Jul 14, 2011
Inventors: Chun-Wei Lin (Yunlin County), Sheng-Feng Lin (Yunlin County)
Application Number: 12/684,364
Classifications
Current U.S. Class: Converter Calibration Or Testing (341/120)
International Classification: H03M 1/10 (20060101);