DSP Unit-4
DSP Unit-4
Pass band w1 W W2
Stop band 0 w W1 W W2
Design Steps :-
1. Use normalization procedure in which WC 1 rods which is to be assumed
1
H ( jW )
2
1 W 2N
H ( S ) H ( jW )
H ( jW ) H ( S )
2 2
1
H ( S ).H ( S )
1 (W 2 ) N
1
1 ( S 2 ) N
2. Due to H(S) the poles will be available on left half of S-Plane due to H(-S) the
poles will be available on right half of S-Plane.
1
H N (S )
DN (S )
1
H N ( S )
D N ( S )
3. The poles can be obtaines by equating the denominator to Zero.
DN (S ) indirectly the left half of S-Plane.
2 K 1
j / 2
SK e 2N , K 1,2, 2 N
2 K 1
j
Expression for poles S K e 2 2 N K 1, 2, 2 N
Butterworth Filter
jK (2 K 1)
SK e L
2 2N
L The angle at which the Butterworth poles are available.
The Butterworth poles are calculated on a circle in S-plane.
Ex :- Let us Compute the poles of the Normalised Butterworth filter for N=3 and also
compute angle at which the poles are available.
2 2
j j 0.5 0.866 j , ,
S1 e 2 23
e 3 3
3 j
e 1; 2
j
S2 e 2
23
5
4
e 8 / 3
j
0.5 0.866 j , 3
j
S3 e 2 23 2
3
5 5
j
0.5 0.866 j
J
S4 e 2 23
e 3
J 2
S5 e 1
J 7 / 3
S6 e 0.5 0.866 j.
As per as the stability is on armed the poles on LPF plane are only to be considered.
Therefore it Concerned system junction of Butterworth LPF cases obtained by
considering the poles on LHS plane.
1
H N (S )
( S S1 ) ( S S 2 ) (S S 3 )
1
( S S1 ) ( S 0.5 j 0.866) . ( S 0.5 S 0.866 )
1
( S 1) ( S 0.25 S 0.7 S )
2
1
( S 1) ( S 2 S 1)
360 0
Angular Separation b/w poles
2N
1
1St Pole Start is at 90 0 ( Angular Separation).
2
1. Derive the normalized Butterworth polynomial for N=1, 2,4
J
S1 e
J
2 2
e 1 1
J
S2 e 2 2 1,
1
H N (S )
( S 1) ( S 1)
1
( S 1) 2
J (1) J 3 / 4
S1 e 2 4
e 0.707 J 0.707
J ( 3) J 5 / 4
S2 e 2 4
e 0.707 J 0.707
5
J J 7 / 4
S3 e 2 4
e 0.707 J 0.707
J / 2 7 / 4 J 9 / 4
S4 e e 0.707 J 0.707
Magnitude Response of a Practical Butterworth Low Pass Filter
Wp
log arithm on both sides
2 W
2N
20 log H ( Jw) 10 log 1 10 log 1 _____ (2)
Wp
When W Wp
20 log 10 H ( JwP ) 10 log 1 2
20 log 10 1 ( JWP ) Ap
Ap 20 log 10 H ( Jw p )
Ap 10 log 10 1 2
10 0.1 AP
1
1
H ( JW )
1 W / Wc
2 2N
Ws
2N
As 10 log 10 1 2
Wp
2N
Ws
2
10 0.1 As
1
Wp
2N
Ws 10 0.1 As
1
Wp 2
2N
Ws 10 0.1 As
1
Wp 10 0.1 Ap
1
Take log on both sides
Ws 10 0.1 As
1
2 N log log
Wp 10
0.1 Ap
1
Ws 10 0.1 As
1
N log log
Wp 10 0.1 Ap
1
10 1
0.1 As
N log
10 1
0.1 Ap
Ws
log
Wp
log /
N
Ws
log
Wp
Since the Result of above expression is may be all integer (a) fraction value of it is a
fraction it is either integer.
Wp Wp
[Link] that Wc
( )1 / N 1
( 10 0.1 Ap
1) 2N
(10 0.1 Ap
1)1/ N
Design of Analog Low pass Butterworth Filter
1. From the given specifications, find out the order of the filter round off the order if
it C function.
2. Write the normalized transfer function H N (S ) Wc 1Rad / Sec for the above
value of N.
3. Find out the transfer function H(S) from H N (S ) [Denormalisation] by using the
following formula.
S / Wc
H (S ) H N (S ) S
Wp
Where Wc
1/ N
Problems
1. Design Analog Low pass Butterworth filter 2dB Pass band attenuation at a
frequency of at a frequency 20 rad/Sec and 10dB stop band attenuation at a
frequency of 30rad/Sec.
10 0.1 As 1
N log
10 0.1 Ap 1
Ws
log
Wp
10 1
log
1
10 0.2
30
log
20
3.922
0.176
Round of to next higher integer.
N=4
Step 2:-
Normalized transfer function for N = 4
1
H N (S )
S
0.765S 1 S 2 1.847 S 1
2
for Wc 1 rad / Sec
Step 3:-
Denormalised transfer function
S
H (S ) H N (S ) S
Wc
Wp Wp
Wc
1 / N 10 0.1 Ap
1 1/ 2N
20
10 0.2
1 1/ 8
20
0.935
21.386 Rad / Sec.
S
H (S ) H N (S ) S
Wc
1 S
2 S
S 0.765 S 1 S 1.877 S 1
2
21.386
1
2
S S S2 S
0.765 1 1.847 1
21.386 2
21.386 21.386 2
21.386
21.386 4
2091.79 10 3
H (S ) 2
S 16.36 S 457.36 S 2 39.5S
2. Determine the order and the poles of Butterworth LPF that has 3dB pass band
attenuation at 500Hz and attenuation of 40dB at 1000hZ
10 0.1 As
1
N log
10 1 0.1 Ap
Ws
log
Wp
10 4
1
log
10 1 0.3
1000
log
500
2.001
1) order of filter
0.301
N 6.647
Since it is a practical value to round off
2)
N 7
J
2 K 1
S1 e 2 2N K 1, 2, 3, 14
4
J J
S1 e 2 4 e 7 0.222 0.974 j
J 5 / 7
S2 e 0.623 0.78 iJ
J 6 / 7
S3 e 0.9 0.433 j
J 7 / 7
S4 e 1
J 8 / 7
S5 e 0.9 0.433 j
J 9 / 7
S6 e 0.623 0.781 j
J 10 / 7
S7 e 0.222 0.974 j
Transfer function
1
S 1 S 0.222 0.974 j S 0.222 0.974 j
S 0.623 0.781J S 0.623 0.781J
1
( S 1) S 1.8S 1 S 1.24 S 1 S 2 0.445S 1
2 2
1
H ( j ) 2 N 1, 2, (1)
1 2
N p
2
C N is Chebyshew' s Polynomial
Parameter related to pass band
C N ( x) Cos ( N Cos 1 x), x 1 for pass band
Cos h ( N Cos h 1 x) x . 1 for stop band _________ (2)
The Chebyshev’s polynomial can be obtained by recursive formula.
N ( x) 2 xC N 1 ( x) C N 2 ( x) . N 1 _______ (3)
C 2 ( x) 2 xC1 ( x) C 0 ( x) 2 x( x) 2 x 1
2
C3 ( x) 2 xC2 ( x) C1 ( x) 2 x(2 x 2 1) x 4 x 3 3x
C 4 ( x) 2 xC3 ( x) C 2 ( x) 2 X ( 4 x 3 3x) (2 x 2 1) 8 x 8 x 2 1
For odd values of N, the Oscillations curve starts from unity,
For even values of N, the oscillations curve starts ‘N’ odd, type-1 chebyshev.
1
H ( j )
2
2
1 2 C N
p
Taking logarithm 10 log on both sides
H ( J ) 10 log 1 10 log 1 2 C N (4)
2
20log p
At ω = ωp
W
20 log H ( JWp ) 10 log 1 2 C N
2
Wp
20 log H ( JWp ) 10 log 1 2 C N (1)
2
C N (1) 1
Ap 10 log 1 2
10 0.1 Ap
1
Wp
But C N ( x) Cos h C N Cos h 1 x) for stop band
2
Ws Ws
As 20 log H ( jW ) 10 log ( 1 Cos h ( N Cos h
2
1
1 ______ (6)
Wp Wp
1 Ws
2
10 0.1 As
1 10 0.1 Ap
1 Cos h ( N Cos h ) ______ (6)
Wp
10 0.1 AS
1 Ws
Cos h( NCos h 1
10 0.1 AP
1 wp
Ws
Cos h ( N Cos h 1
Wp
N 1
Cos h 1
Ws
Cos h 1
Wp
1. From the given Specifications, find out the offer of chebyshev filter. Round off to
next higher integer if it sir a fractional value.
2. Using the following formula, find out the value of ‘a’ and ‘b’
‘a’ is minor axis of ellipse
1 N 1 N
a Wp
2
‘b’ is major axis of ellipse.
1 N 1 N
b Wp
2
Where 1 2 1
10 0.1 Ap
1
3. Calculate the poles of chebyshev filter which lies on the ellipse using the formula.
S L a Cos L J bSin L , l 1,2, N
() nly Poles on LHS )
L
2K 1 , K 1, 2, N
2 2N
31.606
25 4.2716
10 0.1 Ap 1 10 0.1 1 2.74 j
1.506
N 3
2. Minor axis
1
N 1
a Wp N
2
1 2 1 0.8821 0.882 2 1
2.645 1/ 3
2.643
1 / 3
a 20
2
a 6.6
1 N 1 N
b Wp
2
2.6451 / 3 2.6451 / 3
20
2
b 21.06
3. Poles
S1 a Cos1 j b Sin
S 2 a Cos 2 j b Sin 2
S 3 a Cos3 j b Sin 3
2 K 1 ; K 1,2,3
2 2N
1 120 0 ;
2 6
2 180 0
22
5
3 240 0
2 10
S1 6.6Cos 120 j 21.06 Sil120
S1 3.3 J 18.238
S 2 6.6
S 3 3.3 18.238 j
4. Denominator.
( S 3.3 j18.238) ( S 3.3 j18.238) ( S 6.6)
S 2 10.89 6.6S 332.60
S 2 6.65 343.514
n 0
If we substitute T jT
re e
jw
e ________ (3)
T
r e
Which gives
W T
The Real Part of the analog Pole determines the Radius of Z-Plane pole and
imaginary past of Analog pole dictates the angle of digital pole.
S 1 j
2
S 2 j
T
j T T jT
then Z 1 e e e _______ 5 (a)
j ( 2 T ) T
Z2 e
T J 2T J 2
e .e e
T J T
e e
These 2 poles map to the same.
N
CK
Ha ( S ) S P
K 1
________ (6)
L
K 1
e _________ (8)
We know H ( Z ) h(n) Z n ________ (9)
n 0
e
N
H (Z )
n
Z 1
PKT
CK
n 0 K 1
e
N
CK
n
Z 1
PKT
K 1 n 0
N
CK
CK
1 e Z 1
PKT
K 1
if Ha ( S )
N
CK
Ha ( S )
K 1
CK
5 Pk
then
n
CL
H (Z )
1 e Z 1
PLT
L 1
Chebyshev LPF :-
(1) Order
Cos h 1
C
N 0
Wc
Cos h 1
Wp
Cos h 1
C
N 0
fS
Cos h 1
f
P
10 0.1 As
1 10 4
1 99.994
10 0.1 Ap
1 10 3
1 0.997
99.994
Cos h 1
N 0.997 4.025
1000
Cos h 1
500
N 5
2) Minor axis
1
N 1
a WP N
2
1 2 1
0.997 1 0.997 2 1
2.419
2.419 1 / 5 2.419 1 / 5
a 2f P
2
a 2 500 0.177
177.6
a 557.97
Major axis
1 1
b WP N N
2
2 500
2.419 2.419
0.2 0.2
2
b 3190.748
(3)Poles
S L a Cos L jb Sin L k 1,2,3,4,5
L
2 K 1
2 2N
1 108
2 10
3
2 144
2 10
5
3 180
2 10
7
4 216
2 10
9
5 252
2 10
S1 557.97Cos108 j 3190.748Sin 108
S1 172.422 3034.581 j
S 2 557.97 Cos 144 j 3190.74 Sin 144
S 2 451.407 1875.469 j
S 3 557.97 Cos 180
S 3 557.97
S 4 557.97 Cos 216 j Sin 216 03 190.748
S 4 451.407 1.875.47 j
S 5 557.97 Cos 252 j Sin 252 03 190.748
S 5 172.42 3034.581 j
(4) denominator
( S 172.422 3034.581 j ) ( S 172.422 3034.581 j )
( S 451.407 1875.469 j ) ( S 451.407 1875.47 j )
( S 557.97)
( S 557.97) ( S 2 344.844 S 9.2384 10 6 )
( S 2 902.814S 3.721 10 6
Numerator
N is Odd
Substitute S=0 is denominator then
2 500
0.9971 / 5
3143.48
2
1) H (S )
( S 1) ( S 2)
C1 C2
1 e Z 1 1 e Z 1
P1T P 2T
2 2
H (Z ) 1 1
2
1 e Z 1 e Z 1
2 2
H (Z )
1 0.367 Z 1 1 0.135Z 1
1 1
1 0.135Z 1 0.367 Z
H ( Z ) ( 2)
1 0.367 Z 1 1 0.135 Z 1
0.464
1 0.367 Z 1
1 0.135 Z 1
0.707 H e 1, 0 W / 2
Jw
H e 0.2, 3 / 4 W
Jw
WP ; 1 Ap 3dB
2
WS 3 ;
1
0.2; 1 2 25;
4 1 2
2 24
4.898
10 0.1 As
1
2 1 10 0.1 As
25 10 0.1 As
AS 13.979dB
WP
2
WS 3 4.898
4
1
1. Given set of in digital so we have to convert Digital Specifications.
into analog Specification
W T assume T 1Sec; W
2. Derive Analog filter transfer function
3
So S ; 4.898
4
P 1
2
Analog Filter transfer function:-
(1) Order of filter
log
N
S
log
P
log 4.898
log
4
2
N 3.918
Since it is a fractional value
N 4
2) Normalized transfer function N=4
1
H N (S )
( S 0.765S 1)
2
S 2
1.847 S 1
for WC load / Sec
3) . Demoralized transfer function
P
C
1 / N
Since 1;
so
C
2
H (S ) H N (S ) S S
C
1
H (S )
S 2
S
0. 765 1
1.57 2 1.57
S2 1.847 S
1
1.57 2
1 .57
1.57 4
S
1.201S 2.465 S 2 2.9S 2.46
2
6.075
H (S )
S 1.201S 2.46S S 2 2.95 2.465
2
Design of IIR digital Filter Using Bilinear Transformation
T
y (nT ) ( bx(nT ) ay (nT ) bx(nT T ) ay (nT T ) y (nT T )
2
aT
bx(nT ) bx(nT T ) ay (nT T ) y (nT T )
T
y (nT ) 1
2 2
aT aT bT
y (nT ) 1 y (nT T ) 1 x(nT ) x(nT T )
2 2 2
aT aT bT
y (nT ) 1 y (nT T ) 1 x(nT ) x(nT T ) (7)
2 2 2
Assume y (nT ) y (n)
aT aT bT
y (n) 1 y (n 1) 1 x(nT ) x(nT T ) __________ (8)
2 2 2
9. Taking Z-transform on both sides of equation (8)
aT
1
2
y ( Z )
aT 1
1 Z y ( Z )
bT
1 Z 1 X ( Z )
2 2
aT aT 1
y ( Z ) 1 1 Z
2 2
bT
2
X ( Z ) 1 Z 1
bT
2
1 Z 1
H (Z )
aT aT aT 1
1 2 2 1 2 Z
bT
2
1 Z 1
H (Z ) (9)
1
aT
1 Z 2 1 Z 1
b
H (Z ) (10)
2 1 Z 1
a
T 1 Z
1
10. Compare equation (10) with (1)
S
2 1 Z 1
T 1 Z 1
2 Z 1
S Z 1
T
11. Bilinear Transformation technique is easy to impulse element when compared to
2 Z 1
impulse invariant formation technique because ‘S’ is Replaced by
T Z 1
Conversion of Digital frequency to Analog frequency in Bilinear Transformation
Technique
1. Let us consider
Z re
eJw
(digital )
S j J ( ana log)
2 Z 1
S
T Z 1
r eJw 1
eeJw
2
S
T r e 1
S
eJw
2 r e 1 J r SinW
T rCosW 1 JrSinW
2 CosW 1 J r SinW rCosW 1 JrSin
S
T rCosW 12 r 2 Sin 2W
2 Cos 2 w 1 j r 2 Sin WCos W J r Sin W J r 2 SinW r 2 SinW
2
S r
T r 2 1 2rCosW
2 r 2 2 j r Sinw 1
S 2
T r 1 2r Cos W
2 r 2 1 2 jr SinW
S 2 2
T r 2r CosW 1 r 2r Cos W 1
S T j
2 r 2 1
2
T r 2r CosW 1
2 2rSinW
2
T r 2r CosW 1
1. If r 1 then is- ve that means left half of SD-plane of poles lies with in unit
circle then the system is stable.
2. If r 1 , is +ve that means poles are available on the right half of S-plane poles
are exterior of the unit circle so system is unstable.
3. If r ,1 is 0 that the poles on the unit circle imaginary axis so system is
magically stable.
2 2SinW
2 2CosW
T
2 2SinW
T2 2CosW / 2
2 W
tan
T 2
Steps to design IIR digital filter using Bilinear Transformation :-
1. Convert the given digital filter Specification to Analog filter Specifications by
using
2 W
Tan .
T 2
2. Derive the Analog Transfer function for Analog Specifications.
3. Convert the Analog filter transfer H(S) function into Digital filter transfer
function H(Z) by Replacing.
2 Z 1
S Z 1
T