This invention pertains generally to sampled-data systems: systems containing at least a subsystem consisting of an analog input signal, some analog hardware, an analog-to-digital converter (ADC), a processing element such as a digital signal processor (DSP) and a processed output signal in digital form.
This invention pertains specifically to such systems in which the phase characteristic is sub optimum. Phase is of particular interest because while magnitude response specifications can often be stated clearly, phase specifications often cannot. Magnitude response specifications are often made directly in the frequency domain. In other words, the specifications are a specific statement of desired magnitude response at particular frequencies. Filters designed to compensate magnitude response are most often specified, designed, and evaluated in the frequency domain. However, this is not necessarily the case for phase. Generally speaking, the requirement for phase response is that it be linear, which in other words is a constant group delay. This is because group delay is just another way of looking at phase. Group delay at a particular frequency is the time delay experienced by that particular frequency component as it passes through a system. Linear, negative phase means that the group delay is a constant at all frequencies (i.e. the entire signal experiences only a time shift as it passes through the system). The statement of group delay and phase are essentially equivalent and both will be used interchangeably.
In accordance with the invention, in order to compensate for the Group Delay of the system, first IFFT GD (Inverse Fast-Fourier Transform Group Delay) filters are made. This results in an output which has a linear phase. Then a stage of IIR GD (Infinite Impulse Response Group Delay) filter is added to the IFFT GD filters such that the output through this filter is an optimized step response, with desired risetime, overshoot and preshoot characteristics.
Still other objects and advantages of the invention will in part be obvious and will in part be apparent from the specification and the drawings.
The invention accordingly comprises the several steps and the relation of one or more of such steps with respect to each of the others, and the apparatus embodying features of construction, combination(s) of elements and arrangement of parts that are adapted to effect such steps, all as exemplified in the following detailed disclosure, and the scope of the invention will be indicated in the claims.
For a more complete understanding of the invention, reference is made to the following description and accompanying drawings, in which:
A detailed description of the invention will now be provided, making reference to the figures and providing details of the calculations.
To generate the IFFT group delay compensation filters in accordance with the invention, the phase response of the system has to be measured. This measurement can be made by either by using the step response of the system to calculate the phase response of the system, or by measuring the phase response of the system directly with a Vector Network Analyzer (VNA). In a preferred embodiment of the invention, the step response is used to calculate the phase response of the system, although the alternate measurement technique would also be acceptable.
A step response of a system is defined as the output of the system generated in response to an input signal shaped as an ideal step. In practical situations, however, the step output from any step generator that is to be used as an input signal to the system is far from ideal due to practical limitations of electronics. In order to generate the true step response of the system, the characteristics of such a non-ideal step input should be removed via calibration of the input step signal. This calibration can be performed by deconvolving the step generator's response from the step response of the system and then convolving the with the second order critically damped step response. The details of this process are set forth in U.S. patent application Ser. No. 10/678,374, titled “Digital Group Delay Compensator”, the entire contents thereof being incorporated herein by reference.
To reduce random noise in the system's step response, the step response is averaged over multiple acquisitions, without changing the input signal. The averaged and centered system step response may then be passed through one or more other filters as required to correct for magnitude response anomalies. As the IFFT Group Delay (GD) Filters and the IIR GD filters correct the phase response of the system without correcting for the magnitude response, any correction to the magnitude response has is performed by an additional set of filters. The waveform output is then used as the raw system step response, shown in
As per step 120 in
To ensure the same number of points in the impulse response as the step response the last point of the impulse response is reused. While this is not a necessity it is a convenience that same number of points exist, thus making further processing easier.
ximpluse[N−1]=ximpulse[N−2] Equation 2
As per step 130 of
Processing then continues to step 140 where the DFT (Discrete Fourier Transform) of this windowed impulse response is taken. This calculates a system frequency response to an input critically damped second order step, X The positive spectrum is calculated in Equation 5 below. As ximpulse is a real signal, the spectrum for negative frequencies is a complex conjugate of the positive spectrum, which can be similarly calculated.
Referring next to step 150 of
Φ[k]=Arg(X[k]) Equation 6
Processing then continues to step 160 of
H[k]=1×e−Φ[k] for f<fLimit
H[k]=0 for f>fLimit Equation 7
where Φ=phase in radians
f=k*Fs/N=vector of frequency values
fLimit=frequency after which magnitude response of the system has reached the noise floor.
By taking the IDFT (Inverse Discrete Fourier Transform) of the full spectrum as per step 170 of
Referring next to step 180 of
Preshoot in a step response suggests non-causality. Practical analog electronics systems are causal in nature. To provide a response that truly simulates a causal system-like response, preshoot must be reduced until it is negligible, at the cost of increasing the overshoot. This process is performed by applying the IIR GD filter, as set forth in step 190 of
There are no predefined parameters for this filter. A search and evaluate strategy is employed to generate filter coefficients that result in a filter that results in an optimal output step response. The optimality is evaluated with respect to risetime, overshoot and preshoot values of the filtered output step response. An algorithm used to generate this IIR GD filter are is provided in previously mentioned pending U.S. patent application Ser. No. 10/678,374, titled “Digital Group Delay Compensator”, the entire contents of which are hereby incorporated by reference.
The IIR GD filter designed by using the above algorithm is used to filter the IFFT GD filtered step as per step 210 of
Thus by employing two different techniques, first the design and application of IFFT GD filter to get a linear phase response and second the design and application of the IIR GD filter, optimal phase response is obtained.
It will thus be seen that the objects set forth above, among those made apparent from the preceding description, are efficiently attained and, because certain changes may be made in carrying out the above method and in the construction(s) set forth without departing from the spirit and scope of the invention, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.
It is also to be understood that the following claims are intended to cover all of the generic and specific features of the invention herein described and all statements of the scope of the invention which, as a matter of language, might be said to fall there between.
This application claims the benefit of U.S. Provisional Patent Application Ser. No. 60/656,629 titled Group Delay Compensation Using the IFFT Filters, filed Feb. 25, 2005, the entire contents thereof being incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
60656629 | Feb 2005 | US |