EC8553 DTSP Notes PDF
EC8553 DTSP Notes PDF
=
⁄ , = 0, 1, 2, … … … , − 1
1
=
⁄ , = 0, 1, 2, … … … , − 1
Properties of DFT
We know that
=
⁄
+ =
#⁄
+ =
⁄
⁄
+ =
⁄
We know that
=1
Hence
+ =
⁄
+ =
If and $ are the N point DFT of and % respectively, and ! and & are arbitrary constants either
Linearity property
Proof:
'()*+ =
⁄
If and $ are the N point DFT of and % respectively, then
Circular Convolution property
where,
Proof:
'()*+ =
⁄
Proof:
'()*+ =
⁄
Hence,
'()*+ =
⁄
Hence
Proof:
=
⁄
Proof:
=
⁄
− =
⁄
− =
⁄
⁄
− =
⁄
We know that
=1
∗ − = 5
⁄ 6
∗ − = ∗
⁄
∗
− = '()* ∗ +
1
'()* 7 "+ = 87 = ∗
where,
'()*+ =
⁄
0
Hence,
1
'()*+ = '()* + = * ⨂+
where,
For complex valued sequence and %, if '()*+ = and '()*%+ = $,
Parseval’s property
∗
1
% = $ ∗
If = %, then
1
|| = ||
Proof:
Discrete Time Signal Processing 8
=
⁄
$ = %
⁄
=
⁄ , = 0, 1, 2, … … … , − 1
H
Solution:
=
⁄G , = 0, 1, 2, 3
H
=
⁄ , = 0, 1, 2, 3
= 0 + 1
⁄ + 2
+ 3
H
⁄ , = 0, 1, 2, 3
= 1 + 2
⁄ + 3
+ 4
H
⁄ , = 0, 1, 2, 3
For = 0,
Example 2: Find the 8 point DFT of the sequence => = KL, @, A, B, B, A, @, LM.
= K0, 1, 2, 3, 3, 2, 1, 0M
Given:
=8
To find:
Formula:
=
⁄ , = 0, 1, 2, … … … , − 1
P
Solution:
=
⁄O , = 0, 1, 2, 3, 4, 5, 6, 7
P
=
⁄G , = 0, 1, 2, 3, 4, 5, 6, 7
= 0 + 1 + 2
⁄G
⁄
+ 3
H
⁄G + 4
+ 5
T
⁄G + 6
H
⁄
+ 7
P
⁄G , = 0, 1, 2, 3, 4, 5, 6, 7
=
⁄G + 2
⁄ + 3
H
⁄G + 3
+ 2
T
⁄G +
H
⁄ , = 0, 1, 2, 3, 4, 5, 6, 7
For = 0,
0 = 1 + 2 + 3 + 3 + 2 + 1 = 12
For = 1,
1 =
⁄G + 2
⁄ + 3
H
⁄G + 3
+ 2
T
⁄G +
H
⁄
1 = 0.707 − I0.707 − I2 − 2.121 − I2.121 − 3 − 1.414 + I1.414 + I
1 = −5.828 − I2.414
For = 2,
2 =
⁄ + 2
+ 3
H
⁄ + 3
+ 2
T
⁄ +
H
2 = −I − 2 + I3 + 3 − I2 − 1
2 = 0
For = 3,
= ?12, − 5.828 − I2.414, 0, − 0.172 − I0.414, 0, − 0.172 + I0.414, 0, − 5.828 + I2.414D
Result:
Example 3: Determine the 8 point DFT of the Sequence => = K@, @, @, @, @, L, LM.
Given: = K1, 1, 1, 1, 1, 0, 0M, = 8
To find:
Formula:
=
⁄ , = 0, 1, 2, … … … , − 1
P
Solution:
=
⁄O , = 0, 1, 2, 3, 4, 5, 6, 7
P
=
⁄G , = 0, 1, 2, 3, 4, 5, 6, 7
= 0 + 1
⁄G + 2
⁄ + 3
H
⁄G + 4
+ 5
T
⁄G + 6
H
⁄
+ 7
P
⁄G , = 0, 1, 2, 3, 4, 5, 6, 7
= 1 +
⁄G +
⁄ +
H
⁄G +
, = 0, 1, 2, 3, 4, 5, 6, 7
For = 0,
0 = 1 + 1 + 1 + 1 + 1 = 5
For = 1,
1 = 1 +
⁄G +
⁄ +
H
⁄G +
1 = 1 + 0.707 − I0.707 − I − 0.707 − I0.707 − 1
1 = −I2.414
For = 2,
2 = 1 +
⁄ +
+
H
⁄ +
2 = 1 − I − 1 + I + 1
2 = 1
For = 3,
3 = 1 +
H
⁄G +
H
⁄ +
J
⁄G +
H
3 = 1 − 0.707 − I0.707 + I + 0.707 − I0.707 − 1
3 = −I0.414
For = 4,
4 = 1 +
+
+
H
+
G
Discrete Time Signal Processing 11
4 = 1 − 1 + 1 − 1 + 1 = 1
0 1 1 1 1 0
Solution:
1 1 −I −1 I 1
X Y=X YX Y
2 1 −1 1 −1 2
3 1 I −1 −I 3
0 1 1 1 1 1
1 1 −I −1 I −1
X Y=X YX Y
2 1 −1 1 −1 2
3 1 I −1 −I −2
0 1−1+2−2
1 1 + I − 2 − I2
X Y=X Y
2 1+1+2+2
3 1 − I − 2 + I2
0 0
1 −1 − I
X Y=X Y
2 6
3 −1 + I
Result: = K0, − 1 − I, 6, − 1 + IM
Example 5: Find 8 point DFT for the sequence => = K@, @, @, @, A, A, A, AM
0 1 1 1 1 1 1 1 1 0
Solution:
\ _ \ _ \ _
[1^ [1 0.707 − I0.707 −I −0.707 − I0.707 −1 −0.707 + I0.707 I 0.707 + I0.707 [1^
^
[2^ [1 −I −1 I 1 −I −1 I
^[
2^
[3^ [1 −0.707 − I0.707 I 0.707 − I0.707 −1 0.707 + I0.707 −I −0.707 + I0.707^ [3^
[4^ = 1 −1 1 −1 1 −1 1 −1 [ ^
[ ^ [1 ^ [4^
5 −0.707 + I0.707 −I 0.707 + I0.707 −1 0.707 − I0.707 I −0.707 − I0.707^ 5
[ ^ [ [ ^
[6^ [1 I −1 −I 1 I −1 −I ^ [6^
Z7] Z1 0.707 + I0.707 I −0.707 + I0.707 −1 −0.707 − I0.707 −I 0.707 − I0.707 ] Z7]
0 1 1 1 1 1 1 1 1 1
\ _ \
[1^ [1 0.707 − I0.707 −I −0.707 − I0.707 −1 −0.707 + I0.707 I 0.707 + I0.707 _ \1_
^[ ^
[2^ [1 −I −1 I 1 −I −1 I
^ [1^
[3^ [1 −0.707 − I0.707 I 0.707 − I0.707 −1 0.707 + I0.707 −I −0.707 + I0.707^ [1^
[4^ = 1 −1 1 −1 1 −1 1 −1
[ ^ [1 ^ [2^
5 −0.707 + I0.707 −I 0.707 + I0.707 −1 0.707 − I0.707 I −0.707 − I0.707^ [2^
[ ^ [
[6^ [1 I −1 −I 1 I −1 −I ^ [2^
Z7] Z1 0.707 + I0.707 I −0.707 + I0.707 −1 −0.707 − I0.707 −I 0.707 − I0.707 ] Z2]
1
Solution:
1
Solution:
0 1 1 1 1 1 1 1 1 0
Solution:
\ _ \1 0.707 + I0.707 _ \ _
[1^ I −0.707 + I0.707 −1 −0.707 − I0.707 −I 0.707 − I0.707 [1^
[ ^
[2^ 1 I −1 −I 1 I −1 −I 2^
[ ^[
[3^ 1 [1 −0.707 + I0.707 −I 0.707 + I0.707 −1 0.707 − I0.707 I −0.707 − I0.707^ [3^
=
[4^ 8 1 [ ^
[ −1 1 −1 1 −1 1 −1 ^ [4^
[ ^ 1 −0.707 − I0.707 I 0.707 − I0.707 −1 0.707 + I0.707 −I −0.707 + I0.707^ 5
[5^ [ [ ^
[6^ [ 1 −I −1 I 1 −I −1 I ^ [6^
Z7] Z1 0.707 − I0.707 −I −0.707 − I0.707 −1 −0.707 + I0.707 I 0.707 + I0.707 ] Z7]
=
⁄ , = 0, 1, 2, … … … , − 1
Let us assume Twiddle factor d =
⁄ . Substitute twiddle factor in the sequence ,
= d , = 0, 1, 2, … … … , − 1
In DITFFT algorithm, the time domain sequence is decimated into even and odd component.
d =
⁄
We know that
d = i
⁄ j
d = i
G
⁄ j
d = i
⁄⁄ j
d = id⁄ j
d = d
⁄
Hence
= 2d
⁄ + d 2 + 1d⁄
= k + d l, 0 ≤ ≤ −1
2
For the remaining values of , i.e., ≤ ≤ − 1, is replaced by +
p# q
= k n + o + d l n + o , ≤ ≤ − 1
2 2 2
= k n + o + d d l n + o , ≤ ≤ − 1
2 2 2
d =
⁄
Again, we know that
d = i
⁄ j
d =
⁄
d =
d = −1
Hence
= k n + o − d l n + o , ≤ ≤ − 1
2 2 2
Thus,
k + d l, 0 ≤ ≤ −1
= r 2
k n + o − d l n + o, ≤ ≤ − 1
2 2 2
Here k and l are the point DFT and is given by
k = 2d
⁄
and
u + d⁄ ', 0 ≤ ≤
−1
l = r 4
u n + o − d⁄ ' n + o, ≤ ≤ − 1
4 4 4 2
where s, t, u, ' are the G point DFT and are given by the following equations
G G
G G
v = vG = vO = 1; vG = vO = −I; vO = 0.707 − I0.707; vOH = −0.707 − I0.707
Formula:
Solution:
= ?9, −3.828 − I8.242, 1 − I2, 1.828 − I0.242, 1, 1.828 + I0.242, 1 + I2, −3.828 + I8.242D
Result:
=
⁄ , = 0, 1, 2, … … … , − 1
Let us assume Twiddle factor d =
⁄ . Substitute twiddle factor in the sequence ,
Discrete Time Signal Processing 19
= d , = 0, 1, 2, … … … , − 1
In DIFFFT algorithm, the frequency domain sequence is decimated into even and odd component.
Hence the time domain sequence is decimated into two equal halves and is given as
d =
⁄
We know that
⁄
d = i
⁄ j
⁄
d =
⁄
⁄
d =
⁄
d = −1
⁄
Hence,
= d + −1 n + o d
2
= w + −1 n + ox d
2
Now, is decimated into even and odd component.
For even component of , is replaced by 2,
2 = w + −1 n + ox d
2
d =
⁄
We know that
d = i
⁄ j
d = i
G
⁄ j
d = id⁄ j
d = d
⁄
Hence,
2 = w + n + ox d
2 ⁄
2 = yd
⁄
where,
y = + n + o
2
For odd component of , is replaced by 2 + 1,
2 + 1 = w + −1# n + ox d
#
2
2 + 1 = w + −1# n + ox d d
2
2 + 1 = w − n + ox d d
2 ⁄
2 + 1 = ℎd
⁄
where,
ℎ = w − n + ox d
2
Again repeat the procedure for 2 and 2 + 1, we get as follow:
G
4 = !d
⁄G
G
4 + 2 = &d
⁄G
G
4 + 1 = {d
⁄G
4 + 3 = .d
⁄G
where
! = y + y n + o
4
& = wy − y n + ox d⁄
4
{ = ℎ + ℎ n + o
4
. = wℎ − ℎ n + ox d⁄
4
Example 1: Find the 8 point DFT of the sequence => = ?@, A, B, C, C, B, A, @D using DIFFFT algorithm.
Given: = ?1, 2, 3, 4, 4, 3, 2, 1D
To find: using DIFFFT Algorithm
v = vG = vO = 1; vG = vO = −I; vO = 0.707 − I0.707; vOH = −0.707 − I0.707
Formula:
Solution:
=1
= ?20, −5.828 − I2.414, 0, −0.172 − I0.414, 0, −0.172 + I0.414, 0, −5.828 + I2.414D
Result:
Step 1: Find the DFT of the first input sequence to get .
Circular Convolution using DFT Method
Step 2: Find the DFT of the second input sequence ℎ to get l.
Step 3: Multiply both l to get $.
Step 4: Find the IDFT for the sequence $ to get %.
(Condition: Both sequence are equal in length and length must be 2/ , i.e., 4, 8, 16, 32, 64, … … …)
Example 1: Find the circular convolution of the two sequences => = ?@, A, B, CD and |> = ?A, B, @D
using DFT method.
Discrete Time Signal Processing 23
Length of , = 4
Solution:
Length of ℎ, } = 3
Condition for circular convolution is that both and ℎ must be equal in length.
= ?1, 2, 3, 4D
Hence,
ℎ = ?2, 3, 1, 0D
1 1 1 1 1 1+2+3+4 10
1 −I −1 I 2 1 − I2 − 3 + I4 −2 + I2
= X YX Y = X Y=X Y
1 −1 1 −1 3 1−2+3−4 −2
1 I −1 −I 4 1 + I2 − 3 − I4 −2 − I2
= ?10, −2 + I2, −2, −2 − I2D
1 1 1 1 2 2+3+1+0 6
1 −I −1 I 3 2 − I3 − 1 + I0 1 − I3
l = X YX Y = X Y=X Y
1 −1 1 −1 1 2−3+1−0 0
1 I −1 −I 0 2 + I3 − 1 − I0 1 + I3
l = ?6, 1 − I3, 0, 1 + I3D
$ = l = ?60, 4 + I8, 0, 4 − I8D
1 1 1 1 60 60 + 4 + I8 + 0 + 4 − I8 68 17
1 1 I −1 −I 4 + I8 1 60 + I4 − 8 + 0 − I4 − 8 1 44 11
% = X YX Y= X Y= X Y=X Y
4 1 −1 1 −1 0 4 60 − 4 − I8 + 0 − 4 + I8 4 52 13
1 −I −1 I 4 − I8 60 − I4 + 8 + 0 + I4 + 8 76 19
% = ?17, 11, 13, 19D
Step 1: See the length of the input sequence and impulse sequence %. Assume iits length as and }
Linear Convolution using DFT Method
(Condition: Length must be in 2/ , i.e., 4, 8, 16, 32, 64, … … …). If the length is not in this form, then append
Step 3: Append zeros to the input and impulse sequence in accordance to the length of the output sequence
ℎ = ?2, 1, 0, 0D
Hence,
= 1, 3, 2, 0D
1 1 1 1 1 1+3+2+0 6
1 −I −1 I 3 1 − I3 − 2 + I0 −1 − I3
= X YX Y = X Y=X Y
1 −1 1 −1 2 1−3+2−0 0
1 I −1 −I 0 1 + I3 − 2 − I0 −1 + I3
= ?6, −1 − I3, 0, −1 + I3D
Step 1: − 1 zeros are padded at the end of the impulse response sequence ℎ which is of length } and a
Overlap Add Method
sequence of length } + − 1 = ~ is obtained. Then, this L – point FFT is performed and the output values are
Step 2: An L – point FFT on the selected data block is performed. Here each data block has input data values
stored.
and } − 1 zeros.
Step 3: The stored frequency response of the filter, i.e., the FFT output sequence obtained in Step 1 is multiplied
by the FFT output sequence of the selected data block obtained in Step 2.
Step 5: The first } − 1 IFFT values obtained in Step 4 is overlapped with last } − 1 IFFT values for the
Step 4: An L point inverse FFT is performed on the product sequence obtained in Step 3.
previous block. Then addition is done to produce the final convolution output sequence %.
Example 7: Find the response of the system with impulse response |> = ?B, @D and input=> =
Step 6: For the next data block, go to step 2.
Step 1: − 1 zeros are padded at the end of the impulse response ℎ which is of length } and a sequence
Overlap Save Method
of length } + − 1 = ~ is obtained. Then this L – point FFT is performed and the output values are stored.
} − 1 values in the previous data block, except the first data block which begins with } − 1 zeros.
Step 2: An L – point FFT on the selected data block is performed. Here each data block begins with the last
Step 3: The stored frequency response of the filter, i.e., the FFT output sequence obtained in Step 1 is multiplied
by the FFT output sequence of the selected data block obtained in Step 2.
Step 5: The first } − 1 values from successive output of Step 4 are discarded and the last values of the
Step 4: An L point inverse FFT is performed on the product sequence obtained in Step 3.
Length of ℎ, } = 3
~ = 2 = 2H = 8
~ =+}−1
= ~−}+1=8−3+1= 6
= ?0, 0, −1, 1, −3, 2, −1, −2D
= ?−1, −2, 3, 3, −1, 1, 3, 0D
ℎ = ?3, 2, 1, 0, 0,0, 0, 0D
0 −2 −1 2 −3 1 −1 0 3 −5
\0 0 −2 −1 2 −3 1 −1_ \2_ \−2_
[−1 0 0 −2 −1 2 −3 1 ^ [1^ [−3^
[ ^[ ^ [ ^
1 −1 0 0 −2 −1 2 −3^ [0^ [ 1 ^
% = ⊛ ℎ = [ =
[−3 1 −1 0 0 −2 −1 2 ^ [0^ [−7^
[ 2 −3 1 −1 0 0 −2 −1^ [0^ [ 1 ^
[−1 2 −3 1 −1 0 0 −2^ [0^ [−2^
Z−2 −1 2 −3 1 −1 0 0 ] Z0] Z−6]
−1 0 3 1 −1 3 3 −2 3 0
\−2 −1 0 3 1 −1 3 3 _ \2_ \−8_
[ 3 −2 −1 0 3 1 −1 3 ^ [1 ^ [ 4 ^
[ ^[ ^ [ ^
3 3 −2 −1 0 3 1 −1^ [0^ [ 13 ^
% = ⊛ ℎ = [ =
[ −1 3 3 −2 −1 0 3 1 ^ [0 ^ [ 6 ^
[ 1 −1 3 3 −2 −1 0 3 ^ [0 ^ [ 4 ^
[3 1 −1 3 3 −2 −1 0 ^ [0^ [ 10 ^
Z0 3 1 −1 3 3 −2 −1] Z0] Z 7 ]
> −A −@ L @ A B C
@L @@
Discrete Time Signal Processing 26
@ > −5 −2 −3 1 −7 1 −2 6
A > 0 −8 4 13 6 4 10 7
> −B @ − @ −A C @B C @L
1
Consider an analog filter’s transfer function as
l =
−!
ℎ =
Taking inverse Laplace Transform on both side,
1
Taking Z transform on both side, we get,
l =
1 −
1 1
Hence, from this we can get the mapping as
→
− ! 1 −
1 −1/
. /
1
Similarly, we can derive remain three transform as
→ w x
+ ! / - − 1! . /
1 −
→
+! 1 −
cos &)
→
+ ! + & 1 − 2
cos &)
+
&
sin &)
→
+ ! + & 1 − 2
cos &)
+
Here the analog filter with pole = ! is mapped to the digital filter with pole = . Hence
Relation between analog and digital frequency
=
=
We know that
= + IΩ
= #Ω
Hence
= Ω
= Ω)
From the above equation, it is clear that
This is the relationship between analog and digital frequency in impulse invariant transformation.
Disadvantage
This method is only applicable for low pass and band pass filter and is not applicable for high pass and band
reject filter. This method is easily affected by aliasing due to sampling of analog signal.
Summary:
@
Example 1: For the analog transfer function
=
+ @ + A
Determine the digital transfer function using impulse invariant transformation. Assume = @ .
1
Given:
l =
+ 1 + 2
) = 1 {
To find:l
1 1
Formula:
→
− ! 1 −
1 s t
Solution:
= +
+ 1 + 2 + 1 + 2
s + 2 + t + 1 = 1
Put = −1, then s = 1
Put = −2, then t = −1
1 1
l = −
+1 +2
1 1
l = −
1−
1 −
1 1
l = −
1 − 0.3679
1 − 0.1353
1 − 0.1353 − 1 + 0.3679
l =
1 − 0.3679
1 − 0.1353
0.2326
l =
1 − 0.5032
+ 0.0498
Example 2: Determine using the impulse invariant transformation for the analog transfer function
@
=
+ L. + L. + A
A
1
Given:
l =
+ 0.5 + 0.5 + 2
To Find: l
1 1
Formula:
→
− ! 1 −
1 s t + u
Solution:
= +
+
0.5 + 0.5 + 2 + 0.5 + 0.5 + 2
s + 0.5 + 2 + t + u + 0.5 = 1
Put = −0.5, then s0.25 − 0.25 + 2 = 1 ⟹ 2s = 1 ⟹ s = 0.5
Put = 0, then 2s + 0.5u = 1 ⟹ 1 + 0.5u = 1 ⟹ 0.5u = 0 ⟹ u = 0
Put = 1, then 3.5s + 1.5t + 1.5u = 1 ⟹ 1.75 + 1.5t = 1 ⟹ 1.5t = −0.75 ⟹ t = −0.5
0.5 0.5
l = −
+ 0.5 + 0.5 + 2
0.5 0.5 + 0.25 − 0.25
l = −
+ 0.5 + 0.25 + 1.3919
0.5 0.5 + 0.25 − 0.125
l = −
+ 0.5 + 0.25 + 1.3919
0.5 0.5 + 0.25 1 0.125 ∗ 1.3919
l = − +
+ 0.5 + 0.25 + 1.3919 1.3919 + 0.25 + 1.3919
0.5 0.5 + 0.25 0.0898 ∗ 1.3919
l = − +
+ 0.5 + 0.25 + 1.3919
+ 0.25 + 1.3919
0.5 0.51 −
.T
cos 1.3919 0.0898 ∗
.T sin 1.3919
l = − +
1 −
.T
1 − 2
.T cos 1.3919
+
.T
1 − 2
.T cos 1.3919
+
.T
0.5 0.5 − 0.0693
0.0688
l = − +
1 − 0.6065
1 − 0.2772
+ 0.6065
1 − 0.2772
+ 0.6065
0.5 0.5 − 0.1361
l = −
1 − 0.6065
1 − 0.2772
+ 0.6065
0.51 − 0.2772
+ 0.6065
− 0.5 − 0.1361
1 − 0.6065
l =
1 − 0.6065
1 − 0.2772
+ 0.6065
0.5 − 0.1386 + 0.3033
− 0.5 + 0.3033
+ 0.1361
− 0.0825
l =
1 − 0.2772
+ 0.6065
− 0.6065
+ 0.1681
− 0.3678
H
0.3008
+ 0.2208
l =
1 − 0.8837
+ 0.7746
− 0.3678
H
Bilinear Transformation
Bilinear Transformation is the one to one mapping from the s domain to z domain. It is a conformal
mapping that transforms jΩ axis in the s plane into the unit circle in the z domain only once, hence the output
signal are not affected by the aliasing due to sampling. It is used to design any type of filter such as low pass,
high pass, band pass and band reject filter.
&
Let the system transfer function of analog signal is
l =
+!
$ &
=
+ !
$ + ! = &
$ + !$ = &
Taking inverse Laplace Transform,
Discrete Time Signal Processing 30
.%
+ !% = &
.
Integrate the above equation by t over a interval of nT,
.%
¢ . + ¢ !%. = ¢ &.
.
We know that by trapezoidal rule of numerical integration,
)
¢ !. = *!) + !) − )+
2
!) &)
Hence,
*%+
+ *%) + %) − )+ = *) + ) − )+
2 2
!) !) &) &)
%) − %) − ) + %) + %) − ) = ) + ) − )
2 2 2 2
!) !) &) &)
n1 + o %) − n1 − o %) − ) = ) + ) − )
2 2 2 2
!) !) &) &)
Taking inverse Z transform,
n1 + o $ − n1 − o
$ = +
2 2 2 2
!) !) &)
wn1 + o − n1 − o
x $ = 1 +
2 2 2
&)
$ 1 +
= 2
p1 + !)q − p1 − !)q
2 2
&)
1 +
l = 2
!) !)
1 + 2 −
+ 2
&)
1 +
l = 2
!)
1 −
+ 1 +
2
&
l =
2 1 −
) n1 +
o + !
Now from the l and l equation, it is clear that
2 1 −
→ £ ¤
) 1 +
Relation between analog and digital frequency
=
We know that
= + IΩ
Discrete Time Signal Processing 31
2 1 − i j
Thus
+ IΩ → ¥ ¦
) 1 +
2 − 1
+ IΩ → £ ¤
) +1
2 cos + I sin − 1
+ IΩ → n o
) cos + I sin + 1
2 cos − 1 + I sin
+ IΩ → n o
) cos + 1 + I sin
2 cos − 1 + I sin cos + 1 − I sin
+ IΩ → n on o
) cos + 1 + I sin cos + 1 − I sin
2 − 1 + I2 sin
+ IΩ → £ ¤
) + 2 cos + 1
2 2 sin
Equating imaginary part on both side,
Ω = w x
) + 2 cos + 1
For unity magnitude, i.e., = 1
2 2 sin
Ω = w x
) 1 + 2 cos + 1
2 2 sin
Ω = w x
) 2 + 2 cos
2 sin
Ω = w x
) 1 + cos
2 2 cos p 2 q sin p 2 q
Ω = § ¨
) 2 cos p 2 q
2 sin p 2 q
Ω = § ¨
) cos pq
2
2
Ω= tan p q
) 2
This is the relation between the analog and digital frequency in the bilinear transformation.
Here it is shown that the relation between analog and digital frequency is non linear and hence due to
this non linearity, warping effect will occur.
A
Example 1: Convert the analog transfer function
=
+ @ + B
to digital transfer function using bilinear transformation. Assume = L. @ .
2
Given:
l =
+ 1 + 3
) = 0.1 {
To Find:l
Formula:
Discrete Time Signal Processing 32
2 1 −
→ £ ¤
) 1 +
l = *l+
Solution:
« ¬
→ n o
#« ¬
2
l = w x
+ 1 + 3 →n
« ¬ o
#« ¬
2
l =
1 −
1 −
n20 n o + 1o n20 n o + 3o
1 +
1 +
21 +
l =
20 − 20
+ 1 +
20 − 20
+ 3 + 3
21 +
l =
21 − 19
23 − 17
21 +
l =
483 − 794
+ 323
0.00421 +
l =
1 − 1.6439
+ 0.6687
+ L. @
Example 2: Convert the analog transfer function
=
+ L. @A +
of ®¯ = °⁄C.
into digital transfer function using bilinear transformation. The digital filter have a resonant frequency
+ 0.1
Given:
l =
+ 0.1 + 9
± = ²⁄4
To Find: l
2 1 −
Formula:
→ £ ¤
) 1 +
2 ±
Ω³ = tan
) 2
Solution:
Ω³ = 9
From the analog transfer function,
Ω³ = 3
2 ²
Now,
3 = tan
) 8
0.8284
3=
)
0.8284
)=
3
) = 0.2761 {
l = *l+
« ¬
→ n o
#« ¬
´ ≤ µli jµ ≤ 1, 0 ≤ ≤ ¶
Specification:
µli jµ ≤ ´ , ≤ ≤ ²
¶
, 4-·" 4¸! ¹! ) ! -!¹
Step 1: Determination of Analog Edge Frequencies:
)
Ω¶ = r 2 ¶
tan , t¹"¹ ! ) ! -!¹
) 2
, 4-·" 4¸! ¹! ) ! -!¹
)
Ω = r 2
tan , t¹"¹ ! ) ! -!¹
) 2
1 1
log ½n − 1o¾n − 1o¿
Step 2: Determination of Order of the Filter:
1 ´ ´
≥
2 logiΩ ⁄Ω¶ j
Ω¶
Step 3: Determination of Cut off Frequency:
Ω³ =
1 ⁄
n − 1o
´
Step 4: Determination of Analog Transfer Function À :
For even,
⁄
t Ω³
l = Á
+ & Ω³ + { Ω³
For odd,
⁄
t Ω³ t Ω³
l = Á
+ { Ω³ + & Ω³ + { Ω³
Discrete Time Signal Processing 34
2 − 1²
where,
& = 2 sin £ ¤
2
{ = 1
t can obtained from
For even,
⁄
s = 1 = Á t
For odd,
⁄
s=1= Á t
Step 5: Determination of Digital Transfer Function :
lcan be obtained from l using either impulse invariant transformation or bilinear transformation.
1 1
Using Impulse Invariant Transformation:
→
− ! 1 −
1 −1 /
. /
1
→ w x
+ ! / - − 1! . /
1 −
→
+! 1 −
cos &)
→
+ ! + & 1 − 2
cos &)
+
&
sin &)
→
+ ! + & 1 − 2
cos &)
+
2 1 −
Using Bilinear Transformation:
→
) 1 +
µb® µ ≤ L. A, B°⁄C ≤ ® ≤ °
with = @ . Apply Impulse Invariant Transformation.
To find: l
Step 1: Determination of Analog Edge Frequencies:
¶
Ω¶ =
Formula:
)
Ω =
)
²
Ω¶ = = 1.5708 .⁄ {
Solution:
2
3²
Ω = = 2.3562 !.⁄ {
4
Step 2: Determination of Order of the Filter:
Formula:
1 1
1 log Ãp0.04 − 1qÄp0.5 − 1qÅ
Solution:
≥
2 log2.3562⁄1.5708
1 log?24⁄1D
≥
2 log2.3562⁄1.5708
1 1.3802
≥
2 0.1761
≥ 3.9188
=4
Step 3: Determination of Cut off Frequency:
Ω¶
Formula:
Ω³ =
1 ⁄
n − 1o
´
1.5708
Solution:
Ω³ =
1⁄O
Ω³ = 1.5708 !.⁄ {
Since even,
Formula:
⁄
t Ω³
l = Á
+ & Ω³ + { Ω³
2 − 1²
where,
& = 2 sin £ ¤
2
{ = 1
t can obtained from
For even,
⁄
s = 1 = Á t
t Ω³
Solution:
l = Á
+ & Ω³ + { Ω³
t Ω³ t Ω³
l = £ ¤ £ ¤
+ & Ω³ + { Ω³ + & Ω³ + { Ω³
t t ΩG³
l =
+ & Ω³ + { Ω³ + & Ω³ + { Ω³
1 = Á t
t t = 1
6.0881
l =
+ 1.2021 + 2.4674 + 2.9025 + 2.4674
Step 5: Determination of Digital Transfer Function :
6.0881 s + t u + '
= +
+ 1.2021 + 2.4674 + 2.9025 + 2.4674 + 1.2021 + 2.4674 + 2.9025 + 2.4674
s + t + 2.9025 + 2.4674 + u + ' + 1.2021 + 2.4674 = 6.0881
Put = 0,
2.4674t + 2.4674' = 6.0881
t + ' = 2.4674 −→ 1
Comparing coefficients,
H
s + u = 0 −→ 2
Put = 1,
s + t6.3699 + u + '4.6695 = 6.0881
6.3699s + 6.3699t + 4.6695u + 4.6695' = 6.0881 −→ 3
Put = −1,
−s + t0.5649 + −u + '2.2653 = 6.0881
−0.5649s + 0.5649t − 2.2653u + 2.2653' = 6.0881 −→ 4
0 1 0 1 s 2.4674
Equation (1), (2), (3) and (4) can be written in the matrix form as
1 0 1 0 t 0
X YX Y = X Y
6.3699 6.3699 4.6695 4.6695 u 6.0881
−0.5649 0.5649 −2.2653 2.2653 ' 6.0881
0 1 0 1
1 0 1 0
∆= Ç Ç = −21.1556 − 17.0675 − −17.0675 + 7.1967 = 5.7827
6.3699 6.3699 4.6695 4.6695
−0.5649 0.5649 −2.2653 2.2653
2.4674 1 0 1
0 0 1 0
∆È = Ç Ç = 2.4674−11.7919 − 14.637 − −35.3414 = −8.3909
6.0881 6.3699 4.6695 4.6695
6.0881 0.5649 −2.2653 2.2653
0 2.4674 0 1
1 0 1 0
∆É = Ç Ç = −2.467421.1556 − 17.0675 − −42.2198 + 42.2198
6.3699 6.0881 4.6695 4.6695
−0.5649 6.0881 −2.2653 2.2653
= −10.0868
0 1 2.4674 1
1 0 0 0
∆³ = Ç Ç = −−14.637 + 2.467411.7919 − 35.3414 = 8.3909
6.3699 6.3699 6.0881 4.6695
−0.5649 0.5649 6.0881 2.2653
Discrete Time Signal Processing 37
0 1 0 2.4674
1 0 1 0
∆Ê = Ç Ç = −42.2198 − 42.2198 − 2.4674−17.0675 + 7.1967
6.3699 6.3699 4.6695 6.0881
−0.5649 0.5649 −2.2653 6.0881
= 24.3552
∆È 8.3909
s= =− = −1.451
∆ 5.7827
ƃ 10.0868
t= =− = −1.7443
∆ 5.7827
∆³ 8.3909
u= = = 1.451
∆ 5.7827
∆Ê 24.3552
'= = = 4.2117
∆ 5.7827
1.451 + 1.7443 1.451 + 4.2117
l = − +
+ 1.2021 + 2.4674 + 2.9025 + 2.4674
1.451 + 1.2021 1.451 + 2.9026
l = − +
+ 0.6011 + 1.4513 + 1.4513 + 0.6011
1.451 + 0.6011 + 0.601 1.451 + 1.4513 + 1.4513
l = − +
+ 0.6011 + 1.2047 + 1.4513 + 0.7753
1.451 + 0.6011 0.7239 ∗ 1.2047 1.451 + 1.4513
l = − − +
+ 0.6011 + 1.2047 + 0.6011 + 1.2047 + 1.4513 + 0.7753
2.7162 ∗ 0.7753
+
+ 1.4513 + 0.7753
1.45111 −
.V cos1.2047
0.7239
.V sin1.2047
l = − −
1 − 2
.V cos1.2047
+
.
1 − 2
.V cos1.2047
+
.
1.4511 −
.GTH cos0.7753
+
1 − 2
.GTH cos0.7753
+
.JV
2.7162
.GTH sin0.7753
+
1 − 2
.GTH cos0.7753
+
.JV
−1.4511 + 0.2848
−0.3705
1.451 − 0.2428
l = + +
1 − 0.3925
+ 0.3005
1 − 0.3925
+ 0.3005
1 − 0.3346 + 0.0549
0.4454
+
1 − 0.3346 + 0.0549
−1.4511 − 0.0857
1.451 + 0.2026
l = +
1 − 0.3925
+ 0.3005
1 − 0.3346 + 0.0549
Example 2: Design a digital Butterworth filter to satisfy the following constraint using Impulse Invariant
Transformation.
L. ≤ µb® µ ≤ @, L ≤ ® ≤ L. B°
µb® µ ≤ L. B, L. ° ≤ ® ≤ °
Assume = L. B .
s¶ = 0.7
Specification:
s = 0.35
¶ = 0.3²
= 0.5²
Discrete Time Signal Processing 38
) = 0.3 {
Type of transformation: Impulse Invariant Transformation
Type of filter: Butterworth Low Pass filter
¶ 0.3²
Step 1: To find analog edge frequencies
Ω¶ = = = 3.1416 !.⁄ {
) 0.3
0.5²
Ω = = = 5.236 !.⁄ {
) 0.3
1 1
log ½n − 1o¾n − 1o¿
Step 2: To find the order of the filter
1 s s¶
≥
2 logiΩ ⁄Ω¶ j
1 1
1 log Ãp0.35 − 1qÄp0.7 − 1qÅ
≥
2 log5.236⁄3.1416
1 log?7.1633⁄1.0408D
≥
2 log5.236⁄3.1416
1
≥ 3.7762
2
≥ 1.8881
=2
Ω¶
Step 3: To find cut off frequency
Ω³ =
1 ⁄
n − 1o
s¶
3.1416
Ω³ =
1.0408⁄G
Ω³ = 3.1104 !.⁄ {
The transfer function for normalized Butterworth Low Pass Filter with order = 2 is
Step 4: To find the analog transfer function
1
l =
+ 1.414 + 1
The transfer function for Butterworth Low Pass Filter with order = 2 and cut off frequency Ω³ =
3.1104 !.⁄ { is
l = *l +→⁄ΩË
1
l = w x
+ 1.414 + 1 →⁄H.G
1
l =
1.414
p3.1104q + 3.1104 + 1
3.1104
l =
+ 1.414 ∗ 3.1104 + 3.1104
9.6746
l =
+ 4.3988 + 9.6746
9.6746
Step 5: To find the digital transfer function
l =
4.3988 4.3988 4.3988
+ 2 p 2 q + p 2 q + 9.6746 − p 2 q
1
9.6746 ∗ 2.1994 ∗
l = 2.1994
+ 2.1994 + 2.1994
4.3988 ∗ 2.1994
l =
+ 2.1994 + 2.1994
&
sin &)
We know that
→
+ ! + & 1 − 2
cos &)
+
4.3988
.JJG∗.H sin2.1994 ∗ 0.3
Hence
l =
1 − 2
.JJG∗.H cos2.1994 ∗ 0.3
+
∗.JJG∗.H
1.3939
l =
1 − 0.8169
+ 0.2672
Since ) = 0.3 sec < 1 {,
0.3 ∗ 1.3939
l =
1 − 0.8169
+ 0.2672
0.4182
l =
1 − 0.8169
+ 0.2672
Example 3: Design a digital Butterworth Filter to satisfy the following constraint using impulse invariant
log s¶ = −0.125
s¶ = 10
.T = 0.7499
Î = −20 log s = 12 .t
log s = −0.6
s = 10
.V = 0.2512
¶ = 0.4²
= 0.7²
Assume ) = 1 {
Type of transformation: Impulse Invariant Transformation
Type of filter: Butterworth Low Pass Filter
¶ 0.4²
Step 1: To find analog edge frequencies
Ω¶ = = = 1.2566 !.⁄ {
) 1
0.7²
Ω = = = 2.1991 !.⁄ {
) 1
1 1
log ½n − 1o¾n − 1o¿
Step 2: To find the order of the filter
1 s s¶
≥
2 logiΩ ⁄Ω¶ j
Ω¶
Step 3: To find cut off frequency
Ω³ =
1 ⁄
n − 1o
s¶
1.2566
Ω³ =
0.7783⁄V
Ω³ = 1.3102 !.⁄ {
The transfer function for normalized Butterworth Low Pass Filter with order = 3 is
Step 4: To find the analog transfer function
1
l =
+ 1 + + 1
The transfer function for Butterworth Low Pass Filter with order = 3 and cut off frequency Ω³ =
1.3102 !.⁄ { is
l = *l +→⁄ΩË
1
l = w x
+ 1 + + 1 →⁄.H
1
l =
p1.3102 + 1q np1.3102q + 1.3102 + 1o
1.3102H
l =
+ 1.3102 + 1.3102 + 1.3102
2.2491
l =
+ 1.3102 + 1.3102 + 1.7166
2.2491 s t + u
Step 5: To find digital transfer function
= +
+ 1.3102 + 1.3102 + 1.7166 + 1.3102 + 1.3102 + 1.7166
Comparing coefficient,
1.3102 + t = 0
t = −1.3102
Comparing constant coefficient,
Discrete Time Signal Processing 41
2.2491 + 1.3102u = 2.2491
1.3102u = 0
u=0
1.3102 −1.3102
Substitute the value of A, B and C in the analog transfer function,
l = +
+ 1.3102 + 1.3102 + 1.7166
1.3102 1.3102
l = −
+ 1.3102 1.3102 1.3102 1.3102
+ 2 p q + p q + 1.7166 − p q
2 2 2
1.3102 1.3102
l = −
+ 1.3102 + 0.6551 + 1.2875
1.3102 1.3102
l = −
+ 1.3102 + 0.6551 + i√1.2875j
1.3102 1.3102
l = −
+ 1.3102 + 0.6551 + 1.1347
1.3102 1.3102 + 0.6551 − 0.6551
l = −
+ 1.3102 + 0.6551 + 1.1347
1.3102 1.3102 + 0.6551 1.31020.6551
l = − +
+ 1.3102 + 0.6551 + 1.1347 + 0.6551 + 1.1347
1
1.3102 1.3102 + 0.6551 0.8583 ∗ 1.1347 ∗ 1.1347
l = − +
+ 1.3102 + 0.6551 + 1.1347 + 0.6551 + 1.1347
1.3102 1.3102 + 0.6551 0.7564 ∗ 1.1347
l = − +
+ 1.3102 + 0.6551 + 1.1347 + 0.6551 + 1.1347
1 1
We know that
→
− ! 1 −
+! 1 −
cos &)
→
+ ! + & 1 − 2
cos &)
+
&
sin &)
→
+ ! + & 1 − 2
cos &)
+
1.3102 1.31021 −
.VTT cos1.1347
Hence
l = −
1 −
.H
1 − 2
.VTT cos1.1347
+
∗.VTT
0.7564
.VTT sin1.1347
+
1 − 2
.VTT cos1.1347
+
∗.VTT
1.3102 1.31021 − 0.2194
0.3561
l = − +
1 − 0.2698
1 − 0.4388
+ 0.2698
1 − 0.4388
+ 0.2698
1.3102 1.31021 − 0.2194
− 0.3561
l = −
1 − 0.2698
1 − 0.4388
+ 0.2698
1.3102 1.3102 − 0.6436
l = −
1 − 0.2698
1 − 0.4388
+ 0.2698
0.4221
+ 0.1798
l =
1 − 0.7086
+ 0.3882
− 0.0728
H
´ ≤ µli jµ ≤ 1, 0 ≤ ≤ ¶
Chebyshev Low Pass Filter
µli jµ ≤ ´ , ≤ ≤ ²
Discrete Time Signal Processing 42
¶
, 4-·" 4¸! ¹! ) ! -!¹
Step 1: Determination of Analog Edge Frequencies:
)
Ω¶ = r 2 ¶
tan , t¹"¹ ! ) ! -!¹
) 2
, 4-·" 4¸! ¹! ) ! -!¹
)
Ω = r 2
tan , t¹"¹ ! ) ! -!¹
) 2
1 1 ⁄
Step 2: Determination of Order of the Filter:
cosh
Ð Ñ n − 1o Ò
´
≥
cosh
iΩ ⁄Ω¶ j
1
⁄
where
Ñ = £ − 1¤
´
Ω³ = Ω¶
Step 3: Determination of Cut off Frequency:
2 − 1²
where,
& = 2% sin £ ¤
2
2 − 1²
{ = % + { £ ¤
2
{ = %
⁄
⁄
1 1 ⁄
1 1 ⁄
1
% = Ó:n + 1o + ; − :n + 1o + ; Ô
2 Ñ Ñ Ñ Ñ
t can obtained from
For even,
⁄
s 1 t
= =Á
1 + Ñ
⁄ 1 + Ñ
⁄ {
For odd,
⁄
t
s=1= Á
{
Alternate Way to find out À :
The poles of the Chebyshev LPF is found by
Discrete Time Signal Processing 43
= − sin sinh % + I cos cosh % , = 1, 2, 3, … … … ,
2 − 1²
where
= , = 1, 2, 3, … … … ,
2
1 1
% = sinh
n o
Ñ
1
where
Ñ =Õ −1
s¶
The denominator polynomial of l is given by
' = − − … … … −
The numerator polynomial of l is given by
' 0
, vℎ ¸
= Ó √1 + Ñ
' 0, vℎ ..
The normalized transfer function of the Butterworth LPF is given by
l =
'
Step 5: Determination of Digital Transfer Function :
lcan be obtained from l using either impulse invariant transformation or bilinear transformation.
1 1
Impulse Invariant Transformation:
→
− ! 1 −
1 −1/
. /
1
→ w x
+ !/ - − 1! . /
1 −
→
+! 1 −
cos &)
→
+ ! + & 1 − 2
cos &)
+
&
sin &)
→
+ ! + & 1 − 2
cos &)
+
2 1 −
Bilinear Transformation:
→
) 1 +
Example 1 Design a digital Chebyshev low pass filter to satisfy the following constraint using impulse
invariant transformation
L. ≤ µb® µ ≤ @, L ≤ ® ≤ L. B°
Assume = L. B Ö>×.
s¶ = 0.65
Specification
s = 0.35
¶ = 0.3²
= 0.55²
) = 0.3 {
Type of transformation: Impulse Invariant Transformation
Discrete Time Signal Processing 44
Type of filter: Chebyshev Low Pass filter
¶ 0.3²
Step 1: To find analog edge frequencies
Ω¶ = = = 3.1416 !.⁄ {
) 0.3
0.55²
Ω = = = 5.7596 !.⁄ {
) 0.3
Step 2: To find the order of the filter
1 1
cosh
ÓØ − 1ÙÕ − 1Ô
s
s¶
≥
cosh
iΩ ⁄Ω¶ j
1 1
cosh
ÐØ − 1¾Ø − 1Ò
0.35 0.65
≥
cosh
5.7596⁄3.1416
cosh
?2.6764⁄1.1691D
≥
cosh
5.7596⁄3.1416
1.4699
≥
1.2149
≥ 1.2041
=2
Ω³ = Ω¶
Step 3: To find cut off frequency
Ω³ = 3.1416 !.⁄ {
Step 4: To find the analog transfer function
2 − 1²
where
= , = 1, 2, 3, … … … ,
2
2 − 1²
= , = 1, 2
4
²
=
4
3²
=
4
1 1
% = sinh
n o
Ñ
1
where
Ñ = Õ − 1 = 1.1691
s¶
1 1
Hence
% = sinh
n o
2 1.1691
% = 0.3877
The transfer function of the Butterworth LPF is given by
l =
'
4.2213
l =
+ 0.883 + 2.3905
4.2213
l =
+ 1.766 + 6.4942
1
4.2213 ∗ 2.3905 ∗
Step 5: To find the digital transfer function
l = 2.3905
+ 0.883 + 2.3905
1.7659 ∗ 2.3905
l =
+ 0.883 + 2.3905
&
sin &)
We know that
→
+ ! + & 1 − 2
cos &)
+
1.7659
.OOH∗.H sin2.8905 ∗ 0.3
Hence
l =
1 − 2
.OOH∗.H cos2.8905 ∗ 0.3
+
∗.OOH∗.H
1.0331
l =
1 − 0.9929
+ 0.5887
Since ) = 0.3 sec < 1 {,
0.3 ∗ 1.0331
l =
1 − 0.9929
+ 0.5887
0.3099
l =
1 − 0.9929
+ 0.5887
Example 2: Design a digital Chebyshev filter using Bilinear transformation to satisfy the following
−20 log s¶ = 2 .t
Type of Filter: Chebyshev LPF
log s¶ = −0.1
s¶ = 10
. = 0.7943
−20 log s = 15 .t
log s = −0.75
s = 10
.PT = 0.1778
2 ¶ 0.42²
o = 1.5514 !.⁄ {
Step 1: To find the analog edge frequencies
Ω¶ = tan p q = 2 tan n
) 2 2
2 0.55²
Ω = tan p q = 2 tan n o = 3.3417 !.⁄ {
) 2 2
Step 2: To find the order of the filter
1 1
cosh
ÚØ − 1ÙÕ − 1Û
s s¶
≥
cosh
iΩ ⁄Ω¶ j
1 1
cosh
£Ø − 1¾Ø − 1¤
0.1778 0.7943
≥
cosh
3.3417⁄1.5514
cosh
5.5347⁄0.7649
≥
cosh
3.3417⁄1.5514
≥ 2.7476
=3
Ω³ = Ω¶ = 1.5514 !.⁄ {
Step 3: To find the cut off frequency
2 − 1²
where
= , = 1, 2, 3, … … … ,
2
2 − 1²
= , = 1, 2, 3
6
²
=
6
3² ²
= =
6 2
5²
H =
6
Hence,
l =
'
1.2206
l = H
+ 1.447 + 2.4604 + 1.2206
Low pass filter with cut off frequency Ω to Low pass filter with cut off frequency Ω∗ :
Analog Frequency Transformation:
Ω³
→ ∗
Ω³
Low pass filter with cut off frequency Ω to High pass filter with cut off frequency Ω∗ :
Ω³ Ω∗³
→
Low pass filter with cut off frequency Ω to Band pass filter with cut off frequencyΩ@ and ΩA :
+ Ω Ω
→ Ω³
Ω − Ω
Low pass filter with cut off frequency Ω to Bandstop filter with cut off frequencyΩ@ and ΩA :
Ω − Ω
→ Ω³
+ Ω Ω
Low pass filter with cut off frequency ® to Low pass filter with cut off frequency ®∗ :
Digital Frequency Transformation:
− !
→
1 − !
2Î
where
! = −
+1
−1
! =
+1
cos* + ⁄2+
Î=
cos* − ⁄2+
− ³
= cot p q tan p q
2 2
Low pass filter with cut off frequency ® to Band stop filter with cut off frequency®@ and ®A :
− !
+ !
→ −:
;
!
− !
+ 1
2Î
where
! = −
+1
1−
! =
1+
Discrete Time Signal Processing 49
cos* + ⁄2+
Î=
cos* − ⁄2+
− ³
= tan p q tan p q
2 2
Structure of IIR Filter
• Direct form I realization
• Direct form II realization
• Cascade realization
• Parallel realization
Direct Form – I
! + !
+ !
+ … … … + !
The general form of the IIR filter is given by
l =
1 + &
+ &
+ … … … + &
$ ! + !
+ !
+ … … … + !
=
1 + &
+ &
+ … … … + &
$*1 + &
+ &
+ … … … + &
+ = *! + !
+ !
+ … … … + !
+
$ = *! + !
+ !
+ … … … + !
+ − $*&
+ &
+ … … … + &
+
Direct Form – II
! + !
+ !
+ … … … + !
The general form of the IIR filter is given by
l =
1 + &
+ &
+ … … … + &
The system l can be divided into two system connected in cascade where one system having input of
which produces a temporary output and the other system accept the intermediate input and produces
an output %.
l.
Consider the transfer function of these two systems as follow such that the product of two transfer function is
$
= ! + !
+ !
+ … … + !
)
) 1
and
=
1 + & + & + … … … + &
Cascade realization
! + !
+ !
+ … … … + !
The general form of the IIR filter is given by
l =
1 + &
+ &
+ … … … + &
! + !
+ !
+ … … … + !
Now factorize the numerator and denominator polynomial as follow
l =
1 + &
+ &
+ … … … + &
iv + v + … … … + v⁄
⁄ ji% + %
+ … … … + %⁄
⁄ j
l =
1 +
+ … … … +
⁄ 1 +
+ … … … +
⁄
v + v
+ … … … + v⁄
⁄
where
l =
1 +
+ … … … + ⁄
⁄
% + %
+ … … … + %⁄
⁄
l =
1 +
+ … … … + ⁄
⁄
Parallel Realization
Parallel realization of the IIR filter is realized due to the fast computation by giving the input to the various part
! + !
+ !
+ … … … + !
of the system. The general form of the IIR filter is given by
l =
1 + &
+ &
+ … … … + &
Here the denominator polynomial of the system transfer function can be factorized into two polynomials
! + !
+ !
+ … … … + !
as follow:
l =
1 +
+ … … … +
⁄ 1 +
+ … … … +
⁄
v + v
+ … … … + v
⁄
⁄ % + %
+ … … … + %
⁄
⁄
Now taking partial fraction for the above expression,
l = +
1 +
+ … … … + ⁄
⁄ 1 +
+ … … … + ⁄
⁄
l = l + l
v + v
+ … … … + v
⁄
⁄
where
l =
1 +
+ … … … + ⁄
⁄
% + %
+ … … … + %
⁄
⁄
l =
1 +
+ … … … + ⁄
⁄
Here the inputs are given to the two systems having transfer function l and l respectively.
Discrete Time Signal Processing 52
The output of the two systems are added to get the output of the overall system with transfer function l.
Each system in the above transfer function l can be realized in the direct form II because the delay element
needed is very less compared to direct form I realization.
@ + L. C
@ + L. LC
A
Example 1: Realize the following IIR filter with transfer function
=
@ − L.
@ + L. LB
A
using direct form I, direct form II, and cascade realization.
Solution:
Direct Form – I
1 + 0.15
1 + 0.3
1 + 0.15
1 + 0.3
Cascade Realization
l = = £ ¤£ ¤
1 − 0.2
1 − 0.3
1 − 0.2
1 − 0.3
@ + L.
@
Example 2: Realize the following IIR system with transfer function
=
@ + L. B
@ + L. LA
A
using parallel realization.
Solution:
The Discrete Time Fourier Transform of a finite sequence impulse response ℎ is given by
stable compared to IIR filter.
li j = ℎ
= µl µ ∅
Any frequency response contains two components namely magnitude and phase responses which are
4- pli jq
∅ = tan
Ú Û
8 il j
Filters are classified into linear and non – linear phase filter based on the delay function namely the
phase delay and group delay.
∅
The phase and group delays of the filter are given by
Þ¶ = −
.∅
and
Þß = −
.
The group delay is defined as the delayed response of the filter as a function of to a signal.
Linear phase FIR filters is defined as the filter in which both the phase delay and group delay are
independent of frequency. Hence Linear phase filters are also called constant time delay filters.
∅
− = Þ, − ² ≤ ≤ ²
∅ = −Þ
Therefore,
4- pli jq
We know that
∅ = − tan
Ú Û
8 il j
4- pli jq
−Þ = − tan
Ú Û
8 il j
∑
ℎ sin
Þ = tan
£
¤
∑ ℎ cos
∑
ℎ sin
tan Þ =
∑ ℎ cos
Discrete Time Signal Processing 56
sin Þ ∑
ℎ sin
=
cos Þ ∑ ℎ cos
}−1
equation are
Þ=
2
If the above two solutions are satisfied, then the FIR filter will have constant phase and group delays and
thus the phase of the filter will be linear. The phase and group delay of the linear phase FIR filter are equal and
constant over the frequency band. Whenever a constant group delay alone is preferred, the impulse response
ℎ = −ℎ} − 1 −
will be of the form
The Discrete Time Fourier Transform of a finite sequence impulse response ℎ is given by
Case 1: Symmetric, M odd
li
j = ℎ
= µl µ ∅
H
If the filter length M is odd, then the above equation becomes
} − 1
p
q
li
j = ℎ
+ℎn o + ℎ
2
#
ℎ = ℎ} − 1 −
If the frequency response is symmetric,
H
Hence the frequency response can be written as
} − 1
p
q
li j = ℎ1
+
2 + ℎ n o
2
Factorizing
á¬
p q
â in the above equation,
}−1 }−1
where,
! = 2ℎ n − o , !0 = ℎ n o
2 2
The above equation defines the frequency response of symmetric linear phase FIR filter with order of
the filter be odd.
The Discrete Time Fourier Transform of a finite sequence impulse response ℎ is given by
Case 2: Symmetric, M even
li
j = ℎ
= µl µ ∅
H
If the filter length M is even, then the above equation becomes
li
j = ℎ
+ ℎ
H
H
li j = ℎ
+ ℎ} − 1 −
ℎ = ℎ} − 1 −
If the frequency response is symmetric,
H
H
Hence the frequency response can be written as
li j = ℎ
+ ℎ
where & = 2ℎ p − q
li j =
⁄ l å i j
li j = l å i j æ
å i j
ç
li j = l
where
1
å i j = & cos ½ w − x )¿
l
2
è = −Î
}−1
and
Î=
2
The above equation defines the frequency response of symmetric linear phase FIR filter with order of
the filter be even.
Case 3: Antisymmetric, M odd
}−1
For this type of sequence,
ℎn o=0
2
The Discrete Time Fourier Transform of a finite sequence impulse response ℎ is given by
li
j = ℎ
= µl µ ∅
H
If the filter length M is odd, then the above equation becomes
} − 1
p
q
li
j = ℎ
+ℎn o + ℎ
2 #
li
j = ℎ
+ ℎ
#
ℎ = −ℎ} − 1 −
If the frequency response is antisymmetric,
H
Hence the frequency response can be written as
li j = ℎ1
−
2
Factorizing
á¬
p q
â
H
in the above equation,
li j = ℎ w − x
p q p
q
p
q
Put = − ,
\ _
}−1
li j =
p
q [ ℎn − o 1
+
2^
[ 2 ^
Z ]
\ _
⁄ [
li j =
p
q
{ sin )^
[ ^
Z ]
li j = ∅ l å
}−1
where,
{ = 2ℎ n − o
2
² ² }−1
and
∅ =
− Î = − n o
2 2 2
The above equation defines the frequency response of antisymmetric linear phase FIR filter with order
of the filter be odd.
The Discrete Time Fourier Transform of a finite sequence impulse response ℎ is given by
Case 4: Antisymmetric, M even
li
j = ℎ
= µl µ ∅
H
If the filter length M is even, then the above equation becomes
li
j = ℎ
+ ℎ
li j = ℎ
+ ℎ} − 1 −
ℎ = −ℎ} − 1 −
If the frequency response is antisymmetric,
H
H
Hence the frequency response can be written as
li j = ℎ
− ℎ
H
H
\
_
li
j=
⁄ [ ℎ ã
ä
− ℎ
ã
ä ^
[ ^
Z ]
\ _
⁄
⁄ [
} }
ã
ä ^
li j =
ℎ n − o
ã
ä
− ℎ n − o
[ 2 2 ^
Z ]
} 1
li j =
⁄
⁄ 2ℎ n − o sin ½ w − x )¿
2 2
1
li j =
⁄
⁄ . sin ½ w − x )¿
2
where . = 2ℎ p − q
å i j
li j =
⁄
⁄ l
li j = lå i j æ
å i j
li j = l
p
çq
where
1
å i j = . sin ½ w − x )¿
l
2
²
è = − Î
2
}−1
and
Î=
2
The above equation defines the frequency response of antisymmetric linear phase FIR filter with order of the
filter be even.
Design of FIR filter by Fourier Series Method
Cut off frequency ³ for Low pass and High pass, and ³ and ³ for Band pass and Band stop filter
Discrete Time Signal Processing 61
The number of samples, }
Note: If the frequency is given in Hz, then ³ (rad/sec) can be obtained by
2²³
³ =
³ is the cut off frequency in Hz and is the sampling frequency in Hz.
Filter Desired frequency response:
1, − ³ ≤ ≤ ³
lh i j = ½
Low Pass Filter:
0, ³ < || ≤ ²
0, − ³ ≤ ≤ ³
lh i j = ½
High Pass Filter:
1, ³ < || ≤ ²
1, ³ ≤ || ≤ ³
Band Pass Filter:
lh i j = Ó 0, − ³ ≤ ≤ ³
0, ³ ≤ || ≤ ²
0, ³ ≤ || ≤ ³
Band Reject Filter:
lh i j = Ó 1, − ³ ≤ ≤ ³
1, ³ ≤ || ≤ ²
For non ideal (practical) filter, replace 1 by .
ç
l = ℎ
For non causal (ideal) filter,
l = ℎ
li j = l/«→e êë
Step 5: Determination of Frequency Response
Example 1: Design a FIR HPF with cut off frequency of 0.45π radian/samples using Fourier Series.
Assume M=7.
}=7
Specification:
³ = 0.45² !.⁄!-·"
Type of filter: FIR HPF
Type of design method: Hanning Window
Step 1: Choose the desired frequency response
1
H
H
.GT
ℎh = 5: ; +: ; 6
2² −I3 − .GT
−I3 −
−1
ℎh = 1
H
−
H
.GT
+ H
.GT
− H
2
2I3 − ²
1
ℎh = 1sini3 − ²j − sini3 − 0.45²j2, ≠ 3
3 − ²
For = 3, apply L’ hospitals rule,
−² cosi3 − ²j + 0.45² cosi3 − 0.45²j
ℎh 3 = : ;
−² →H
−² + 0.45²
ℎh 3 = = 0.55
−²
For remaining values in the limit 0 ≤ ≤ } − 1, i.e., 0 ≤ ≤ 6
sin3² − sin3 ∗ 0.45²
ℎh 0 = ℎh 6 = = 0.0945
3²
sin2² − sin2 ∗ 0.45²
ℎh 1 = ℎh 5 = = −0.0492
2²
sin1² − sin1 ∗ 0.45²
ℎh 2 = ℎh 4 = = −0.3144
1²
Step 5: To find the transfer function
l = ℎ
V
l = ℎ
l =
H *0.55 − 0.3144 +
− 0.0492 +
+ 0.0945 H +
H +
li j = l/«→e êë
Step 6: To find the frequency response
li j =
H *0.55 − 0.6288 cos − 0.0984 cos 2 + 0.189 cos 3+
Discrete Time Signal Processing 63
}i j = 0.55 − 0.6288 cos − 0.0984 cos 2 + 0.189 cos 3
Magnitude Response
∅i j = −3
Phase Response
}=7
Specification:
³ = 7 l
= 18 l
Type of filter: Ideal FIR LPF
2²³ 2² ∗ 7 ∗ 10H
Type of design method: Fourier Series
³ = = = 0.7778² !.⁄ {
18 ∗ 10H
1, || ≤ ³
Step 1: Choose the desired frequency response
lh i j = ½
0, ³ ≤ || ≤ ²
1, || ≤ 0.7778²
lh i j = ½
0, 0.7778² ≤ || ≤ ²
Step 2: To find |× >
1
ℎh = ¢ lh i j .
2²
.PPPO
1
ℎh = ¢ .
2²
.PPPO
1 .PPPO
ℎh = : ;
2² I
.PPPO
1
ℎh = 1
.PPPO
− .PPPO
2
2I²
1
ℎh = sin0.7778² , ≠ 0
²
For = 0, apply L’ hospitals rule,
0.7778² cos0.7778²
ℎh 0 = : ;
² →
ℎh 0 = 0.7778
sin0.7778 ∗ 1²
ℎh 1 = ℎh −1 = = 0.2046
1²
sin0.7778 ∗ 2²
ℎh 2 = ℎh −2 = = −0.1567
2²
sin0.7778 ∗ 3²
ℎh 3 = ℎh −3 = = 0.0919
3²
> −B −A −@ L @ A B
î× > 0.0919 −0.1567 0.2046 0.7778 0.2046 −0.1567 0.0919
Step 3: To find the transfer function
l = ℎ
l = ℎ
H
l = 0.7778 + 0.2046 +
− 0.1567 +
+ 0.0919 H +
H
li j = l/«→e êë
Step 4: To find the frequency response
Cut off frequency ³ (rad/sec) for Low pass and High pass, and ³ (rad/sec) and ³ (rad/sec) for Band pass
l = ℎ
For non causal (ideal) filter,
l = ℎ
li j = l/«→e êë
Step 5: Determination of Frequency Response
Window Function
Rectangular Window Function:
1 , 0 ≤ < } − 1
vï = Ã
Causal Rectangular Window Function:
0 , ℎ v¹
Non Causal Rectangular Window Function:
2²
Causal Hamming Window Function:
2² }−1
Non Causal Hamming Window Function:
2²
Causal Hanning Window Function:
2² }−1
Non Causal Hanning Window Function:
2² 4²
Causal Blackmann Window Function:
}=9
Specification:
³ = 990 l
= 2 }l
Type of filter: Ideal FIR LPF
1, || ≤ ³
Step 1: Choose the desired frequency response
lh i j = ½
0, ³ ≤ || ≤ ²
1, || ≤ 0.99²
lh i j = ½
0, 0.99² ≤ || ≤ ²
Step 2: To find |× >
1
ℎh = ¢ lh i j .
2²
l = ℎ
l = ℎ
G
l = 0.99 + 0.0087 +
− 0.0054 +
+ 0.0022 H +
H − 0.0008 G +
G
li j = l/«→e êë
Step 6: To find the frequency response
}=7
Specification:
³ = 0.45² !.⁄!-·"
Type of filter: FIR HPF
Type of design method: Hanning Window
0, || ≤ ³
Step 1: Choose the desired frequency response
lh i j = ½
ç
, ³ ≤ || ≤ ²
}−1 7−1
Î= = =3
2 2
0, || ≤ 0.45²
lh i j = ½
H
, 0.45² ≤ || ≤ ²
Step 2: To find |× >
1
ℎh = ¢ lh i j .
2²
.GT
1
ℎh = § ¢
H . + ¢
H .¨
2²
.GT
.GT
1
ℎh = § ¢
H
. + ¢
H
.¨
2²
.GT
1
H
H
.GT
ℎh = 5: ; +: ; 6
2² −I3 − .GT
−I3 −
−1
ℎh = 1
H
−
H
.GT
+ H
.GT
− H
2
2I3 − ²
1
ℎh = 1sini3 − ²j − sini3 − 0.45²j2, ≠ 3
3 − ²
For = 3, apply L’ hospitals rule,
Step 5: To find the transfer function
l = ℎ
V
l = ℎ
l =
H *0.55 − 0.2358 +
− 0.0123 +
+
li j = l/«→e êë
Step 6: To find the frequency response
li j =
H *0.55 − 0.4716 cos − 0.0246 cos 2+
Phase Response
Discrete Time Signal Processing 69
∅i j = −3
Example 3: Design a Band Pass filter with a cut off frequencies of 0.2π and 0.5π radian/ samples using
Hamming window. Assume M=9.
}=9
Specification:
0, || ≤ ³
Step 1: Choose the desired frequency response
lh i j = Ó 0. ³ ≤ || ≤ ²
ç , ³ ≤ || ≤ ³
}−1 9−1
Î= = =4
2 2
0, || ≤ 0.2²
lh i j = Ó 0. 0.5² ≤ || ≤ ²
ç , 0.2² ≤ || ≤ 0.5²
Step 2: To find |× >
1
ℎh = ¢ lh i j .
2²
.T
.
1
ℎh = § ¢
G . + ¢
G .¨
2²
.
.T
.T
.
1
ℎh = § ¢
G
. + ¢
G
.¨
2²
.
.T
1
G
.T
G
.
ℎh = 5: ; +: ; 6
2² I4 − .
I4 −
.T
1
ℎh = 1
G
.T
−
G
.
+ G
.
− G
.T
2
2I4 − ²
1
ℎh = 1sini4 − 0.5²j − sini4 − 0.2²j2, ≠ 4
4 − ²
For = 4, apply L’ hospitals rule,
−0.5² cosi4 − 0.5²j + 0.2² cosi4 − 0.2²j
ℎh 4 = : ;
−² →G
−0.5² + 0.2²
ℎh 4 = = 0.3
−²
sin4 ∗ 0.5² − sin4 ∗ 0.2²
ℎh 0 = ℎh 8 = = −0.0468
4²
sin3 ∗ 0.5² − sin3 ∗ 0.2²
ℎh 1 = ℎh 7 = = −0.2070
3²
sin2 ∗ 0.5² − sin2 ∗ 0.2²
ℎh 2 = ℎh 6 = = −0.1514
2²
Step 5: To find the transfer function
l = ℎ
V
l = ℎ
l =
G *0.3 + 0.1135 +
− 0.0818 +
− 0.0445 H +
H − 0.0038 G +
G +
li j = l/«→e êë
Step 6: To find the frequency response
li j =
G *0.3 + 0.227 cos − 0.1636 cos 2 − 0.089 cos 3 − 0.0076 cos 4+
∅i j = −4
Phase Response
Example 4: Design an ideal FIR BRF with cut off frequencies of 12 kHz and 20 kHz and sampling
frequency of 60 kHz using Hanning window. Assume M=5.
Specification:
Discrete Time Signal Processing 71
}=5
³ = 12 l
³ = 20 l
= 60 l
Type of Filter: FIR BRF
2²³ 2² ∗ 12 ∗ 10H
Type of Design Method: Hanning Window
³ = = = 0.4²
60 ∗ 10H
2²³ 2² ∗ 20 ∗ 10H
³ = = = 0.6667²
60 ∗ 10H
1, || ≤ ³
Step 1: Choose the desired frequency response
lh i j = Ó 1. ³ ≤ || ≤ ²
0, ³ ≤ || ≤ ³
1, || ≤ 0.4²
lh i j = ð1. 0.6667² ≤ || ≤ ²
0, 0.4² ≤ || ≤ 0.6667²
Step 2: To find |× >
1
ℎh = ¢ lh i j .
2²
.G
.VVVP
1
ℎh = § ¢ . + ¢
. + ¢ .¨
2²
.G
.VVVP
1
.G
.VVVP
ℎh = 5: ; +: ; +: ; 6
2² I
.G
I .VVVP
I
1
ℎh = 1 .G
−
.G
+
− .VVVP
+
.VVVP
−
2
2I²
1
ℎh = *sin0.4² + sin² − sin0.6667²+, ≠ 0
²
For = 0, apply L’ hospitals rule,
0.4² cos0.4² + ² cos² − 0.6667² cos0.6667²
ℎh 0 = : ;
² →
0.4² + ² − 0.6667²
ℎh 0 = = 0.7333
²
sin0.4 ∗ 1² + sin1² − sin0.6667 ∗ 1²
ℎh 1 = ℎh −1 = = 0.0271
1²
sin0.4 ∗ 2² + sin2² − sin0.6667 ∗ 2²
ℎh 2 = ℎh −2 = = 0.2314
2²
2² }−1 }−1
dñ = 0.5 + 0.5 cos n
Step 3: To find the window sequence
o , − ≤≤
}−1 2 2
2²
dñ = 0.5 + 0.5 cos n o , − 2 ≤ ≤ 2
4
²
dñ = 0.5 + 0.5 cos p q , − 2 ≤ ≤ 2
2
l = ℎ
l = ℎ
l = 0.7333 + 0.0136 +
li j = l/«→e êë
Step 6: To find the frequency response
l = lh i j/
= 0, 1, 2, … … … , } − 1
sequence
Compute the M samples of impulse response ℎ using following equation
\ _
•
1
ℎ = [ l0 + 2 8 1l
⁄ ^
2 , } ..
}[ ^
Z ]
\ _
1
ℎ = [l0 + 2 8 1l
⁄
2^ , } ¸
}[ ^
Z ]
Take Z transform of the impulse response ℎ to get the filter transfer function l
•
l = ℎ
Example 1: Design a Low pass filter with cut off frequency of 3 kHz and sampling frequency of 9 kHz
using Type 1 frequency sampling method. Assume M=11.
Specification:
Discrete Time Signal Processing 73
³ = 3 l
= 9 l
} = 11
Type of filter: Low Pass Filter
2²³ 2² ∗ 3 ∗ 10H
Type of Design Method: Frequency Sampling Method
³ = = = 0.6667²
9 ∗ 10H
ç , 0 ≤ ≤ ³
Step 1: Choose the desired frequency response
lh i j = Ó
ç , 2² − ³ ≤ ≤ 2²
0, ³ ≤ ≤ 2² − ³
}−1
Î= =5
2
T , 0 ≤ ≤ 0.6667²
lh i j = Ó
T , 2² − 0.6667² ≤ ≤ 2²
0, 0.6667² ≤ ≤ 2² − 0.6667²
T , 0 ≤ ≤ 0.6667²
lh i j = Ó
T , 1.3333² ≤ ≤ 2²
0, 0.6667² ≤ ≤ 1.3333²
2²
Step 2: Sampling the Frequency Response
= , = 0, 1, 2, … … … , } − 1
}
2²
= , = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
11
= 0
2²
= = 0.1818²
11
4²
= = 0.3636²
11
6²
H = = 0.5454²
11
8²
G = = 0.7272²
11
10²
T = = 0.9090²
11
10²
T = = 0.9090²
11
12²
V = = 1.0909²
11
14²
P = = 1.2727²
11
16²
O = = 1.4545²
11
18²
J = = 1.6363²
11
20²
= = 1.8181²
11
l = 1lh i j2
→ó
l = ½ , = 0, 1, 2, 3, 8, 9, 10
⁄
0, = 4, 5, 6, 7
Step 3: To find |>
\ _
1
ℎ = [l0 + 2 8 1l
⁄
2^ , = 0, 1, 2, … … … , } − 1
}[ ^
Z ]
H
1
ℎ = 51 + 2 8 1
⁄
⁄ 26 , = 0, 1, 2, … … … , 10
11
H
1
ℎ = 51 + 2 8 1
T
⁄ 26 , = 0, 1, 2, … … … , 10
11
H
1 2²5 −
ℎ = 51 + 2 cos £ ¤6 , = 0, 1, 2, … … … , 10
11 11
1 2²5 − 4²5 − 6²5 −
ℎ = :1 + 2 cos £ ¤ + 2 cos £ ¤ + 2 cos £ ¤; ,
11 11 11 11
= 0, 1, 2, … … … , 10
1 10² 20² 30²
ℎ0 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = −0.0497
11 11 11 11
1 8² 16² 24²
ℎ1 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = 0.0989
11 11 11 11
1 6² 12² 18²
ℎ2 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = −0.0339
11 11 11 11
1 4² 8² 12²
ℎ3 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = −0.1271
11 11 11 11
1 2² 4² 6²
ℎ4 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = 0.2935
11 11 11 11
1 0² 0² 0²
ℎ5 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = 0.6364
11 11 11 11
1 −2² −4² −6²
ℎ6 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = 0.2935
11 11 11 11
1 −4² −8² −12²
ℎ7 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = −0.1271
11 11 11 11
1 −6² −12² −18²
ℎ8 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = −0.0339
11 11 11 11
1 −8² −16² −24²
ℎ9 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = 0.0989
11 11 11 11
1 −10² −20² −30²
ℎ10 = w1 + 2 cos n o + 2 cos n o + 2 cos n ox = −0.0497
11 11 11 11
Step 4: To find Transfer Function
l = ℎ
l = ℎ
li j = *l+«→e êë
Step 5: To find Frequency Response
li j =
T *0.6364 + 0.587 cos − 0.2542 cos 2 − 0.0678 cos 3 + 0.1978 cos 4
− 0.0994 cos 5+
Example 2: Determine the coefficient |> of a linear phase FIR filter of length í = @ which has
@, a = L, @, A, B
symmetric unit sample response and frequency response
a = ð L. C, a = C
L, a = , ,
Solution:
1
óç , = 0,1, 2, 3
Write this same equation for non ideal filter
l = Ó 0.4
óç , = 4
0, = 5, 6,7
}−1
Î= =7
2
Pó , = 0,1, 2, 3
l = Ó 0.4
Pó , = 4
0, = 5, 6,7
2² 2²
For type 1 frequency sampling technique,
= =
} 15
G
⁄T
, = 0,1, 2, 3
l = Ó 0.4
G
⁄T , = 4
0, = 5, 6,7
\ _
1
ℎ = [l0 + 2 8 1l
⁄ 2^
[ ^
Z ]
P
1
ℎ = 5l0 + 2 8 1l
⁄T 26
15
H
1
ℎ = §1 + 2 8 1
G
⁄T
⁄T 2 + 28 10.4
TV
⁄T O
⁄T 2¨
15
H
1
ℎ = §1 + 2 8 1
P
⁄T 2 + 28 10.4
O
P
⁄T 2¨
15
H
1 2²7 − 8²7 −
ℎ = 51 + 2 cos + 0.8 cos 6
15 15 15
1 2²7 − 4²7 − 6²7 − 8²7 −
ℎ = :1 + 2 cos + 2 cos + 2 cos + 0.8 cos ;
15 15 15 15 15
ℎ0 = ℎ14 = −0.0141
ℎ1 = ℎ13 = −0.0018
Discrete Time Signal Processing 76
ℎ2 = ℎ12 = 0.0401
ℎ3 = ℎ11 = 0.0121
ℎ4 = ℎ10 = −0.0915
ℎ5 = ℎ9 = −0.0179
ℎ6 = ℎ8 = 0.3135
ℎ7 = 0.52
ℎ
= ?−0.0141, − 0.0018, 0.0401, 0.0121, − 0.0915, − 0.0179, 0.3135, 0.52, 0.3135, − 0.0179, − 0.0915,
l = lh i j/
# = 0, 1, 2, … … … , } − 1
the sequence
Compute the M samples of impulse response ℎ using following equation
H
\ _
•
2
ℎ = [ 8 1l
#⁄ ^
2 , } ..
[ ^
Z ]
\ _
2
ℎ = [2 8 1l
# ⁄
2^ , } ¸
[ ^
Z ]
Take Z transform of the impulse response ℎ to get the filter transfer function l
•
l = ℎ
Realization of FIR Filter
The FIR filter can be realized using various structures namely
• Direct form realization
• Cascade realization
• Linear phase realization
% = ! −
% = ! + ! − 1 + ! − 2 + … … … + !
− + 1
$ = ! + !
+ !
+ … … … + !
$
= ! + !
+ !
+ … … … + !
l = ! + !
+ !
+ … … … + !
To realize the FIR filter in cascade realization, the transfer function l is factorized into two or more
The cascade realization of the FIR filter is formed by the series connection of two or more FIR filter section.
polynomial.
l = ! + !
+ !
+ … … … + !
Given the transfer function of the FIR filter be
Here we clear that the transfer function is looks like an Nth order polynomial. Therefore the above function can
be factorized as two systems (polynomial) with (N–1)th order as
l = n& + &
+ … … … + &
o n{ + {
+ … … … + {
o
l = ! + !
+ !
+ … … … + !
H + !
+ !
The impulse response of the linear phase FIR filter with the even number of sequence is given by
l = ! i1 +
j + ! i
+
j + ! i
+
H j + … … …
This type of filter can be rewritten as follow
l = ! i1 +
j + ! i
+
j + ! i
+
H j + … … … + !
Example 1: Obtain the direct form and cascade form realization of the transfer function of the FIR filter
@ B @ @
given by
= n@ −
@ +
A o n@ −
@ −
A o
C A
Direct Form:
Cascade Realization:
@ @ @ A A
Example 2: Realize the system with transfer function
= n@ +
@ +
A +
B +
C o n@ +
@ +
A +
B o
A B A B B
in direct form, cascade and linear phase realization.
Solution:
1 1 1 2 2
Direct Form
l = n1 +
+
+
H +
G o n1 +
+
+
H o
2 3 2 3 3
1
1
1
H 2 1 2 1 2 2 1 2
l = 1 + + + +
G +
+
+
H +
G +
T +
+
H +
G
2 3 2 3 3 9 3 3 3 3 9
1
T 2
V 1
G 1
T 1
V
+ + + + + + +
H
P
3 3 2 3 2
7
4
37
H 37
G 4
T 7
V
l = 1 + + + + + + +
P
3 3 18 18 3 3
Cascade Form
1 1 1
where
l = 1 +
+
+
H +
G
2 3 2
2
2
l = 1 + + +
H
3 3
• One’s Complement Format: In this, the MSB is set to 1 and all the other digits are represented by its
Example:−2 = 1101
complement.
• Two’s Complement Format: In this, a negative number is represented by forming the two’s
complement of the corresponding positive number. In other words, the negative number is obtained by
the fractional part of the number and falls in the range ≤ } < 1, multiplied by the exponential factor
• The binary floating point representation commonly used in practice, consists of a mantissa M, which is
= }. 2õ
• Hence a number X is represented by
3 6
= 2 = 0.75 ∗ 2
8 8
Mantissa:} = 0.755 = 0.110000
Exponent:ö = −1 = 101
3
= 0.110000 ∗ 2
8
Types of Quantization Error
• Rounding or truncation introduces an error whose magnitude depends on the number of bits truncated or
rounded off.
A truncation error, Ñ , is introduced in the input signal and thus quantized signal is
•
ù = + Ñ
•
• The range of values of the error due to truncation of the signal is analyzed here for both sign magnitude
and two’s complement.
• Quantization error follows the uniform distribution
Truncation Error
Truncation is defined as the removal of excessive bits. This leads to the reduction in the magnitude of the
number.
Truncation error depends on type of number representation.
Truncation Error for Fixed Point Number Representation
Range of Error Range of Error
Representation Error
ú
−2 − 2
É
≤ Ñ
(Finite Precision) (Infinite Precision)
−2
É ≤ Ñ ≤ 0
≤0
Positive number Negative
0 ≤ Ñ ≤ 2
É − 2
ú 0 ≤ Ñ ≤ 2
É
0 ≤ Ñ ≤ 2
É − 2
ú 0 ≤ Ñ ≤ 2
É
Sign Magnitude Negative Number Positive
−2
É − 2
ú ≤ Ñ
One’s Complement Negative Number Positive
−2
É ≤ Ñ ≤ 0
≤0
Two’s Complement Negative Number Negative
Overall range: −2
É ≤ Ñ ≤ 2
É
Sign Magnitude and one’s complement:
2É
·Ñ = , −2
É ≤ Ñ ≤ 2
É
2
Overall range: −2
É ≤ Ñ ≤ 0
Two’s Complement:
·Ñ = 2É , −2
É ≤ Ñ ≤ 0
Truncation Error for Floating Point Number Representation
Range of Error Range of Error
Representation Error
ú
−22 − 2
É
≤ Ñ
(Finite Precision) (Infinite Precision)
−2 ∗ 2
É ≤ Ñ ≤ 0
≤0
Positive Mantissa Negative
−22
É − 2
ú ≤ Ñ
−2 ∗ 2
É ≤ Ñ ≤ 0
≤0
Sign Magnitude Negative Mantissa Negative
−22
É − 2
ú ≤ Ñ
−2 ∗ 2
É ≤ Ñ ≤ 0
≤0
One’s Complement Negative Mantissa Negative
0 ≤ Ñ ≤ 22
É
0 ≤ Ñ ≤ 2 ∗ 2
É
− 2
ú
Two’s Complement Negative Mantissa Positive
Overall range: −2 ∗ 2
É ≤ Ñ ≤ 0
Sign Magnitude and one’s complement:
Overall range: −2 ∗ 2
É ≤ Ñ ≤ 2 ∗ 2
É
Two’s Complement:
2É
·Ñ = , −2 ∗ 2
É ≤ Ñ ≤ 2 ∗ 2
É
4
Rounding Error
Rounding is defined as changing a fractional value to the nearest integer. This leads to the decrease or increase
in the magnitude of the number.
Rounding error does not depends on types of number representation
For the positive number, the rounding error is positive and for the negative number, the rounding error is
negative
2
É − 2
ú 2
É − 2
ú
Therefore, the range of rounding error is
− ≤ Ñï ≤
2 2
2
É 2
É
For infinite precision,
− ≤ Ñï ≤
2 2
2
É 2
É
The probability density function of the rounding error is
·Ñ± = 2É , − ≤ ѱ ≤
2 2
Quantization effects in Analog to Digital Conversion of signals
• The process of analog to digital conversion involves
Sampling the continuous time signal at a rate much greater than the Nyquist rate
Quantizing the amplitude of the sampled signal into a set of discrete amplitude levels
In ADC, when B bits binary code is selected, we can generate 2É different binary numbers.
If the range of analog signal to be quantized be 8, then the quantization step size is given by
•
8
•
û= É
2
The difference between the quantised signal amplitude ü and the actual signal amplitude is
• This quantiser rounds the sampled signal to the nearest quantised output level.
û û
− ≤ ≤
is
2 2
• The power of the quantization noise, which is nothing but the variance (e ) is given by
Input Quantization Noise Power from ADC:
ï¬þ
ýe = e = ¢ ·Ñï .
ï¬þ
ï¬þ
1
ýe = ¢ .
82
É
ï¬þ
ï¬þ
1 H
ýe = : ;
82
É 3
ï¬þ
1 8 H 2
HÉ 8 H 2
HÉ
ýe = : + ;
82
É 24 24
1 8 H 2
HÉ
ýe =
É ∗ 2 ∗
82 24
8 2
É
ýe =
12
ý7
Signal to Noise Ratio:
ܵ8 = 10 log
ýe
ܵ8 = 10 log ý7 − 10 log ýe
8 2
É
ܵ8 = 10 log ý7 − 10 log £ ¤
12
ܵ8 = 10 log ý7 − 10 log 8 + 10 log 2
É − 10 log 12
ܵ8 = 10 log ý7 − 10 log 8 + 10 log 2É + 10 log 12
ܵ8 = 10 log ý7 − 20 log 8 + 10 log 2É + 10 log 12
ܵ8 = 10 log ý7 − 20 log 8 + 20t log 2 + 10 log 12
ܵ8 = 10 log ý7 − 20 log 8 + 6t + 10.8−→ 4
Consider the range 8 = 1ܸ,
ܵ8 = 10 log ý7 + 6t + 10.8
Dynamic Range:
The error output due to the quantization error signal at the input of the digital system
From the figure above, it can be seen that the output $ of the digital system is given by
•
The error output is a random process and it is the response of the digital system to the input error
signal .
•
The error output is obtained by convolving the system impulse response ℎ with input error
• The digital system is assumed to be causal.
signal .
•
• Thus,
ஶ
ߛeబ eబ - = eబ
• It has been assumed that the noise resulting from the quantization process is a white noise. For this case,
ߛee - = e
and
where, eబ is the output noise power and e is the input noise power.
• Thus,
ஶ
eబ = e ℎ
1
• Using Parseval’s theorem,
ஶ
ℎ = ර ll
.
2²I
e
• Thus,
eబ
= ර ll
.
2²I
where the closed contour of integration is around the unit circle || = 1.
Coefficient Quantization Effect
• The realization of the digital filters in hardware or software has some limitation due to the finite word
length of the registers that are available to store these filter coefficients.
Product Quantization
• The error due to the quantization of the output of multiplier is referred to as product quantization error.
• When two B – bit numbers are multiplied, the product must be rounded to B – bits in all digital
processing applications.
whereÎ is the product which is 2B – bit long and is the error resulting from rounding the
product to B – bits.
• The fixed point, finite word length multiplier can be modeled as given below:
• In digital system, the product quantization is performed by rounding due to the following characteristics
of rounding.
In rounding the error signal is independent of the type of arithmetic employed.
The mean value of error signal due to rounding is zero.
The variance of the error signal due to the rounding is least.
• The analysis of product quantization error is similar to the analysis of quantization error due to ADC.
• But, in product quantization error analysis, it is necessary to define the noise transfer function, which
depends on the structure of the digital network.
• The noise transfer function (NTF) is defined as transfer function from the noise source to the filter
output.
• NTF is the transfer function obtained by treating the noise source as actual input.
• The product quantization error signal is treated as a random process with uniform probability
distribution function.
• In general the following assumptions are made regarding the statistical independence of the various
noise sources of the digital filter.
Any two different samples from the same noise source are uncorrelated.
Any two different noise sources, when considered as random processes are uncorrelated.
Each noise source is uncorrelated with the input sequence.
Product Quantization Noise Models for IIR filter
First Order Direct Form I
Analysis
2
É
The average power (variance) is given by
e =
12
Let ℎ be the system response and be the response of the system to the input error .
The effects of rounding due to multiplication in cascaded IIR sections are discussed now.
eబ = e ℎ
Using Parseval’s relation
e
= e ℎ
Then the overall output noise power is given by
ஶ
e±±
= e
Limit Cycle Oscillation
• In recursive systems, when the input is zero or some nonzero constant value, the nonlinearities due to
• During periodic oscillations, the output % of a system will oscillate between a finite positive and
finite precision arithmetic operators may cause periodic oscillations in the output.
negative value for increasing or the output will become constant for increasing .
• Such oscillations are called limit cycle oscillation.
• These oscillations are due to round off errors in multiplications and overflow in additions.
Types of Limit cycle oscillation
• Zero input limit cycle oscillation
• Overflow limit cycle oscillation
Zero input limit cycle oscillation
In recursive systems, if a system output enters a limit cycle, it will continue to remain in limit cycle even when
the input is made zero.
Hence these limit cycles are called zero input limit cycle.
% ô = 0, < 0
Let
15
and
= ð 16 , = 0
0, ≠ 0
and! =
For a first order system described by the equation % = !% − 1 + , the dead band is given by
filter.
2
É
' !. &!. = ±
1 − |!|
For a second order system described by the equation % = ! % − 1 + ! % − 2 + , the dead band
2
É
is given by
' !. &!. = ±
1 − |! |
Overflow Limit Cycle
The oscillation occurs due to the truncation of output of the adder or multiplier is called overflow limit cycle
oscillations.
Methods used to prevent overflow:
• Saturation arithmetic
• Scaling
Saturation arithmetic:
In saturation arithmetic, if the output exceeds the maximum value then the output is set to maximum value and
if the output goes below the minimum value then the output is set to minimum value.
Scaling:
Consider % be the output of the system ℎ for the input .
Scaling can be done by scale the input at certain points in the digital filter to prevent overflow.
% = ℎ −
ஶ
Apply magnitude on both side,
ஶ
|ℎ| < 1
ஶ
1
<
∑ஶ
ஶ|ℎ|
This is necessary condition for preventing overflow in a digital IIR system.
For an FIR Filter, the condition will be
L. C
Example 1: The output of an ADC is applied to a digital filter with the system function
=
− L. A
Find the output noise power of the digital filter when the input signal is quantized to 7 bits.
0.45
Given:
l =
− 0.72
t = 7 &¹
To find: Output Noise Power e
e
Formula:
e
= ර ll
.
2²I
where, e = 8 ⁄12 ∗ 2É
8 = 1+1= 2
4
e = = 2.0345 ∗ 10
T d
12 ∗ 2 G
0.45 0.45
e = .
e
ර
2²I − 0.72
− 0.72
e 0.45 0.45
e
= ර
.
2²I − 0.72 1 − 0.72
e 0.2025
e
= .
2²I − 0.721 − 0.72
ර
e
= e ∗ - 8 ¹. ·" ll
vℎ¹{ℎ ¹ ¹¹. ℎ {¹ {"
Here the poles of ll
are = 0.72 (inside the unit circle) and = 1.3889 (outside the unit circle)
8 = 18 *ll
+2«→.P
0.2025
8 = w x
1 − 0.72 «→.P
8 = 0.4205
e = 0.4205e
e
= 8.5551 ∗ 10
V d
Example 2: Consider the transfer function = @ A where @ = @⁄@ − L.
@ and
A = @⁄@ − L.
@ . Find the output round off noise power.
e
We know that
e
= ර ll
.
2²I
) = l
Noise power due to input noise at @ :
e
= e ∗ 8 + 8
e
= 3.8691e
Noise power due to input noise at A :
e
e
= ර ) )
.
2²I
e
e
= .
2²I 1 − 0.6
1 − 0.6
ර
e 1
e =
.
2²I − 0.61 − 0.6
ර
e
= e ∗ ܵ-!""8 ¹. !·" "¹ ¹¹. ℎ {¹ {"
Poles inside the unit circle: = 0.6
Poles outside the unit circle: = 1.6667
8 = 8 *) )
+«→.V
1
8 = w x
1 − 0.6 «→.V
1
8 = = 1.5625
0.64
e
= e ∗ 8
e
= 1.5625e
e
= e
+ e
Total Power:
e = 5.4316e
the difference equation > = L.
> − @ + =>. Determine the dead band of the filter.
Example 3: Explain the characteristics of a limit cycle oscillation with respect to the system described by
2
É
Dead Band:
' !.t!. = ±
1 − |!|
2
G
' !.t!. = ±
1 − 0.95
' !.t!. = ±1.25