The present invention relates generally to filters. More particularly, the present invention relates to ripple elimination filters.
There can be significant differences in a signal when working in the frequency domain verses the time domain. Techniques have been developed for digital signal analysis (DSA) to adapt the cut off frequency with the sampling rate. Although these techniques work well for DSA applications, they do not produce adequate results for data acquisition (DAQ) applications. Accordingly, it is desirable to provide a way to produce adequate results for DAQ applications.
The foregoing needs are met, to a great extent, by the present invention, wherein in one aspect an apparatus is provided that in some embodiments reduce or eliminate a ripple in a signal.
In accordance with one embodiment of the invention a method for removing a step response ripple from a signal includes receiving a digital signal; passing the digital signal through a low pass filter and a decimation filter forming a resultant signal; and filtering the resultant signal with a filter having a linear phase and a slow transition band resulting in a signal without a step response ripple.
The resultant signal in some embodiments of the invention is filtered through a Finite Impulse Response filter (FIR).
In other embodiments of the invention the FIR is a 4-tap FIR, a FIR having a tap from 2-10 or a low order FIR.
The filter can in other embodiments of the invention is characterized in that when half a sampling frequency is normalized as 1, the transition band is greater than or equal to 0.1 of the normalized frequency.
In an alternate embodiment of the invention, a system for removing a step response ripple from a signal includes a means for receiving a digital signal; means for passing the digital signal through a low pass filter and a decimation filter forming a resultant signal; and means for filtering the resultant signal with a filter having a linear phase and a slow transition band resulting in a signal without a step response ripple.
The resultant signal in other embodiments of the invention is filtered through a FIR, a 4-tap (FIR), a FIR having a tap from 2-10 or a low order Finite Impulse Response filter (FIR).
The filter in other embodiments of the invention is characterized in that when half a sampling frequency is normalized as 1, the transition band is greater than or equal to 0.1 of the normalized frequency.
In another embodiment of the invention, a device for removing a step response ripple from a signal includes an input that receives a digital signal; a low pass filter in communication with the input and filtering the digital signal; a decimation filter in communication with the low pass filter that receives the filtered digital signal and outputs a resultant signal; and a filter having a linear phase and a slow transition band that receives the resultant signal and outputs a signal without a step response ripple.
The filter in other embodiments of the invention is a Finite Impulse Response filter (FIR), a 4-tap FIR, a FIR having a tap from 2-10 or a low order FIR.
The filter in other embodiments of the invention is characterized in that when half a sampling frequency is normalized as 1, the transition band is greater than or equal to 0.1 of the normalized frequency.
Alternatively, the invention a method for removing a step response ripple from a signal including receiving a digital signal; passing the digital signal through a low pass filter and a decimation filter forming a resultant signal; and filtering the resultant signal with a 4-tap Finite Impulse Response filter (FIR), wherein when half a sampling frequency is normalized as 1, the FIR has a transition band of greater than or equal to 0.1 of the normalized frequency resulting in a signal without a step response ripple.
Another embodiment of the invention is a system for removing a step response ripple from a signal that includes a means for receiving a digital signal; means for passing the digital signal through a low pass filter and a decimation filter forming a resultant signal; and means for filtering the resultant signal with a 4-tap Finite Impulse Response filter (FIR), wherein when half a sampling frequency is normalized as 1, the FIR has a transition band of greater than or equal to 0.1 of the normalized frequency resulting in a signal without a step response ripple.
An alternate embodiment of the invention includes a device for removing a step response ripple from a signal having an input that receives a digital signal; a low pass filter in communication with said input and filtering the digital signal; a decimation filter in communication with said low pass filter that receives the filtered digital signal and outputs a resultant signal; and a 4-tap Finite Impulse Response filter (FIR), wherein when half a sampling frequency is normalized as 1, the FIR has a transition band of greater than or equal to 0.1 of the normalized frequency resulting in a signal without a step response ripple.
The invention will now be described with reference to the drawing figures, in which like reference numerals refer to like parts throughout. An embodiment in accordance with the present invention provides a method for producing adequate results in data acquisition (DAQ) applications by removing a step response ripple from a signal using a filter having a linear phase and a slow transition band. Another embodiment in accordance with the present invention provides a device that removes a step response ripple from a signal using a filter having a linear phase and a slow transition band.
An embodiment of the present inventive apparatus is illustrated in
For DAQ applications an anti-aliasing filter can be used before the signal is converted from analog to digital. The example depicted in
It is very difficult and sometimes even impossible to adapt the cut off frequency of an analog filter when the filter order is high. Digital decimation is often used to vary the sampling rate and thus the hardware sampling rate is fixed at a relatively high number and the cut off frequency of the analog filter does not need to adapt.
The use of decimation filter 50 is good enough for DSA applications, where people pay more attention to the frequency domain property of the signal. However for DAQ applications where people emphasize the time domain property, a sharp decimation filter creates a step response having significant overshoot.
As shown in
In order to accomplish these goals, one could use a digital Bessel filter, but the result is not as good as an analog Bessel filter. The reason is that when an analog filter is translated into digital, a tangent transform is used to transform the digital frequency to analog frequency, since the tangent transform is a non-linear transform. Thus there is a loss of linear phase, which is one of the key properties of analog Bessel filter.
Another solution would be to use a ripple elimination filter having a linear phase. Obtaining a linear phase can be accomplished by using a Finite Impulse Response filter (FIR). A FIR normally has a very sharp transition band, which is a really good feature in the frequency domain, but a nightmare to work with in the time domain. However, if the transition band is slow better results may be realized. A FIR with a few taps can have a slow transition band. It has been determined that in some instance a FIR having between 2 to 10 taps will perform well.
If half of the sampling frequency is normalized as “1”, for a digital filter, its frequency response graph will have from 0 to 1 as its frequency axis. In some cases a sharp transition band covers anything smaller than 0.1 of the normalized frequency. A slow transition band can then be defined in some instances as a transition band which covers no more than 0.1 of the nominal frequency.
A further analysis comparing a step response of a 4-tap FIR and a step response of an analog Bessel filter can be done by comparing overshoot rate and ramp up speed. Ramp up speed depicted in
An advantage of anti-aliasing with a ripple elimination filter as depicted in
There is better phase match between channels because the analog filter is fixed at a relatively high frequency. The phase distortion by capacitor error will therefore be decreased, thus improving the channel phase match
There is a wider bandwidth with same sampling rate since when the frequency domain property is emphasized, the cut off frequency of decimation filter can be set at or near 0.45 Fs.
The implementation will be cheaper and there will be PCB space savings since the use of a high order analog filter will not be necessary, which not only saves money, but also saves PCB space, thus makes the instrument even smaller.
The implementation will be more versatile since a powerful digital filter can be applied after sampling according to different application needs.
The many features and advantages of the invention are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the invention which fall within the true spirit and scope of the invention. Further, since numerous modifications and variations will readily occur to those skilled in the art, it is not desired to limit the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope of the invention.