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.
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 INVENTIONThe high-speed digital-to-analog (D/A) converter has been extensively applied to consumer electronics and communication technology. Refer to
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 INVENTIONThe 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.
The embodiments are described in detail in cooperation with the drawings to demonstrate the technical contents of the present invention.
Refer to
Refer to
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
Then, the pulse width Wi can be expressed by
as shown in
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
From the abovementioned equations, it is known that the working frequency of the low-frequency carrier wave signal 31 can be expressed by
Refer to
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
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
Refer to
Refer to
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:
Refer to
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
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:
To demonstrate the DNL assessment, suppose that there are N sampling points. Refer to
When m5j>m3j>m4j, it is known from the preceding discussion that
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 (mm
In another situation, when (mm
The integral nonlinearity error (INL) can be obtained via summing DNL and expressed by
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:
wherein ε(ωk) represents the systematic error of INL, and
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
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.
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
International Classification: H03M 1/10 (20060101);