Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Numeric Logaritmic
Non Ideal Filter Magnitude Response In Numeric
Stopband Passband
Transition Band
N Order Filter Design
Infinite Impulse Response Finite Impulse Response
Difference Equation Difference Equation
Impulse Response
Transfer Function/ Frequency Response N
h(n) bi (n i )
N
bi eij
i 0
Transfer Function/ Frequency Response
H ( ) i 0
N N
1 ai e ij
H ( ) bi e ij
i i i 0
Type of IIR Digital Filter
Butterworth Chebyschev 1
Chebyschev 2 Elliptic
Steps to Design IIR Digital Filter
Rs Rs H ( s)
Rp Rp
Steps 1
Stopband Passband
Transition Band
Steps 2 and 3
Steps 2 Steps 3
(Digital Frequency) (Analog Frequency
rad/sample /Prewarping)
rad/s
2 f p p
p p 2 Fs tan
Fs 2
2 f s s
s s 2 Fs tan
Fs 2
Remember !
2 rad f p Hz = s -1
Fs sample/s
fp
cycle/sample = siklus/sampel Digital Freq.
Fs
fp
2 rad.cycle/sample = rad/sample = p
Fs
fp
tan 2 rad/sample Analog Freq.
2 Fs
fp
2 Fs tan 2 sample/s x rad/sample = rad/s = p
2 Fs
2Fs can be removed 2Fs 1
Steps 4 : Backward
LPF
H j dB
G j dB
20 log
20 log
10
10
0 0
Rp Rp
Rs Rs
rad/dt rad/dt
1 C P S
Low-pass G(s) Low-pass H(s)
S
C
P
Steps 4 : Backward
HPF
20 log G j dB
20 log H j dB
10 10
0 0
Rp Rp
Rs Rs
rad/dt rad/dt
1 C s p
Low-pass G(s)
High-pass H(s)
P
C
S
Steps 4 : Backward
BPF
20 log G j dB 20 log10 H j dB
10
0 0
Rp Rp
Rs Rs
rad/dt rad/dt
1 C s1 p1 p2
s2
Low-pass G(s) Band-pass H(s)
2S1 P1 P 2
A
S1 P 2 P1
C min A , B
P1 P 2
2
B S2
S 2 P 2 P1
Steps 4 : Backward
BSF
20 log G j dB 20 log10 H j dB
10
0 0
Rp Rp
Rs Rs
rad/dt rad/dt
1 C p1 s2 p2
s1
Low-pass G(s)
Band-stop H(s)
S1 P 2 P1
A
2S1 P1 P 2
C min A , B
S 2 P 2 P1
B
2S 2 P1 P 2
Steps 5 : Filter Order
Butterworth
a2 1
g
2
RS
a 2 10 10
RP
2 10 10
1
Steps 6 : LPF Normalized N order
Butterworth
At page 127, Fundamental DSP, Ludeman
1
H n ( s) N 1 N 2
s a1s
N
a2 s ... aN 1s aN
Steps 6 : LPF Normalized N order
Chebyschev 1/2
Kn
H n ( s) N N 1 N 2
s bN 1s bN 2 s ... b2 s b1s b0
2
b0 odd n
K n b0
even n
1
2
FILTER FORWARD
s
LPF s
P
P
HPF s
s
s 2 P1 P 2
BPF s
s P 2 P1
s P 2 P1
BSF s 2
s P1 P 2
Steps 8 : Digital Filter Required /
Analog to Digital Transformation
Bilinear Transformation H ( z ) H ( s) | z 1
s 2 Fs
z 1
p
Ak
Impulse Invariance
H ( s)
k 1 s sk
Transformation
p
Ak
H ( z)
Can be removed, and
must be removed if
sk Ts 1
k 1 1 e z from step 2 2Fs was
already removed
Problem
• Digital Filter has Specification :
– Pass the signal more than 2 kHz and less than 6
kHz with passband attenuation more than -3 dB
– Stop the signal less than 100 Hz and more than 9
kHz with stopband attenuation less than -10 dB
– There is no ripple either in passband area or
stopband area
– Bilinear Transformation
– Sampling Frequency is 20 kHz
Problem
• Digital Filter has Specification :
– Pass the signal below 200 Hz and more than 8 kHz
with passband attenuation more than 3 dB
– Stop the signal between 2 kHz and 6 kHz with
stopband attenuation less than 6 dB
– There is no ripple at all band
– Bilinear Transformation
– Sampling Frequency is 20 kHz
• Design the digital filter !
• Check the filter !
Problem
• Digital Filter has Specification :
– Stop the signal below 1 kHz and more than 8 kHz with
stopband attenuation more than 10 dB
– Pass the signal between 4 kHz and 6 kHz with
passband attenuation less than 3 dB
– There is no ripple at all band
– Bilinear Transformation
– Sampling Frequency is 20 kHz
• Design the digital filter !
• Check the filter !
Problem
• Digital Filter has Specification :
– Pass the signal below 1 kHz with passband attenuation
more than -3 dB
– Stop the signal above 9 kHz with stopband
attenuation less than -14 dB
– There is ripple in passband area
– Bilinear Transformation
– Sampling Frequency is 20 kHz
• Design the digital filter !
• Check the filter !
Question
1. Design the digital Filter with explained steps !
2. Determine the magnitude when f=0, f=5 kHz,
and f=10 kHz, make a conclusion !
3. Realize the filter !
1. Gambarkan respon magnituda filter digital
sesuai spesifikasi yang diketahui
2. Ubah parameter frekuensi ke domain
analog
3. Hitung orde filter
4. Rancang Filter Analog LPF Ternormalisasi
5. Rancang Filter Analog Sesuai Spesifikasi
yang Diinginkan
6. Rancang Filter digital dari filter analog
sebelumnya dengan transformasi digital
(Impulse Invarian / Bilinier)
2 Methods FIR Filter Design
Windowing Method Frequency Sampling Method
H ( ) H ( )
Inverse Discrete
Time Fourier Sampling
Transform / ITFWD
hi (n) H (k )
Inverse Discrete
Windowing Fourier
Transform/IDFT/IFFT
H ( ) H ( ) hi (n)
Inverse Discrete
Time Fourier
Transform / ITFWD
hi (n )
window used :
Windowing
w( n)
j
, c sin c n
Hi e
1.e
hi n
j
0, c
n
Steps 1-2 (Several Ideal Magnitude Response)
HPF
j
, c sin n sin c n
Hi e
1.e
j
hi n
0, c n
Steps 1-2 (Several Ideal Magnitude Response)
BPF
0, 0 c1
j
H i e 1.e
j
, c1 c 2 hi n
sin c 2 n sin c1 n
0, n
c2
Steps 1-2 (Several Ideal Magnitude Response)
BSF
2 n
n
sin
j.e j
, 0 2
H i e j ,
2
j hi n
j.e , 0 n
0, n
Steps 1-2 (Several Ideal Magnitude Response)
Differensiator
j
, 0
Hi e
j .e
cos n
j
j .e j
, 0 ,n
hi n n
n
0,
Steps 3
Determining , N (Filter Order), M
(Filter length)
H i ( )
M 2 1 N M 1
1.e , c
j 2
Example : If H i e
j
0, c
Then 2
Steps 4
Calculating hi(n-)
Calculate hi (n ) from n 0 to n N
Then
hi (n )
=
hi ( ) hi ( 1) hi ( 2) ... hi ( N 1) hi ( N )
Steps 5
Calculating w(n)
Example :
h( n)
hi ( ) w(0) hi ( 1) w(1) ...... hi ( N ) w( N )
Latihan
Diketahui suatu filter dengan respon berikut
3 j
e -
H ( ) 2 2
0 lainnya
H dr e jk
H e
r
jk
Samples of H dr e j m
k
47
Example: magnitude responses (linear scale)
M 15
Task of a): transition
region width= 2 / M
k=0 k=1 k=2 k=3
b) k=4
Task of b): transition
region width=4 / M
k=6 k=7
a) k=4 k=5 48
Sampling Frequency Formula
49
1 U
2 n k
h( n) H (0) 2 H (k ) cos
N k 1 N
N 1
2 , N odd
U
N
1, N even
2
N = Length of FIR filter
Latihan