Chapter 7
Chapter 7
(2) A transition band is specified between the passband and the stopband t
o permit the magnitude to drop off smoothly
About Digital Filter Design
About Digital Filter Design
• Passband edge frequency p
• Stopband edge frequency s
• Sample frequency FT
About Digital Filter Design
N
H ( z ) h[ n] z
n
FIR Digital Filter
n0
p0 p1 z 1 p2 z 2 p M z M
IIR Digital Filter H ( z) d 0 d1 z 1 d 2 z 2 d N z N
About Digital Filter Design
FIR IIR
Impulse Response finite infinite
h[n]= h[n-N]
• Why analog?
20 log10 ( s ) 0.22
For narrowband filter N ( s p ) / 2
20 log10 ( p ) 5.94
For wideband filter N 27 ( s p ) / 2
Bilinear Transformation Method of IIR Filter
Design
• Bilinear transformation is more commonly used to design II
R digital filters based on the conversion of analog prototype
filters
• The Bilinear Transformation
S-plane to z-plane
G(z)= Ha(s) | s 2 ( 1 z 1 )
T 1 z 1
s j 0
z 1 s
1 s
z 1 j 0
1 j 0
s 0 j 0
(1 0 ) j 0 2 (1 0 ) 2 ( 0 ) 2
z (1 0 ) j 0
z (1 0 ) 2 ( 0 ) 2
If 0 0 then z <1
If 0 >0 then
z >1
Bilinear Transformation Method of IIR Filter
Design
j
• When s j and ze
1 e j
j 1 e j j tan( )
2
tan( )
2
Bilinear Transformation Method of IIR Filter
Design
• Design of Digital IIR Notch Filters
Example a second-order IIR notch filter
s 2 02
Analog transfer function:
H ( s) s 2 Bs 02
(1 02 ) 2 (1 02 ) z 1 (1 02 ) z 2
Applying a bilinear transformation : G( z) (1 02 B ) 2 (1 02 ) z 1 (1 02 B ) z 2
Rewrite it:
(1 ) 2 (1 ) z 1 (1 ) z 2
G( z) 2[1 (1 ) z 1 z 2 ]
11 tan( B
tan( B
w / 2)
w / 2)
cos 0
Notch frequency 0
Notch bandwidth
Bw
Design of Lowpass IIR Digital Filters
• Steps of designing a lowpass IIR digital filter
1 z 1
Step4: transfer Ha(s) to H(z) since s ( 2
T 1 z 1
)
Design of Lowpass IIR Digital Filters
• Example
Then
p
p tan( ) tan( 0.252 ) 0.4142136
2
s
s tan( ) tan( 0.552 ) 1.1708496
2
p
1
k
s
10..1708496
4142135
2.8266809
Design of Lowpass IIR Digital Filters
• From the passband ripple of 0.5dB obtaining 2 0.1220185
2
H a ( j s ) 1 ( 1 ) 2N 1
A2
s / c
then we get
c 1.419915( p )
Design of Lowpass IIR Digital Filters
The transfer function of third-order lowpass Butterworth is
H an ( s ) 1
( s 1)( s 2 s 1)
H a ( s ) H an ( 0.588148
s
) 0.203451
( s 0.588148)( s 2 0.588148s 0.345918)
0.0662272(1 z 1 ) 3
G ( z ) H a ( s ) |s (1 z 1 ) /(1 z 1 ) (1 0.2593284z 1 )(1 0.6762858z 1 0.3917468z 2 )
Design of Highpass, Bandpass, and Bandsto
p IIR Digital Filters
• First approch:
1 e j
j 1 e j
j tan( )
2
tan( 2 )
Design of Highpass, Bandpass, and Bandsto
p IIR Digital Filters
s F ( sˆ)
H D ( sˆ) H LP ( s ) |s F ( sˆ )
H LP ( s ) H D ( sˆ) |sˆ F 1 ( S )
• Step3: Design the analog lowpass filter HLP(S) using the meth
od described in Section 5.4
• Step4: convert the transfer function HLP(S) into HD(S) using the
inverse of the frequency transformation used in step2
1 e j
j 1 e j
j tan( 2 )
tan( )
2
Design of Highpass, Bandpass, and Bandsto
p IIR Digital Filters
• Step2: convert the frequency specifications of HD(s) into tha
t of a prototype analog lowpass filter HLP(S)
s F ( sˆ)
H D ( sˆ) H LP ( s ) |s F ( sˆ )
H LP ( s ) H D ( sˆ) |sˆ F 1 ( S )
1 z 1
s ( 2
T 1 z 1
)
• Step5: transform GLP(Z) into the desired digital transfer function
GD(z) using the appropriate spectral transformation discussed in
Section 7.5
Design of Highpass, Bandpass, and Bandsto
p IIR Digital Filters
• The functions we usually used in Matlab