Professional Documents
Culture Documents
Filter 1
1. Specifications
Filter type: Band pass filter.
Pass band nature: equiripple
Stop band nature: monotonic
Passband tolerance, del1 = 0.1 (in magnitude)
Stopband tolerance, del2 = 0.1 (in magnitude)
Transition band = 1 KHz on either side.
Sampling frequency = 90 KHz
Filter number = 102
Pass band edge 1, BL(m) = 8.1KHz
Pass band edge 2, BH(m) = 13.1 KHz
Figure: 1
The analog band pass filter transfer function is obtained as
Figure: 2
H (Z) =
1.79231265e-05 8.96156323e-05 z^-2 + 1.78814448e-04 z^-4 -1.78814448e-04 z^-6 + 8.96156323e-05
z^-8 -1.79231265e-05z^-10
--------------------------------------------------------------------------------------------------------------------------(1 -7.13716068 z^-1 +24.97644276 z^-2 -55.45620734 z^-3 +85.978283014 z^-4 -96.91070615 z^-5 +
80.36067708 z^-6 -48.44596698 z^-7 + 20.39381777 z^-8
-5.44746669 z^-9 0.71377184z^-10)
The frequency response of the digital filter is as shown in the figure below.
Figure: 3
The pole-zero plot (zoomed) of the filter is shown below.
Figure: 4
The lattice parameters for the IIR filter with the specifications given, is mentioned below.
Lattice Coefficients:Kn
[-0.80394235 0.98669483 -0.7320443 0.97957285 -0.73884154 0.97801281
-0.74639071 0.9618184 -0.71996118 0.71377184]
Lattice Coefficients:Cn
[-9.63179219e-06 7.09115852e-05 1.47157755e-04 -4.05023699e-04
-4.44746042e-04 5.30712296e-04 6.17162961e-04 -1.15070766e-04
-3.09979012e-04 -1.27920234e-04 -1.79231265e-05]
Figure: 6
The impulse response of the filter is also shown below.
Figure: 7
Filter 2
1. Specifications
Filter type: Band stop filter.
Pass band nature: monotonic
Stop band nature: monotonic
Passband tolerance, del1 = 0.1 (in magnitude)
Stopband tolerance, del2 = 0.1 (in magnitude)
Transition band = 1 KHz on either side.
Sampling frequency = 70 KHz
Filter number = 102
Stop band edge 1, BL(m) = 6.8 KHz
Stop band edge 2, BH(m) = 9.8 KHz
Figure: 8
Figure: 9
Figure: 10
The pole-zero plot of the digital filter is as shown below.
Figure: 11
The lattice coefficients of the above bandstop filter is as given below
Lattice Coefficients:Kn
[-0.8391467 0.99350699 -0.77475231 0.97142235 -0.75398259 0.96393553
-0.77147338 0.94865473 -0.79211542 0.91526198 -0.80625706 0.85446582
-0.75878201 0.67108138 -0.39182368 0.12353447]
Lattice Coefficients:Cn
[ -5.43535423e-07 -1.37543584e-06
-3.52191890e-05 -3.25312554e-05
1.40468356e-03 3.20313254e-03
-3.53392528e-02 1.70796460e-01
3.51474696e-01]
-1.94805615e-05 -1.07484305e-05
-3.30919281e-04 2.14131566e-03
4.47523364e-02 3.89253954e-02
3.67167141e-01 -5.48893310e-01
n ranges from N to N, wc2 and wc1 are the cut-off frequencies calculated from the normalised
frequencies as wc1= 0.5*(wNs1+wNp1) and wc2= 0.5*(wNs2+wNp2).
This ideal impulse response is then multiplied with the Kaiser window (in this case it turned out to be a
rectangular window) to obtain the FIR impulse response. The transfer function of the FIR filter obtained, is
H(Z)=
[ -1.55330474e-02 -1.79090850e-02z^-1 -9.20689178e-03 z^-2 7.02046690e-03 z^-3
2.12201024e-02 z^-4 2.42038900e-02 z^-5 1.38003106e-02 z^-6 -3.30616351e-03 z^-7
-1.62348489e-02 z^-8 -1.77836892e-02 z^-9 -9.54423699e-03 z^-10 -1.60014632e-04 z^-11
2.10724204e-03 z^-12 -3.34047500e-03 z^-13 -8.45058850e-03 z^-14 -3.28805349e-03 z^-15
1.43217153e-02 z^-16 3.42033853e-02 z^-17 3.91755423e-02 z^-18 1.78017974e-02 z^-19
-2.43934243e-02 z^-20 -6.44687685e-02 z^-21 -7.47759818e-02 z^-22 -4.16690393e-02 z^-23
2.24228714e-02 z^-24 8.30783287e-02 z^-25 1.03350443e-01 z^-26 6.70944800e-02 z^-27
-9.02552778e-03 z^-28 -8.35590602e-02 z^-29 8.85714277e-01 z^-30 -8.35590602e-02 z^-31
-9.02552778e-03 z^-32 6.70944800e-02 z^-33 1.03350443e-01 z^-34 8.30783287e-02 z^-35
2.24228714e-02 z^-36 -4.16690393e-02 z^-37 -7.47759818e-02 z^-38 -6.44687685e-02 z^-39
-2.43934243e-02 z^-40 1.78017974e-02 z^-41 3.91755423e-02 z^-42 3.42033853e-02 z^-43
1.43217153e-02 z^-44 -3.28805349e-03 z^-45 -8.45058850e-03 z^-46 -3.34047500e-03 z^-47
2.10724204e-03 z^-48 -1.60014632e-04 z^-49 -9.54423699e-03 z^-50 -1.77836892e-02 z^-51
-1.62348489e-02 z^-52 -3.30616351e-03 z^-53 1.38003106e-02 z^-54 2.42038900e-02 z^-55
2.12201024e-02 z^-56 7.02046690e-03 z^-57 -9.20689178e-03 z^-58 -1.79090850e-02 z^-59
-1.55330474e-02 z^-60 ]
The magnitude and phase response of the FIR filter is as shown below.
Figure: 12
The impulse response of the filter is also shown below.
Figure: 13