This invention relates to electronic circuits and more particularly to electronic filters and methods of operating electronic filters.
There is an increasing need for electronic systems that operate faster, process more data, and include more features and capability than previous generation equipment.
Signal processing systems can frequently receive inputs from several sources. Most signal processing and signal conditioning circuitry and software includes some type of conditioning filtering. When a measurement process is interrupted to process a different signal (for example, the switching in and out of built in test (BIT), built in test and evaluation (BITE), or calibration signals, and/or switching among different input signals for measurement or synthesis), there is generally a filter settling time penalty. For example, consider an electronic countermeasures (ECM) jamming system working against transient type signals, perhaps including frequency hopping. The system must process and filter incoming signals before the target emitter changes so that the target emitter can be jammed properly. Filtering takes large chunks of time to complete and is, or will become, a bottleneck in many processes.
Since the minimum duration for settling in ordinary fixed filters is limited or bounded, and surrounding hardware will continue to become faster due to technological advances and demands, filter settling time will become more critical to system capability and performance. If measured inputs or synthesized outputs are to be constantly changed prior to filtering in an application, settling time becomes critical.
Previous and other methods for speeding up the filtering process are not optimum and result in performance degradations in terms of noise, quantization error, aliasing and inconsistency, for both in band and out of band signals.
To meet the needs of future technological demand, new techniques for the reduction of filter settling time need to be devised and employed. This invention seeks to reduce filter settling time, while maintaining other performance parameters such as the rejection of noise and the rejection of out of band undesired signal components.
In a first aspect, the invention provides an apparatus including an input for receiving an input signal, a filter having a changeable time constant, and a control circuit for changing the time constant in response to a property of the input signal.
In another aspect, the invention provides an apparatus including a filter for receiving an input signal and having a changeable time constant, and a control circuit for increasing the time constant during a time period following initial receipt of the input signal.
In another aspect, the invention provides an apparatus including a multiplexer having a plurality of inputs for receiving a plurality of input signals, a filter for receiving one of the input signals from the multiplexer and having a changeable time constant, and a control circuit for changing the time constant in response to changes in the input signals.
The invention also encompasses a method of reducing the settling time of an electronic system. The method includes the steps of providing a filter having a changeable time constant, connecting an input signal to the electronic system; using the filter to filter an input signal to produce a filtered signal, and changing the time constant in response to a property of the input signal to reduce a settling time of the filtered signal.
The invention further encompasses a method including the steps of providing a filter for receiving an input signal and having a changeable time constant; and increasing the time constant during a time period following initial receipt of the input signal.
The invention also encompasses a method including the steps of providing a filter having a changeable time constant, alternatively connecting one of a plurality of input signals to the filter, using the filter to filter the input signal to produce a filtered signal, and changing the time constant in response to a change in the input signal to reduce a settling time of the filtered signal.
Most commonly, systems, measurement, and stimulus apparatus and equipment convert signals to baseband and/or require anti-aliasing filters. In such cases a lowpass filter is employed. Some of the important parameters for such a filter include the bandwidth, settling time, and out of band rejection. In many designs, filter bandwidth (which is inversely proportional to settling time) is traded off and kept wide in order to keep the settling time at an acceptable level. In doing so, more poles (and hardware) are required to achieve out of band rejection goals for the filter. Furthermore, the downfall is that the rejection of noise is less with a wider bandwidth filter. This invention seeks to significantly speed up the filtering process without degradation to performance.
Referring to the drawings,
In one example of the invention, a remote controlled device (such as for example a Versa Module Eurocard (VME) type card) is used to measure a number of signals within a system. Suppose one of the signals to be measured is 60 Hz power. The circuitry for the VME card can be relatively simple, for example including an input multiplexer (to select one of N inputs), a full wave bridge, a fixed single pole lowpass (RC) filter and a digital output as shown in the block diagram in
Now assume that the gains/attenuations of the various components are set such that the output of the filter 24 will reach 10 Vdc when settled, and an accuracy of 0.02% is desired. To simplify this description, the output of the full wave bridge is assumed to have a low impedance for this example. If the RC filter is designed such that 0.01% of the error budget is due to ripple and 0.01% of the error budget is due to a predetermined time constraint, then about 2.2 seconds would be needed to settle the filter output signal to the desired level.
Using the time variant filter approach of this invention, the filter time constant can be altered automatically.
If a priori knowledge of the input signal is known, the timing of the switch closure can be controlled to achieve improved results. For example, assume that the circuit is used to measure a 60 Hz power signal, which has a waveform that is fairly close to sinusoidal. The resistance of the circuit branch containing the switch can be set to be as low as possible (i.e., 0 Ohms) and a switch control circuit can be configured to trigger off the first zero crossing of the input signal. Then if the switch is closed at the zero crossing of the input signal and opened about 2.5 msec thereafter, the filter could settle in as little as about 1/120+2.5 ms=10.8 ms. Under this scenario, the capacitor voltage would be forced to follow the full wave rectified signal from the bridge until the switch opens. Once the switch opens, the full wave rectified signal level and capacitor voltage are close to a value, which is the same as the final settled value.
In another example where the input is a 60 Hz signal, switch 68 can be automatically controlled to open 0.5 seconds after the 60 Hz signal is connected to the circuit for measurement.
In one embodiment, the switch can be an electronic switch having alternate conductive states, including a first state in which said electronic switch is non-conducting and a second state in which the electronic switch conducts fully, and a control input for controlling the conductive state of the electronic switch. Examples of some applicable switches are Vishay-Siliconix part numbers: DG201, DG211, DG303, DG411, DG442 and VN0300 single MOSFET.
There are many other instances in which certain characteristics of the signals to be filtered are known. For example, serializer/deserializer (S/D) and deserializer/serializer (D/S) circuits sometimes employ a phase detector circuit along with filtering in a phase-lock loop section where the above technique may be used for improvement.
Multipole, multizero, and combinations of filters may also be employed.
Section 206 includes a first circuit branch 234 including a resistor 236 connected between section 204 and a capacitor 238, and a second circuit branch 240 including the series connection of a resistor 242 and a switch 244 connected between section 204 and capacitor 238. The capacitor 238 is connected to ground 218. Section 208 includes a first circuit branch 246 including a resistor 248 connected between section 206 and a capacitor 250, and a second circuit branch 252 including the series connection of a resistor 254 and a switch 256 connected between section 206 and capacitor 250. The capacitor 250 is connected between an output 258 and ground 218. The switches can be operated to change the time constant of the filter.
Although digital signal processing is widely used, analog filters are still required for such things as anti-aliasing, image rejection, etc. However, the approach described above can also be directly extended to digital filters, with more flexibility and capability. In digital form, this is done by directly continuously varying the time constant.
For this example, a simple fixed analog lowpass Laplace filter transfer function H(S) takes the form of:
where α is the reciprocal of the filter R·C time constant, and S is the Laplace Transform variable. From this, an equivalent digital simulator takes the form of:
where a is normally a constant which sets the digital filter bandwidth and associated time constant. And Z is digital Z-Transform variable for the filter. For high digital sampling rates where α·Ts<<1 and Ts is the digital sampling interval, a=1−e−αTs.
Expressing equation 2 as an infinite impulse response (IIR) filter in the time sampled domain results in:
y[n]=a·x[n]+(1−a)·y[n−1], (3)
where 0≦a≦1, and where y[n] is the digital output, x[n] is the digital input, n is the sample index, y[n−1] is the previous y value (from memory), and a is related to the analog filter R·C time constant per above.
When a=1, no filtering takes place and the bandwidth is infinite. With a value of a=1 the memory instantly becomes preloaded with the first incoming value, since the time constant for this digital filter is 0. At the other extreme when a=0, maximum filtering takes place and the bandwidth becomes 0 (as the time constant now becomes infinite), then everything is filtered out and nothing passes. The parameter a can easily be varied with time (from sample to sample) to adjust filter bandwidth and associated time constant with time. Varying parameter a also provides the ability to adjust filter bandwidth and associated time constant very frequently in many fine digital steps (instead of just one step as in the analog case with a single switch) and can be accomplished using either specific software coding or a digital hardware implementation to vary the parameter a with time.
Upon a remote control initiation, a may start out at (or close to) a value of 1. As samples come in (and time progresses), a will then be changed over and over in the direction towards 0 but will stop at a point of the final desired filter bandwidth (and for equivalence as that of the final bandwidth when switch 68 of
y[n]=a[n]·x[n]+(1−a[n])·y[n−1], (4)
where 0≦a[n]≦1.
In addition to the applications described above, there are applications where one may use such a filter and want to change the filter time constant, but not always in relation to the input signal or when a new signal is switched in by the multiplexer. As an example, the filter could be used in a remote type measurement apparatus, which may not have a multiplexer. The apparatus may have a single input and a controller may randomly request this apparatus to go out and take a measurement. If the apparatus utilizes a fixed filter, it may very likely be designed to wait for a period of time to allow for settling of the filter from the time the controller request was made, before actually responding with the measurement data. The rationale for this is that the controller may also be setting other things up in a system just prior to taking a measurement and it is likely that the input to the measurement apparatus had just become ready just prior to the controller making its request for a measurement and the filter in the measurement apparatus hasn't had time to settle yet. Using the time variant filter scheme proposed here, this wait time would reduce significantly by the measurement apparatus starting out (and possibly being in a normal state) with the filter set to a wide bandwidth (i.e., a short time constant). When the controller requests a measurement, the apparatus would automatically reduce the filter bandwidth (i.e., lengthen the time constant) with time and thereby converge to a settled result, and a final bandwidth that is equal to that of the fixed filter. Thus the filter would settle much faster and respond back to the controller much faster.
Normally one would design the filter with a time constant large enough to provide the necessary rejection. For example, the filter might be designed for <0.01% ripple. When using a controllable time constant filter, the controller could stop increasing the time constant once it became as long as that of the fixed filter design. In doing so, the filter output will settle to its final value much sooner than the fixed filter case. The rate at which the filter time constant is increased becomes a factor in how much improvement one obtains in settling time. Optimizing the rate is application dependent.
This technique can also be applied to more complex digital filters by varying coefficients with time for both infinite impulse response (IIR) and finite impulse response (FIR) filter types, as well as for lowpass, highpass, bandpass and cascaded bandpass filtering. As with any IIR filter, stability must be considered. The filter described by the above equations is stable (as long as a[n] is independently varied).
This invention can be implemented using all filter types (e.g., lowpass, highpass and bandpass). Circuits constructed in accordance with the invention filter signals with faster settling times while achieving better performance than other ordinary filter types in terms of noise rejection, sharper rolloff and out of band rejection. While the invention has been described in terms of several embodiments, it will be apparent to those skilled in the art that various changes can be made to the disclosed embodiments without departing from the scope of the invention as set forth in the following claims.