المرشحات الرقمية الخطية
المرشحات الرقمية الخطية
المرشحات الرقمية الخطية
1
Key characteristic features of FIR filters
2
Linear phase response
• Consider a signal that consists of several frequency
components passing through a filter.
1. The phase delay (T p) of the filter is the amount of
time delay each frequency component of the signal
suffers in going through the filter.
2. The group delay (Tg ) is the average time delay the
composite signal suffers at each frequency.
3. Mathematically, T p = −θ (ω ) / ω (3)
T g = −dθ (ω ) / dω (4)
where θ(ω) is the phase angle.
3
• A filter is said to have a linear phase response if,
ϑ (ω ) = −αω (5)
ϑ (ω ) = β − αω (6)
where α and β are constants.
Example) Ideal Lowpass filter
k
Magnitude
0 wc π w
Phase
0 α wc π w
4
k e-jwα passband
H(ejw) = 0 otherwise
Magnitude response = |H(ejw)| = k
Phase response (θ(ω)) = < H(ejw) = -wα
-π -wu -wl 0 wl wu π w
-π -w u -wl 0 wl wu π w
5
Linear phase FIR filters
• Symmetric impulse response will yield linear phase FIR filters.
h[0] = h[10]
h[1] = h[9]
h[2] = h[8]
h[3] = h[7]
h[4] = h[6]
h[5] = h[5]
7
N = 11
0 1 2 3 4 5 6 7 8 9 10
N = 10
0 1 2 3 4 5 6 7 8 9
h[0] = h[9]
h[n] = h[10-1-n] = h[9-n]
h[1] = h[8]
h[2] = h[7]
h[3] = h[6]
h[4] = h[5] 8
Example : Proof of Linear Phase :
4
H (z) = ∑n=0
h[n ] z −n
H ( z ) = h [ 0 ] + h [1 ] z − 1 + h [ 2 ] z − 2 + h [ 3 ] z − 3 + h [ 4 ] z − 4
9
Consider Frequency Response :
H (e jw
) = H (z) z =e jw (T =1)
H (e jw
) = h [ 2 ]e − j2w
+ [ h [1 ]e jw
+ h [ 3 ] e − jw ]e − j2 w
+
Phase = -2w
10
Group Delay :
−d
Tg = ( phase)
dw
H =2
passband
0 wp π w
Tg
2w
0 wp π w
( N −1) / 2
H (e jw
)=e − jw( N −1) / 2
∑ a[n] cos(wn)
n =0
where
a[0] = h[( N − 1) / 2],
a[ n] = 2h[(( N − 1) / 2) − n],
n = 1, 2,...( N − 1) / 2.
12
2. Type II FIR linear phase system
The impulse response is positive symmetric and
N is an even integer
h[ n] = h[ N − 1 − n ], 0 ≤ n ≤ ( N / 2) − 1
N / 2
− jw( N −1) / 2 1
H (e jw
) =e ∑
b[n] cos[ w( n − )],
n=1 2
where
b[ n] = 2h[ N / 2 − n],
n = 1, 2,... N / 2.
13
3. Type III FIR linear phase system
The impulse response is negative-symmetric and
N an odd integer.
h[n] = −h[ N − 1 − n], 0 ≤ n ≤ ( N − 1) / 2
( N −1) / 2
− jw( N −1) / 2
H (e jw
) = je ∑
n =1
a[ n ] sin( wn ) ,
where
a[ n] = 2h[(( N − 1) / 2) − n],
n = 1, 2,...( N − 1) / 2.
14
4. Type IV FIR linear phase system
The impulse response is negative-symmetric and N an
even integer.
h[ n ] = −h[ N − 1 − n ], 0 ≤ n ≤ ( N / 2) − 1
N / 2
− jw( N −1) / 2 1
H (e jw
) = je ∑
n=1
b[ n ] sin[ w(n −
2
)],
where
b[ n] = 2h[ N / 2 − n],
n = 1, 2,..., N / 2.
15
Fig: A summary of four types of linear phase FIR filters1
16
Fig: A comparison of the impulse of the four types of linear phase FIR filters1
17
Notes:
• The frequency response of a Type 2 filter is always zero at f=0.5
( half the sampling frequency as all the frequencies are normalized
to the sampling frequency) and thus is unsuitable as a highpass
filter.
• The frequency response of a Type 3 filter is always zero at f=0
and 0.5, while that of Type 4 filter is zero at f=0. Thus, Type 3
filter cannot be used as either a lowpass or high pass filter
whereas Type 4 cannot be used as a lowpass filter.
• Both Type 3 and 4 filters introduce a 90o phase shift and are
often used to design differentiators and Hilbert transformers.
• Type 1 is the most versatile of the four.
18
• The phase delay (for type 1 and 2 filters) or group delay (for
all four types) is expressible in terms of the number of
coefficients of the filter.
• Thus they can be corrected to give a zero phase or group delay
response.
• For example,
N −1 Phase delay for
Tp = T
2 types 1 and 2
19
References
20