1. Introduction
With the rapid development of modern electronic information, the acquisition of analog-to-digital converter (ADC) is becoming increasingly significant. Therefore, the acquisition of ADC dynamic parameters is more and more important for the correct evaluation of ADC. According to the Institute of Electrical and Electronics Engineers (IEEE) standard for Digitizing Waveform Recorders (IEEE Standard 1057) [
1] and IEEE Standard for Terminology and Test Methods for Analog-to-Digital Converters (IEEE Standard 1241) [
2], dynamic parameters include signal-to-noise ratio, spurious-free dynamic range, and total harmonic distortion.
Figure 1 shows the setting of the ADC traditional dynamic parameters test. In the process of data analysis, Discrete Fourier Transform (DFT) is used to test the spectrum to obtain dynamic parameters. The digital signal in the spectrum test is divided into coherent sampling and non-coherent sampling [
3,
4,
5]. According to the above standards, coherent sampling is recommended, because when the dynamic parameters of the same ADC are obtained, the dynamic parameters obtained under the condition of coherent sampling are accurate, while those obtained by incoherent sampling are incorrect. The spectrum obtained by coherent sampling is true and complete, the spectrum obtained by incoherent sampling, however, will leak. In order to achieve the condition of coherent sampling, a very pure analog signal is required as an excitation, and the frequency of the input signal needs to be well controlled. Since the general self-built test system needs to consider the small area and low cost of the test circuit, such a system cannot provide high-precision chips and clock generators, resulting in the inability to provide accurate input signals, and the failure to achieve coherent sampling with a self-contained oscillator as the signal source in a small test circuit area. Secondly, the excitation signal required for coherent sampling is strict. It is hard to avoid the noise and jitter of the above self-built test system, which leads to difficulty in coherent sampling. In this way, the general self-built test system can only conduct spectrum tests under incoherent sampling. At this time, a serious leakage of the spectrum would appear, resulting in wrong results. Thus, a method to obtain accurate dynamic parameters under incoherent conditions is urgently needed.
In recent years, many methods have been proposed to suppress spectrum leakage. A long-term method is windowing [
6,
7,
8,
9]. In these references, if the incoherence is small, the windowing technique is widely used in low-resolution ADC spectrum testing. However, if the spectrum test occurs in the large incoherence or high-resolution ADC test, windowing technology is not sufficient to provide accurate results. Subsequently, the spectrum power of the side lobe of the selected window should be lower than the noise power of the measured ADC, which leads to the outcome that not all windows can effectively suppress spectrum leakage. The other one is the four-parameter fitting method [
10,
11,
12]. In [
11], for example, the iterative process of the four parameters is optimized to obtain better results. However, this method needs to estimate the initial value, and the initial value prediction error will lead to the test failure. Subsequently, when the non-harmonic component determines the Spurious-Free Dynamic Range (
), this method cannot provide accurate SFDR values. In [
13,
14,
15,
16,
17,
18], the interpolation discrete Fourier transform (DFT) method is used, but when the non-harmonic ratio is greater than the harmonic ratio, the obtained results are not optimal. In [
19], an additional filter bank is proposed to achieve accurate results, but this method increases the area of the test circuit. In [
20], a resampling technique is proposed, which also increases the test area.
All the above methods suffer from one or more of the issues, such as over-reliance on the selection of window types, inability to test high-resolution ADC, whether the estimated value can be estimated as real value, and increased test area. Hence, this paper presents a new spectrum testing method. It can effectively solve the problems of the above methods, carry out a more reliable spectrum testing under incoherent sampling, obtain accurate dynamic parameters, and completely relax the condition of coherent sampling. In the proposed method, incoherence is no longer a problem. Therefore, this method can be used to test any ADC output without knowing the resolution of ADC in advance. Besides, it can reduce the cost of test settings. The low precision signal generator and clock generator can also be used for spectrum testing. In addition, this method can also test the high-resolution ADC without increasing the test system area. First of all, Ensemble Empirical Mode Decomposition (EEMD) and Hilbert transform are used to estimate the frequency parameters of the fundamental frequency. Then, the parameter fitting method is used to fit the incoherent fundamental wave and harmonic wave. Further, the coherent fundamental and harmonic waves are reconstructed, the fitted incoherent fundamental and harmonic waves are subtracted from the initial data, and the reconstructed coherent fundamental and harmonic waves are added. Finally, the reconstructed data is used for DFT calculation to achieve accurate spectrum analysis and obtain accurate ADC dynamic parameters.
The rest of this paper is organized as follows:
Section 2 provides the dynamic parameters calculation equation of ADC;
Section 3 discusses the ADC spectrum test and introduces the problems of incoherent sampling and coherent sampling;
Section 4 details the proposed method and gives the simulation results;
Section 5 verifies the method proposed in this paper by using measurement data;
Section 6 summarizes the full text.
3. Spectrum Test of ADC Coherent Sampling and Incoherent Sampling
At present, the most common method for obtaining ADC dynamic parameters is spectrum testing. By directly obtaining the spectrum of the quantitative results of the test system, the digital quantity is calculated through the Fast Fourier Transform (FFT), and the equation is solved by a certain method to obtain the dynamic parameters of the measurement system. Due to the poor real-time performance of FFT, DFT is generally used for analysis. DFT, as a method of converting time domain information into frequency domain information, has been widely used in the processing of digital information. The digital signal in the spectrum test is divided into coherent sampling and incoherent sampling. Coherent sampling means that in the sampling process, the time obtained by truncation is an integral multiple of the processing signal period. With respect to the incoherent sampling, in the sampling process, the time obtained by truncation is not an integral multiple of the processing signal period. Under incoherent conditions, the DFT method is used for spectrum analysis. At this time, the signal duration is not an integral multiple of the signal period, and the period expansion will lead to phase discontinuity. Then, the spectrum leakage would occur. The spectrum leakage refers to the interaction between the spectral lines in the signal spectrum, which makes the measurement results deviate from the actual value. At the same time, there are some spurious spectra with small amplitudes at other frequency points on both sides of the spectral line, which will lead to a large error in the obtained parameters. In order to reduce the spectrum leakage caused by discrete spectrums, the common method is to realize coherent sampling, after coherent sampling, the spectrum generated by DFT is true and complete. Coherent sampling needs to meet the following requirements:
denotes the number of the whole period of the input signal, is the number of complete cycles in the entire system. and should be primes each other, requiring to be an integer power of 2. If the frequency of the input signal is 4 MHz, according to Nyquist, the sampling rate of the whole system is 40 MHz, so the same assumption is 16,384 (16 k). If is 40 MHz, according to the above Equation (9), is 1638.4; its nearby prime is 1639, and then replace with the above Equation (9) and get an is 4.00146484375 MHz.
It can be seen from
Figure 2 and
Figure 3 that when the coherent sampling condition is met,
= 4.00146484375 MHz. After DFT analysis, one can conclude that there is no occurrence of leakage. The accurate solution of ADC dynamic parameters, indicates the accurate performance evaluation of ADC. When the coherent sampling condition is not met, such as
= 4.0014 MHz or
= 4.00146 MHz, DFT analysis results in a serious spectrum leakage, and further inaccurate dynamic parameters are obtained, indicating the inaccurate performance evaluation of ADC. Coherent sampling requires accurate input frequency and pure analog signal. When the input frequency is not accurate, or there is a large noise, it will lead to the emergence of incoherent sampling. This means coherent sampling requires more accurate frequency and noise has a greater impact on it. Considering the requirements for low cost and a small area of the general self-built test system, it is impossible to provide high-precision chip and clock generators, which means it is difficult to achieve the above coherent sampling conditions, in other words, only tests are carried out under incoherent conditions. The spectrum leaks in incoherent sampling, resulting in a test failure. It is necessary to consider adopting various methods to solve the problem of spectrum leakage under incoherent conditions, so as to accurately evaluate the performance of ADC. This paper proposes an effective method to solve the spectrum leakage under the condition of incoherent sampling.
4. ADC Dynamic Parameters Extraction Based on EEMD Separation Technology, Hilbert Transform, and Parameter Fitting Technology
Due to the low cost of the self-built test system, it is unable to provide high-precision chips and accurate input frequency. It is difficult to meet the requirements of the coherent sampling, which means that the test system should be tested under the condition of incoherent sampling. Thus, under the condition of incoherent sampling, it is necessary to consider reliable spectrum testing to obtain accurate dynamic parameters. To solve this problem, this paper proposes a dynamic measurement parameter acquisition method based on EEMD sine wave fitting and reconstruction. The EEMD and Hilbert transform are used to estimate the frequency parameters of the fundamental frequency for the first time. Then, the incoherent fundamental wave and harmonic wave are fitted by the parameter fitting method. Further, the coherent fundamental and harmonic waves are reconstructed, the fitting incoherent fundamental and harmonic waves are subtracted from the initial data, and the reconstructed coherent fundamental and harmonic waves are added. Finally, the reconstructed data are used for DFT calculation for accurate spectrum analysis. This can be used to obtain accurate ADC dynamic parameters.
4.1. Extraction, Separation, and Frequency Acquisition of Fundamental Sine Test Signal Based on EEMD and Hilbert
On account of the shortcomings of the Empirical Mode Decomposition (EMD) method, the EEMD method is widely used. EMD method is a new time-frequency analysis method and an adaptive time-frequency localization analysis method, which is proposed by Huang [
21]. The deficiency is that the modal component obtained by EMD decomposition has a modal mixing phenomenon. Whereas, EEMD mainly provides a white noise auxiliary analysis method to solve the modal mixing phenomenon. Since added white noise is equally dispersed in a time-frequency space, the time-frequency space will be composed of various scale components divided by the filter bank, according to the basic principle of EEMD analysis. The signal range of multiple scales will be mapped on the appropriate scale corresponding to the background white noise when the average white noise background is applied to the signal. There may be very noisy results in each separate test because each component of additional noise contains both the signal and the added white noise. Since the noise is different in every single test, the noise will be eliminated when all the mean values of the test are adopted, and all the mean values will eventually be regarded as real results. Due to more and more tests, other noises are removed, and the part that is truly durable is the signal itself. EEMD algorithm is an effective method for analyzing and processing nonlinear and non-stationary signals, which solves the problem of mode mixing in signal decomposition. The EEMD method can almost perfectly separate the test information of the fundamental wave.
Harmonic and noise created by the power supply and system peripheral circuits are included in simulation data for the monophonic test system. EEMD technology can efficiently decompose the fundamental wave, but the EEMD method may have a certain endpoint effect. The endpoint data is discarded when applied to practice.
The modal component of the fundamental wave can be acquired by adopting the EEMD strategy. To attain the aim of signal reconstruction, various technical means must be utilized to attain phase, amplitude, frequency, and other parameters. Then, the instantaneous frequency can be attained by the Hilbert transform. Further, the DC component, phase, and amplitude of the fundamental wave are attained by the parameter fitting method. The instantaneous frequency of modal components is obtained by the Hilbert transform.
After the whole test system signal
is decomposed by EEMD, it is calculated as follows:
denotes the modal component.
represents the residual signal, and m is the number of modal components. Then the signal Hilbert transform can be attained:
In Equation (11)
and then we can get the corresponding signal of each modal component:
Subsequently, the amplitude function and phase function in Equation (12) can be expressed as follows:
The instantaneous amplitude and phase of the modal component are represented in Equations (13) and (14), with good instantaneousness. The instantaneous frequency can then be calculated by using Equation (15) since the functional relation of the instantaneous phase has been acquired by Equation (14). Then the instantaneous frequency can be written as follows:
The solution of instantaneous frequency is local, a function of time and frequency, which cannot be obtained by using the Fourier transform. The fundamental wave of the test signal is decomposed by EEMD, which subsequently acquires all the information required by the modal component. The Hilbert transform of modal components can be used to calculate the instantaneous frequency. The data from both ends of the endpoint is deleted, and the frequency of the basic sinusoidal signal is obtained by fitting the instantaneous frequency of the modal component using the average method. All parameters of the sinusoidal signal are obtained by parameter fitting.
4.2. Sinusoidal Signal Fitting Based on Parameter Fitting
The ideal sine test signal can be described by the following equation:
Among them,
denotes the test data of the whole system at
times. The whole fitting method is to find
,
,
, and
to complete the minimum sum of residual squares of the following equation when the frequency of the input signal is known:
Therefore, parameters , , and are the least-squares fitting values of , , and . To find out the matrix constructed by , , and , in the equation represents the number of iterations.
The implementation phases of the method are obtained as follows:
In initialization, the iteration number i = 1.
Ensure i = i + 1 for the next iteration.
Obtaining values of A, B, and D by the fitting method.
To solve the parameters, the following matrix is established:
- 5.
The total of residual squares is calculated as follows:
- 6.
When is the smallest in Equation (21), the least-squares solution of is obtained as follows:
- 7.
The amplitude and phase expressions of the fitting function are as follows:
- 8.
The fitting residual is as follows:
The parameters of the sine signal can be derived using the procedures above, resulting in the fitted sine signal being stated as follows:
represents amplitude, f denotes frequency,
represents phase, and
denotes direct current component. The sine curve of the fundamental wave has been fitted at this point, and then the residual sine curve signal is obtained by subtracting the fitting sine curve of the fundamental wave from the initial signal:
The sine curve of the second harmonic is obtained at this point. Because the fundamental frequency is known, the second harmonic frequency may also be calculated. Then, by using the above parameter fitting steps, the amplitude, phase, and DC components are fitted. Thus, the second harmonic sine can be obtained:
In addition to the second harmonics mentioned above, residual harmonics can be obtained by using the above steps.
4.3. Signal Reconstruction
From Equations (9) and (27), the fundamental wave signal and harmonic signal obtained by fitting above are reconstructed at this time. We can obtain:
It is known that Equation (30) is expressed as a coherent test when
= 0, otherwise it is expressed as an incoherent test when
, and Equation (27) is expressed as the sine signal of the fundamental wave obtained by fitting. The frequency can then be determined to be the same. Then it can be obtained:
Then, according to Equation (31), we can get:
The
,
, and
in Equation (32) have been correctly known. An accurate value
can be obtained. Since
and
must be integers, and
must be an integer power of 2. Then, after calculating
, the nearest integer value is taken and revalued
, and then the frequency of the reconstructed fundamental signal can be obtained as follows:
The newly obtained
is substituted into Equation (27) to obtain the sinusoidal signal of the reconstructed fundamental wave:
Similarly, the reconstructed signal of the new second harmonic can be obtained by replacing
the fitted second harmonic:
Residual harmonic can also be reconstructed. The fitted fundamental and second harmonic can be removed from the test data using Equations (27), (29), (34) and (35), and the reconstructed fundamental and second harmonic can be utilized in their place. After replacement, the output is as follows:
Residual harmonics can also be replaced as above. The whole process is shown in
Figure 4.
4.4. Simulation Results
In this section, the simulation results that verify the proposed method are given, as well as the results of this method with large or small incoherence. The gap between coherent sampling and incoherent sampling is expressed by .
MATLAB is used to generate data by 16-bit ADC. The true , , and values of ADC are obtained by sending coherent sampled sinusoidal signals. The total number of recorded points is 16,384.
Figure 5 shows the spectrum of 16-bit ADC when the input signal is coherently sampled. The spectrum does not leak, and
,
, and
values are obtained from the spectrum.
Figure 6 shows the spectrum of direct DFT for incoherent sampling data. In this case, the value of
is 0.4. When direct DFT obtains the spectrum, the spectrum leaks seriously.
Figure 7 shows the spectrum when the proposed method is applied to the data under incoherent sampling used in
Figure 6. As shown in the figure, the spectrum basically has no leakage.
It can be seen from
Table 1 and
Table 2 that the
,
, and
values of ADC are obtained by coherent sampling, and the
,
, and
values are obtained by the direct DFT method and the proposed method when the incoherent sampling degree
is 0.02 (small value) and 0.4 (large value). The results show that under the condition of coherent sampling, the dynamic parameters of ADC are accurate, which indicates that the evaluation of ADC is also correct. Under the condition of incoherent sampling, after the direct use of DFT analysis, the spectrum leakage occurs, and the obtained dynamic parameters are significantly different from the data under coherent sampling, indicating the inaccurate evaluation of ADC. The spectrum obtained by the proposed method does not leak, and the difference between the dynamic parameters obtained by the proposed method and the data obtained by coherent sampling is very small, which indicates that the proposed method can obtain the dynamic parameters of ADC under different incoherent degrees and accurately evaluate the performance of ADC.
6. Conclusions
In this paper, a new spectrum measurement method was proposed to eliminate the need for coherent sampling. Firstly, the simulation results showed that regardless of the value of incoherent degree
, the
,
, and
values obtained by the proposed method under the condition of incoherent sampling are basically the same as the true
,
, and
values of the ADC obtained by coherent sampling, which indicates that the proposed method can be applied to the whole Nyquist range and has strong functionality. Secondly, the experimental results showed that compared with the windowing method, the spectrum of this method is basically without leakage, and the consideration of window selection is omitted, which has better accuracy and wider applicability. Moreover, this method does not need to know the resolution of ADC in advance, and can easily test any ADC output, and the obtained
,
, and
values are also more accurate. At the same time, because the method can be coherent sampling conditions, a low precision signal generator and clock generator can also be used for spectrum testing. This reduces the cost and area of the general test system. Finally, when the distortion power is equivalent to the basic power, this method may not work. It can be said that this method can effectively deal with the acquisition of ADC dynamic parameters and the accurate evaluation of ADC under incoherent test conditions, expanding the application of ADC in the field of electronics [
22].