1、IIR Digital Filter Design An important step in the development of a digital filter is the determination of a realizable transfer function G(z) approximating the given frequency response specifications. If an IIR filter is desired,it is also necessary to ensure that G(z) is stable. The process of der
2、iving the transfer function G(z) is called digital filter design. After G(z) has been obtained, the next step is to realize it in the form of a suitable filter structure. In chapter 8,we outlined a variety of basic structures for the realization of FIR and IIR transfer functions. In this chapter,we
3、consider the IIR digital filter design problem. The design of FIR digital filters is treated in chapter 10. First we review some of the issues associated with the filter design problem. A widely used approach to IIR filter design based on the conversion of a prototype analog transfer function to a d
4、igital transfer function is discussed next. Typical design examples are included to illustrate this approach. We then consider the transformation of one type of IIR filter transfer function into another type, which is achieved by replacing the complex variable z by a function of z. Four commonly use
5、d transformations are summarized. Finally we consider the computer-aided design of IIR digital filter. To this end, we restrict our discussion to the use of matlab in determining the transfer functions. 9.1 preliminary considerations There are two major issues that need to be answered before one can
6、 develop the digital transfer function G(z). The first and foremost issue is the development of a reasonable filter frequency response specification from the requirements of the overall system in which the digital filter is to be employed. The second issue is to determine whether an FIR or IIR digit
7、al filter is to be designed. In the section ,we examine these two issues first . Next we review the basic analytical approach to the design of IIR digital filters and then consider the determination of the filter order that meets the prescribed specifications. We also discuss appropriate scaling of
8、the transfer function. 9.1.1 Digital Filter Specifications As in the case of the analog filter,either the magnitude and/or the phase(delay) response is specified for the design of a digital filter for most applications. In some situations, the unit sample response or step response may be specified.
9、In most practical applications, the problem of interest is the development of a realizable approximation to a given magnitude response specification. As indicated in section 4.6.3, the phase response of the designed filter can be corrected by cascading it with an allpass section. The design of allpa
10、ss phase equalizers has received a fair amount of attention in the last few years. We restrict our attention in this chapter to the magnitude approximation problem only. We pointed out in section 4.4.1 that there are four basic types of filters,whose magnitude responses are shown in Figure 4.10. Sin
11、ce the impulse response corresponding to each of these is noncausal and of infinite length, these ideal filters are not realizable. One way of developing a realizable approximation to these filter would be to truncate the impulse response as indicated in Eq.(4.72) for a lowpass filter. The magnitude
12、 response of the FIR lowpass filter obtained by truncating the impulse response of the ideal lowpass filter does not have a sharp transition from passband to stopband but, rather, exhibits a gradual roll-off. Thus, as in the case of the analog filter design problem outlined in section 5.4.1, the mag
13、nitude response specifications of a digital filter in the passband and in the stopband are given with some acceptable tolerances. In addition, a transition band is specified between the passband and the stopband to permit the magnitude to drop off smoothly. For example, the magnitude )( jeG of a low
14、pass filter may be given as shown in Figure 7.1. As indicated in the figure, in the passband defined by 0p, we require that the magnitude approximates unity with an error of p,i.e., ppjp f o reG ,1)(1. In the stopband, defined by s ,we require that the magnitude approximates zero with an error of is
15、, .e., ,)( sjeG for s . The frequencies p and s are , respectively, called the passband edge frequency and the stopband edge frequency. The limits of the tolerances in the passband and stopband, pand s , are usually called the peak ripple values. Note that the frequency response )( jeG of a digital
16、filter is a periodic function of ,and the magnitude response of a real-coefficient digital filter is an even function of . As a result, the digital filter specifications are given only for the range 0 . Digital filter specifications are often given in terms of the loss function,)(lo g20)( 10 jeG , i
17、n dB. Here the peak passband ripple p and the minimum stopband attenuation s are given in dB,i.e., the loss specifications of a digital filter are given by dBpp )1(lo g20 10 , dBss )(lo g20 10 . 9.1 Preliminary Considerations As in the case of an analog lowpass filter, the specifications for a digit
18、al lowpass filter may alternatively be given in terms of its magnitude response, as in Figure 7.2. Here the maximum value of the magnitude in the passband is assumed to be unity, and the maximum passband deviation, denoted as 1/ 21 ,is given by the minimum value of the magnitude in the passband. The
19、 maximum stopband magnitude is denoted by 1/A. For the normalized specification, the maximum value of the gain function or the minimum value of the loss function is therefore 0 dB. The quantity max given by dB)1(lo g20 210m a x Is called the maximum passband attenuation. For p 1, as is typically the
20、 case, it can be shown that pp 2)21(lo g20 10m a x The passband and stopband edge frequencies, in most applications, are specified in Hz, along with the sampling rate of the digital filter. Since all filter design techniques are developed in terms of normalized angular frequencies pand s ,thesepcified critical frequencies need to be normalized before a specific filter design algorithm can be applied.