For mathematical convenience, the four classical IIR filter transfer functions were developed in terms of the Laplace transform rather than the z-transform. The prototype Laplace-transform transfer functions are descriptions of analog filters. In this section they are converted to z-transform transfer functions for implementation as IIR digital filters.
There have been several different methods of converting analog systems to digital described over the history of digital filters. Two have proven to be useful for most applications. The first is called the impulse-invariant method and results in a digital filter with an impulse response exactly equal to samples of the prototype analog filter. The second method uses a frequency mapping to convert the analog filter to a digital filter. It has the desirable property of preserving the optimality of the four classical approximations developed in the last section. This section will develop the theory and design formulas to implement both of these conversion approaches.
Although the transfer functions in Section 7.2 were designed
with criteria in the frequency domain, the impulse-invariant method will
convert them into digital transfer functions using a time-domain
constraint Entry 7, Entry 5, Entry 8. The digital filter designed by the
impulse-invariant method is required to have an impulse response that is
exactly equal to equally spaced samples of the impulse response of the
prototype analog filter. If the analog filter has a transfer function
The transfer function of the digital filter is the z-transform of the impulse response of the filter, which is given by
The transfer function of the prototype analog filter is always a rational function written as
where
The impulse response of this filter is the inverse-Laplace transform of (Equation 4), which is
Sampling this impulse response every
The basic requirement of (Equation 1) gives
which is clearly a rational function of
This method has its requirements set in the time domain, but the frequency
response is important. In most cases, the prototype analog filter is one
of the classical types, which is optimal in the frequency domain. If the
frequency response of the analog filter is denoted by
The frequency response of the digital filter is a periodically
repeated version of the frequency response of the analog filter.
This results in an overlapping of the analog response, thus
not preserving optimality in the same sense the analog prototype
was optimal. It is a similar phenomenon to the aliasing that
occurs when sampling a continuous-time signal to obtain a digital
signal in A-to-D conversion. If
The impulse-invariant design method can be summarized in the following steps:
The characteristics of the designed filter are the following:
This method is sometimes used to design digital filters, but because the relation of the analog and digital system is specified in the time domain, it is more useful in designing a digital simulation of an analog system. Unfortunately, the properties of this class of filters depend on the input. If a filter is designed so that its impulse response is the sampled impulse response of the analog filter, its step response will not be the sampled step response of the analog filter.
A step-invariant filter can be designed by first multiplying
the analog filter transfer function
There can be a problem with the classical impulse-invariant method when the number of finite zeros is too large. This is addressed in Entry 3, Entry 4.
An example of a Butterworth lowpass filter used to design a
digital filter by the impulse-invariant method can be shown. Note that
the frequency response does not go to zero at the highest frequency of
A second method for converting an analog prototype filter
into a desired digital filter is the bilinear transformation.
This method is entirely a frequency-domain method, and as a
result, some of the optimal properties of the analog filter are
preserved. As was the case with the impulse-invariant method, the
time interval is not normalized to one, but is explicitly denoted
by the sampling interval
The
This operation can be reversed by solving (Equation 10) for z and
substituting this into
To consider the frequency response, the Laplace variable s is evaluated on the imaginary axis and the z-transform variable z is evaluated on the unit circle. This is achieved by
which gives the relation of the analog frequency variable u to
the digital frequency variable
The bilinear transform maps the infinite imaginary axis in
the-s plane onto the unit circle in the
|
There is no folding or aliasing of the prototype frequency response, but there is a compression of the frequency axis, which becomes extreme at high frequencies. This is shown in Figure 2 from the relation of (Equation 14).
|
Near zero frequency, the relation of
In the design of a digital filter, the effects of the frequency warping must be taken into account. The prototype filter frequency scale must be prewarped so that after the bilinear transform, the critical frequencies are in the correct places. This prewarping or scaling of the prototype frequency scale is done by replacing s with Ks. Because the bilinear transform is also a change of variables, both can be performed in one step if that is desirable.
If the critical frequency for the prototype filter is
The prewarping scaling is given by
Combining the prewarping scale and the bilinear transformation give
Solving for
All of the optimal filters developed in Section 7.2 and most other
prototype filters are designed with a normalized critical frequency
of
Care must be taken with the elliptic-function filter where there are two critical frequencies that determine the transition region. Both frequencies must be prewarped.
The characteristics of the bilinear transform are the following:
The bilinear transform is probably the most used method of converting a prototype Laplace transform transfer function into a digital transfer function. It is the one used in most popular filter design programs Entry 1, because of characteristic 3 above that states optimality is preserved. The maximally flat prototype is transformed into a maximally flat digital filter. This property only holds for approximations to piecewise constant ideal frequency responses, because the frequency warping does not change the shape of a constant. If the prototype is an optimal approximation to a differentiator or to a linear-phase characteristic, the bilinear transform will destroy the optimality. Those approximations have to be made directly in the digital frequency domain.
Example. The Bilinear Transformation
To illustrate the bilinear transformation, the third-order Butterworth lowpass filter designed in the Example is converted into a digital filter. The prototype filter transfer function is
The prototype analog filter has a passband edge at
The digital transfer function in (Equation 20) becomes
Note the locations of the poles and zeros in the z-plane. Zeros at infinity in the s-plane always map into the z = -1 point. The example illustrate a third-order elliptic-function filter designed using the bilinear transform.
For the design of highpass, bandpass, and band reject filters, a particularly powerful combination consists of using the frequency transformations described in Section elsewhere together with the bilinear transformation. When using this combination, some care must be taken in scaling the specifications properly. This is illustrated by considering the steps in the design of a bandpass filter:
This is the procedure used in the design Program 8 in the appendix.
When designing a bandpass elliptic-function filter, four frequencies must be specified: the lower stopband edge, the lower passband edge, the upper passband edge, and the upper stopband edge. All four must be prewarped to the equivalent analog values. A problem occurs when the two transition bands of the bandpass filter are converted into the single transition band of the lowpass prototype filter. In general they will be inconsistant; therefore, the narrower of the two transition bands should be used to specify the lowpass filter. The same problem occurs in designing a bandreject elliptic-function filter. Program 8 in the appendix should be studied to understand how this is carried out.
An alternative to the process of converting a lowpass analog
into a bandpass analog filter which is then converted into a digital
filter, is to first convert the prototype lowpass analog filter into
a lowpass digital filter and then make the conversion into a
bandpass filter. If the prototype digital filter transfer function
is
Since the frequency response of both
The prototype digital lowpass filter is usually designed with
bandedges at
for the unknown
This is an extremely general approach that allows multiple
passbands of arbitrary width. If elliptic-function approximations
are used, only one of the transition bandwidths can be independently
specified. If more than one passband or rejectband is desired, f(z)
will be higher order than second order and, therefore, the
transformed transfer function
To illustrate the results of using transform methods to design filters, three examples are given which are designed with Program 8 from the appendix.
Example. Design of an Chebyshev Highpass Filter
The specifications are given for a highpass Chebyshev
frequency response with a passband edge at
The frequency response plot is given in Figure 3.
|
Example. Design of an Elliptic-Function Bandpass Filter
This filter requires a bandpass frequency response with an
elliptic-function approximation. The maximum passpand ripple is one dB,
the minimum stopband attenuation is 30 dB, the lower stopband edge
|
Example. Design of an Inverse-Chebyshev Bandreject Filter
The specifications are given for a bandreject Inverse-
Chebyshev frequency response with bandedges at
|
This section has described the two most popular and useful methods for transforming a prototype analog filter into a digital filter. The analog frequency variable is used because a literature on analog filter design exists, but more importantly, many approximation theories are more straightforward in terms of the Laplace-transform variable than the z-transform variable. The impulse-invariant method is particularly valuable when time- domain characteristics are important. The bilinear-transform method is the most common when frequency-domain performance is the main interest. Use of the BLT warps the frequency scale and, therefore, the digital band edges must be prewarped to obtain the necessary band edges for the analog filter design. Formulas that transform the analog prototype filters into the desired digital filters and for prewarping specifications were derived.
The use of frequency transformations to convert lowpass filters into highpass, bandpass, and bandreject filters was discussed as a particularly useful combination with the bilinear transformation. These are implemented in Program 8 and design examples from this program were shown.
There are cases where no analytic results are possible or where the desired frequency response is not piecewise constant and transformation methods are not appropriate. Direct methods for these cases are developed in other sections.