FIR Using Freq Sampling
FIR Using Freq Sampling
6.10 Design
In this method, we determine a set of samples from the desired frequency response Ha(e?")
and they are considered as DFT coefficients. The IDFT of this set of samples then gives the
filter coetficients. The set of samples used in this method are obtained by sampling a desired
frequency response Ha(eiu) at M pointsw = wi k= 0,1,2,.. .M-1 which are equaly spaced
regular intervals.
There are two types of design techniques in this method. They are,
(i) Type I design : In this case, the set of samples includes the sample at frequency w = 0.
(ii) Type II design : In this case, the sample at w =0 is not included instead some other
samples are used.
We discus only Type I design technique in this section. Given the desired frequency response
Hae), we take the set of samples H (k) at the frequencies,
wk
wh= M1 k=0,1,...M 1 -
(6.111)
The samples of the desired frequency response at these frequencies are given by,
H() =
These sets of samples can be considered as M-point DFT H(k). Then the impulse response
h(n) of the filter can be obtained by computing the M-point IDFT of H (k).
M-1
6-65
Also we have,
H(k) =
must be satisfied.
is real
(a) H(0)
M = odd
(b) For
1)T -
(Mrk M
k= M..., M-1
For M even
n(- (6.118)
If the above conditions are satisfied, then Eqn. (6.113) can be written as,
-1
and h(n)= H(0) +2 Re H(k)eFnk M =even (6.121)
k=l
where n = 0,1,2,.. . M - 1
H(k) Ha(e)-2sk
=
k =0,1,...6
By taking M =
'7 samples on the w axis from 0 to 2T,
e(k) =
-Tk ; k =0.1,2,3 (E6.16.2
6T
=
-(k -
7) ; k= 4,5,6
H(6) = |H(E)]EiOK)
H(k)
k 1 k 2 k =3 Tk = 4 k = 5 3r k = 6 2T
k 0 =
T =
2
187
O(k) 12T
6T
3T 2T
2
67T
7
18T
Fig. E6.16
h(n) =
k=1
Re
{maye*-"}
=1+2Re (e-i .e*")
#1+2 Re (*n-9)]
-
2T
h(r)=1+2cos(3 (E6.16.3)
From Eqn. (E6.16.3),
H(2) =
-0.1146 +0.07932+0.3212+0.42862-3
+0.3212-4 +0.07932-5-0.11462-
H()
187
o(k) 127
6T
0.37 1.77 21
121**-..
187
Fig. E6.17
nal Processing
6-69
Digital
= 7 samples on
the w axis from 0 to 2T,
taking
By
H(k)| = 1 ; k = 0,1,6
(E6.17.1)
= 0 k =2,3,4,5
(6.116).
from
Eqn.
and
H(k) = e-i}rk
k=0,1
=0
k =2,3,4,5
-i(k-7) k= 6
The filter coefficients are given by Eqn. (6.120)
htn)=|1+2 Re {mne**
k=l
1+2 Re (*.*)
-
1+2 Re (eF(n-3))|
hn)=1+2con-3) (E6.17.3)
From Eqn. (E6.17.3),
h(0) =
h(6) = -0.1146
h(1) =
h(5) = 0.0793
h(2) =
h(4) = 0.321
h(3) = 0.4286
Solution. The samples taken from the magnitude of the desired frequency response is shown
in Fig. E6.18.
H(k)| |
k = 1
k= 3 k 5 10k=12 k=14 27
k =0 k =
2 k =
4 k =
6 k =
7 k =
9 k = 11 k = 13
Fig. E6.18
14
O(k) = =ETk k = 0, 1,2,...7
15
= 147-ETk
14
15 (E6.18.2)
14T k = 8,9...14
15 (k 15)
Digilal
S3gnal Process
6-71
6.18.1)
From Eqn. (E6.. and (E6.18.2),
H(k) = e-itrk
k =
0, 1,2,3
= 0
4 k 11
= e-i1a -T(k-15)
;12Sk14
We h a v e ,
M-1
h(m)=
h(n) M|H(0) +2 ReH(k)ein* M = odd
k=1
hn)=51+2 Re{ei*.#n
k=l
15 1+2 Re ft-
4T 6T
1+2 cos(n-7)+2
15 cosn7) +2 cosE(7 -
EXample 6.19. Design a linear phase FiR lter of length 15 whch hais syumetric unit
ise respouse and the frequency response that satisfies theconditionsk
k0 12,3
04 4
kb. 7
6-72 6.
Design of PIR
Filtery
Solution.
H()
0.4
8 k 10k=12 k=14 27
k = 4k=5
k = 0 k = 6 k =7 k==9 k = 11 k = 13
Fig. E6.19
We have,
= 0.4e i
k =4
= 0
5 k 10
0.4e i (k-15) k= 11
=ei1(k-15)
k= 12,13, 14
We have,
M
h(n)=
M HC0)+2 k=l
Re
{H0Me#"
H)-5+2 Re {m(eet"}
+2R3 e { - * s E ) + 2 Ref o 4 e j
k=1
D i g i t a l 5 1 g n a lP r o c e s s i n g
6-73
F + 2 Re {eekt-7}+2Re fo4etin-7
k=1
2T 4T 6T
1+2cos
h)15 | ) + 2cos E-7)+2 cosn
15
- 7) +0.8 cos -7
-0.0143
h(0)=h(14)
=
h(13) = -0.002
h(1) =
h(12) = 0.04
h(2) =
h(11) = 0.0122
h(3) =
h(10) -0.0913
h(4) =
=
-0.01817
h5)=h(9) =
h(6) =
h(8) = 0.3132
h(7) = 0.520
Yaft)
tauival Ac t r Hecy()
and
In the prutem, shaciicatn Hea() ane
giuen
thy au as olous ':
Kp-3d8, 2p 30Tnad/s
Ks--5ode, ns-45Tnads and T Se
Wp QPT =
O-3 Kp-3 dB
sT O . 4 6 T Ks= -30d8
Ws=
PretsasP
Jansitn uidth (A0) min stdp-band at
aldB
Reatanglon 4TN
as dB
Bordlat 8mN
44 dB
Hannin 8TN
s3 dB
Hamming STN
74 dB
Blackman 12/N
Jo meat a stop band dinuatn oSod8, hau
chois un the almofhamring ound &otkma,
uindoo Since blackman ha highur Urann widh
N K
N 53-33
Ha)
wc<<T
ha) HaL)
hd() S
27
- Wo
hd( Suinen-d)n+d
Tn- ue t
Judling n d in an.
haC) dw
rmru Tu
h) un
T
bcn-,o
-)
4-46 2T2)ad
hcce
inst duol, imulse rustone, us
-SodB
afinuatn as and
pass band
Coc and then eogn
tene, 8ightty
unureau
chack a band
posbanc
h k s i pa»s
Tusonse dl t
.
mag dil
t t
R ais
s
ouduue
p r o u d u
Cntunu uthan
TUauiment.
d ottinuain
ban
WpWp . t h e po we0.33T)
an
3 dB (modtlals
8 ealua
Tmy a a eduiln un N diiobn
uuthoud du.liin bng þo
band and stop band cqluiroment [N-2-)
o lu
o shcdiatn
037T
O Pass band cdge gncy
&top band edg qgntyo5T
Sep band atnuatn SodB
Hanning 87/N 4H dB
Hamming 8T N 53 dB
Rladkmann 1aTN 71 dB
sal
s l aa Stwp band attnuatn D 5 0de, uu tan choo
cheo
edtha Hamming 1 Blakmannwindoo. ule
wc<<|<n
e
uofn-),
do0O
- Wc
8inhen-) ntd
TT ( n -
in eagn O. get
Jating h d
Wc
c
hd( - d
Wa
is
rusonse o law bas FIRin
Hen, imhulse
OEnNH
hd (
-0 O0136
2 - O 001o6
- O0 [Y
20
38 - 0 O0lO6
39 - O Oo13
HO
ug 6elou ghou mannlisdo, ond n r
a n ideal Jouo a b ind hd (on)
b &uhose hd (n) ús dunkolud o hormror
tindow ohat is h(n)?
Hd ()
-+/4 /4
(w)
sl-4
4
-4
mi+C
W-H LO
and is guun &y
In general, H{w) is Complx
()
Ha(): Hd (
LOKT
hd(n) HA)e do
hd(n)
4
26jwn-4) dw 0
20
-Ti4
hd () a Suin n - 4 ) ; nt4
A
Tn-4)
tng n- in eogn O
DATE 200
OKT
R(n)
Imube Tsonse loo pass FIR s
hn)= hd(n) Whamm () o en4 N-I :8
NOTE dH
N = =N= 9
n hd o)
ham h(n)
O 08 O
IS O a4+ o 03a22
2 O 318 O-17172
3 O-45 O- 86S3 O 3993
O8653 o 3&93
6 O 318 O Sy
O17172
O-1S 2144
O 0322
O-08
Wc
A
wp
P
8
Onn) 1 , 0kn N
O, 0
n hd () Onn h()-hd()
O
O
O-15
o-15
O 318
2 O 318
O- 45 O-45
A O-S
O-45 O-45
.318 O318
O-15
O-15