Beruflich Dokumente
Kultur Dokumente
Outline
n =0 n =0
All poles are at the origin and also called all zeros filter
Advantages of FIR Filter
n = 0,1,..., ( N − 1) / 2 ( N odd)
h(n) = h( N − n − 1),
n = 0,1,..., ( N / 2) − 1 ( N even)
h(n) = -h(N-n-1)
α = (N-1)/2
β = ±π/2
a Type 3 linear phase FIR filter:
`N is odd number
aType 4 linear-phase filter
`N is even number
Example 1
h(n) = h(N - n - 1)
1 π 1 π j ωn
∫ ∫
jωn
hD (n) = 1 × e dω = e dω
2π −π 2π −π
2 f sin( nω c )
= c , n = 0, − ∞ ≤ n ≤ ∞
nω c
= 2 fc n = 0(using L' Hopital' s rule)
Ideal Impulse Responses for Standard
Frequency Selective filters
Gibb’s Effect
Comment
(a) Rectangular
(b) Hamming
(c) Blackman
Comments
ω c / π , n=0
hd (n) = sin(ω c n)
πn , n ≠ 0
Solution
2πn
where w(n) = 0.54 + 0.46 cos
N
aAdvantage:
`Simplicity: it is simple to apply and simple to
understand.
aDisadvantages:
`Lack of flexibility. Both the peak passband and
stopband ripples are approximately equal.
`The passband and stopband edge frequencies
cannot be precissely specified.
Frequency Sampling Method
↓
H(k) = Hd’(ω) | ω = (2π/N)k
↓ IDFT
N −1
1
h(n) =
N
∑ H
k =0
( k ) e j ( 2π / N ) nk
Example
A requirement exists for a lowpass FIR satisfying the
following specifications:
Passband 0 - 5 kHz
Sampling frequency 18kHz
Filter length 9
Results:
N = 67
Fo = {0, 0.1875, 0.2450, 0.2550, 0.3125, 1.000},
Mo = {1, 1, 0, 0, 1, 1}
W = {1, 120, 1.0}.
Matlab codes for filter design
a h = remez(N, Fo, Mo, W);
a [H, F]=freqz(h, 1, [500:10:1500], Fs);
a magH=abs(H);
a db=20*log10(magH);
a phase=unwrap(angle(H))*(180/pi);
a subplot(2,1,1); plot(F, db, 'b'); grid;
a xlabel('Frequency in Hz'); ylabel
('Magnitude in dB');
a subplot(2,1,2); plot(F,phase, 'b'); grid
a xlabel('Frequency in Hz'); ylabel ('Phase
in degrees');
Frequency Response of the Designed FIR Filter
aADC noise
aCoefficient quantization errors
aRoundoff errors from quantizing results of
arithmetic operations
aArithmetic overflow
Example