The disclosure relates to the field of dynamic signal analysis (DSA), particularly to a digital correction method for dynamic range expansion of multiple analog-to-digital converters (ADCs).
A maximum range and a minimum measurable signal of an instrument determine performance of dynamic testing, and the minimum measurable signal of the instrument is determined by noise suppression performance of an analog device corresponding to a channel and a resolution of an analog-to-digital converter (ADC). Throughout a development process of indices in a dynamic range (DR) of a dynamic signal analyzer, improvements of the ADC resolution and a process of the analog device can lead to a significant increase in the DR. However, with the increasing resolution of ADC nowadays, the improvement in the process of the analog device becomes slower and more difficult. When using a single ADC to collect signals under a condition that a noise of the channel is ideal, a DR of a system depends on an index of a signal-to-noise ratio of the ADC, and signals beyond a measurement range of the single ADC cannot be tested by the system. Therefore, using multiple ADCs to complete data acquisition can break through the DR limitation corresponding to the single ADC.
A key to an expansion technology of the multiple ADCs is how to integrate sampling data collected from multiple channels into one channel. However, the expansion technology faces two major challenges: 1) how to correct gains and offsets of the sampling data collected from the multiple channels to unify the multiple ADCs at the same quantization accuracy; and 2) how to correct different time delays between the sampling data collected from the multiple channels.
An objective of the disclosure is to overcome deficiencies in the related art, thereby providing a digital correction method for dynamic range expansion of multiple analog-to-digital converters (ADCs), which can complete digital correction of sampling data collected from multiple channels in a multi-ADC system while ensuring that respective dynamic ranges of the sampling data with different gains output by the multiple channels are not lost, so as to integrate the sampling data collected from the multiple ADCs into a data stream in a single channel.
In order to achieve the above objective, the digital correction method for dynamic range expansion of multiple ADCs is provided by the disclosure, a number of channels of the multiple ADCs is M; and the digital correction method includes the following steps:
Specially, the decimal delay τ0 is set with a precision of ten thousandth of a sampling point.
The objective of the disclosure is realized as follows. The disclosure provides the digital correction method for dynamic range expansion of multiple ADCs, which uses the positive amplitude auxiliary value and the negative amplitude auxiliary value, the positive base value and the negative base value to perform the iterative computations to obtain the gain correction values and the offset correction values of the channels relative to the channel CHI1, thereby performing the gain-offset error correction on the channels except for the channel CH1. Then, the phase differences of the channels relative to the standard channel CH1 are calculated to construct the fractional delay filters with the Farrow structure, and the sampling data X2, . . . , XM performed by the gain-offset error correction are further corrected. The disclosure ensures that the respective dynamic ranges of the sampling data with different gains output by the multiple channels are not lost, while completing the digital correction of the sampling data collected from the multiple channels in the multi-ADC system.
Embodiments of the disclosure are described below with reference to attached drawings, so that those skilled in the related art can better understand the disclosure. It should be noted that in the following description, these detailed descriptions will be omitted here when the detailed descriptions of the known functions and designs may fade the main content of the disclosure.
In the embodiment, as shown in
Step 1, a gain correction value Am, 1≤m≤M−1 and an offset correction value Bm, 1≤m≤M−1 of each channel in target channels of the M channels are obtained by iterative computations, and gain-offset error correction is performed on each of the target channels based on the gain correction value Am and the offset correction value Bm.
The M channels have different gains and different offset errors, and the M channels are denoted as CH1, CH2, CH3, . . . , CHM; sampling data of the M channels CH1, CH2, CH3, . . . , CHM are respectively denoted as X1, X2, . . . , XM; and the channel CH1 of the M channels is determined as a reference channel. In the embodiment, a channel with a minimum gain of the M channels is determined as the channel CH1, which avoids a loss of dynamic range during digital correction process.
The gain-offset error correction is performed on the channels CH2, CH3, . . . , CHM, as the target channels, of the M channels according to gain correction values A1, A2, . . . , AM−1 of the channels CH2, CH3, . . . , CHM relative to the channel CH1 and offset correction values B1, B2, . . . , BM−1 of the channels CH2, CH3, . . . , CHM relative to the channel CH1 by the following formula:
In an embodiment, the gain correction values A1, A2, . . . , AM−1 of the channels CH2, CH3, . . . , CHM relative to the channel CH1 and the offset correction values B1, B2, . . . , BM−1 of the channels CH2, CH3, . . . , CHM relative to the channel CH1 are obtained by performing the iterative computations on bipolar signals of the sampling data of two channels (i.e., a to-be-corrected channel selected from the channels CH2, CH3, . . . , CHM and the reference channel CH1) of the M channels. Since the bipolar signals are divided into positive amplitude and negative amplitude, the iterative computations introduce several additional auxiliary values, including: using a positive maximum value of a higher gain channel between the to-be-corrected channel and the reference channel CH1 as a positive base value XPMax, using a negative maximum value of the higher gain channel between the to-be-corrected channel and the reference channel CH1 as a negative base value XNMax, a positive amplitude auxiliary value P(i), and a negative amplitude auxiliary value N(i). P(i) and N(i) are used for calculating the gain correction values A1, A2, . . . , AM−1 and the offset correction values B1, B2, . . . , BM−1 during the iteration computations.
Specifically, as shown in
Step 1.1, an initialization is performed.
A sampling data segment (also referred to a first sampling data segment) with a length L is selected from the sampling data of the channel CH1 and a sampling data segment (also referred to a second sampling data segment) with the length L is selected from the sampling data of the channel CHm+1, the sampling data segment corresponding to the channel CH1 is denoted as X1(0), X1(1), . . . , X1(L−1) and the sampling data segment corresponding to the channel CHm+1 is denoted as Xm+1(0), Xm+1(1), . . . , Xm+1(L−1); a number of the iterative computations is initialized by i=1, a positive amplitude auxiliary value is initialized by P(0)=X1(0), a negative amplitude auxiliary value is initialized by N(0)=X1(0), the gain correction value is initialized by Am(0)=1, and the offset correction value is initialized by Bm(0)=0.
Step 1.2, a positive amplitude auxiliary value P(i) of an ith iterative computation and a negative amplitude auxiliary value N(i) of the ith iterative computation are calculated according to the following formula:
In the above formula, XPMax represents a positive base value and is determined as a positive maximum value of a higher gain channel between the channel CH1 and the channel CHm+1; XNMax represents a negative base value and is determined as a negative maximum value of the higher gain channel between the channel CH1 and the channel CHm+1; Am(i−1) represents a gain correction value of an (i−1)th iterative computation; Bm(i−1) represents an offset correction value of the (i−1)th iterative computation; and D′ represents an iteration speed.
Step 1.3, a gain correction value Am(i) of the ith iterative computation and an offset correction value Bm(i) of the ith iterative computation are calculated according to the following formula:
Step 1.4, an error Δm(i) of the ith iterative computation is calculated according to the following formula:
Step 1.5, whether the error Δm(i) is less than a set iteration precision is determined; when the error Δm(i) is less than the set iteration precision, the gain correction value Am(i) of the ith iterative computation and the offset correction value Bm(i) of the ith iterative computation are determined as the gain correction value Am and the offset correction value Bm; or when the error Δm(i) is equal to or greater than the set iteration precision, i=i+1 is determined and step 1.2 is returned and performed.
Since the multiple ADCs are similar, in an illustrated embodiment, as shown in
Step 2: delays of the M channels are obtained, a fractional delay filter with a Farrow structure is constructed (the multiple M channels corresponding to multiple fractional delay filters with the Farrow structure), and delay correction is performed on the M channels.
In an embodiment, the step 2 includes the following steps.
Step 2.1: the delays of the target channels are obtained.
In the step 2.1, in combination with spectrum analysis, a corresponding phase spectrum is obtained according to a corresponding real part and a corresponding imaginary part based on fast Fourier transform (FFT), which is convenient for measuring a phase difference of a signal at a certain frequency point. When measuring the delay of a single frequency point, the standard signal corresponding to the single frequency point is input through a signal source, the standard signals with same frequency and same phase are input into the M channels, the channel CH1 is used as the reference channel, phases of M standard frequency points corresponding to the M channels are calculated based on FFT, and then phase differences of the channels CH2, CH3, . . . , CHM relative to the channel CH1 at the same frequency point are obtained, thereby estimating the delay of the to-be-corrected channel relative to the channel CH1 according to the corresponding phase difference of the single frequency point.
Specifically, the step of obtaining the delays of the target channels includes the following steps:
In an illustrated embodiment, the sampling rate of the ADC is 262.144 kilohertz (kHz), and an analysis bandwidth of the multi-ADS system is 102.4 kHz. As shown in
Step 2.2: the fractional delay filter with the Farrow structure is designed, including the following steps:
In an illustrated embodiment, the order P of the fractional delay filter based on Lagrange interpolation is P=3, which is taken as an example, the coefficient of the fractional delay filter based on Lagrange interpolation is shown in Table 1 as follows:
The step 2.2 further includes: using a wave filter with a Farrow structure to approximate the determined coefficient h(n) of the fractional delay filter based on Lagrange interpolation, thereby obtaining an optimal fractional delay filter (i.e., the fractional delay filter with the Farrow structure) within the fractional delay of 0≤d≤1 by using the wave filter with the Farrow structure, and obtaining a polynomial h′(n) for the coefficient h(n) of the fractional delay filter based on Lagrange interpolation according to D=P−2+d, and the polynomial h′(n) for the coefficient h(n) of the fractional delay filter based on Lagrange interpolation being expressed by the following formula:
In an illustrated embodiment, the order P of the fractional delay filter based on Lagrange interpolation is P=3, an expression of the coefficient of the fractional delay filter based on Lagrange interpolation with third-order Farrow structure is expressed as follows:
The coefficient cP(n) of the fractional delay filter with the third-order Farrow structure according to the Lagrange interpolation is obtained as follows:
For the channels CH2, CH3, . . . , CHM, the delays τm, m=1, 2, . . . , M−1 obtained in the step 2.1 are determined as d respectively, and therefore the fractional delay filters hm(n) with the Farrow structure (also referred to the polynomials for the coefficient of the fractional delay filter with the Farrow structure) corresponding to the channels CH2, CH3, . . . , CHM are obtained as follows:
For the channel CH1, a decimal delay τ0 with a precision of ten thousandth of a sampling point is determined as d, and the polynomial h0(n) for the coefficient of the fractional delay filter with the Farrow structure corresponding to the channel CH1 is obtained as follows:
Specially, the decimal delay τ0 is a constant.
Step 2.3: the delay correction is performed on the M channels as follows.
The delay correction uses the fractional delay filters with the Farrow structure corresponding to the M channels to eliminate delay inconsistency of the sampling data of the M channels. Meanwhile, due to the fact that a bandwidth of the fractional delay filter with the Farrow structure is designed to be low by using the maximum flatness in the passband of the fractional delay filter based on Lagrange interpolation, the interpolation can be used to improve data rate, and data extraction can be performed after the delay correction is realized by the fractional delay filter with the Farrow structure. Specifically, the step 2.3 includes the following steps: performing half-band interpolation on the sampling data X1 corresponding to the channel CH1 and the sampling data X2, . . . , XM corresponding to the channels CH2, CH3, . . . , CHM after the gain-offset error correction performed in the step 1 to obtain processed sampling data, and inputting the processed sampling data into the fractional delay filters (also referred to the polynomials for the coefficient of the fractional delay filter with the Farrow structure corresponding to the M channels obtained in the step 2.2) h0(n), h1(n), . . . , hM−1(n) with the Farrow structure corresponding to the M channels CH1, CH2, CH3, . . . , CHM respectively to perform delay filtering, and then performing half-band extraction after the delay filtering to obtain delay-corrected sampling data X1, X2, . . . , XM, thereby completing the delay correction on the M channels.
In an illustrated embodiment, as shown in
In an illustrated embodiment, the disclosure use a seven-order wave filter with the Farrow structure to perform channel fixed delay correction based on linear phase characteristic, a normalized passband of the seven-order wave filter with the Farrow structure is only 52 kHz at the sampling rate of 262.144 kHz, the sampling rate is first increased to 524.288 kHz by using the half-band interpolation, and at this time, the passband of the seven-order wave filter with the Farrow structure meets a passband requirement of 105 kHz.
The sampling data of the two channels are corrected by the seven-order wave filter with the Farrow structure respectively. Specially, the fractional delay filter with the Farrow structure is set with a small delay of 0.0001 (i.e., the constant for the decimal delay) to compensate for the amplitude and full cycle delay of the sampling data in the channel CH1.
Step 3: data integration is performed.
The step 3 includes: integrating the delay-corrected sampling data X1, X2, . . . , XM to obtain a multi-ADC acquisition signal.
According to an actual application scenario of dynamic range expansion, sampling data with different amplitudes needs to be selected for integration by more different gains of the multiple channels. In an illustrated embodiment, the input signal is a sine wave, as shown in
Although the foregoing has been described with respect to the illustrated embodiments of the disclosure, it will be apparent to those skilled in the related art that the disclosure is not limited to the scope of the illustrated embodiments. Moreover, it will be apparent to those skilled in the related art that such variations are obvious to those skilled in the related art, as long as the variations fall within the spirit and scope of the disclosure, all of which are protected by the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2023105777203 | May 2023 | CN | national |