Professional Documents
Culture Documents
Writer By:
Eng.Elyaseen Elyas
Contact:
Tel:+249916020383
Tel:+249922755504
Email:ElyaseenElyas777@gmail.com
Digital signal processing 2018
1
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
Advantages of DSP:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Disadvantages of DSP:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Application of DSP:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Signals:
………………………………………………………………………………...
Basic Sequence operations:
3\ exponential sequence:
4\ ramp sequence:
2\ Shifting:
...........................................................................................................................
...........................................................................................................................
3\ Time Scaling:
...........................................................................................................................
...........................................................................................................................
...........................................................................................................................
Convolution:
Example:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
5
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
6
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Correlation:
Example:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
8
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
9
………………………………………………………………………………...
2\ a constant multiplier:
3\ a signal multiplier:
Difference equation :
10
𝑥 (𝑧) = ∑ 𝑥(𝑘)𝑧 −𝑘
𝑘=0
11
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
Example (2.1):
Find the Z_transform of the geometric sequence defined as:
𝟎 𝒌 = −𝟏, −𝟐, −𝟑, …
𝒙[𝒌] = { 𝒌
𝒂 𝒌 = 𝟎, 𝟏, 𝟐, 𝟑, 𝟒, …
Solution:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
Example (2.2):
Find the Z_transform of unit samples δ(k)
Solution:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
Example (2.3):
Find the Z_transform of unit step u(k)
Solution:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
12
Example (2.4):
Find the Z_transform of unit 𝑈𝑎= 𝑢(𝑘) (alternative k>=0)
Solution:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
Example (2.5):
Find the Z_transform of exponential
−𝑎𝑘
𝑥(𝑘) = { 𝑒 0≤𝑘
0 𝑘<0
Solution:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
Example (2.6):
Find the Z_transform of sinusoidal signal
Solution:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
13
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
Properties of Z_transform:
Z_transform is linear transform and its properties are similar to
Laplace or Fourier transform or any one orthogonal transform.
1\ uniqueness:
…………………………………………………………………………….......
…………………………………………………………………………….......
2\ Linearity:
…………………………………………………………………………….......
…………………………………………………………………………….......
3\ Delay:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
4\ Advance property:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
14
5\ Multiplication by 𝒂𝒌 :
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
6\ Multiplication by k:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
7\ initial value:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
8\ final value:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
Finding Z_tranform from Laplace:
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
15
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
…………………………………………………………………………….......
16
1\ partial fraction:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
Example (3.1)
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………
……………………………………………………………………………..
……………………………………………………………………………..
Example(3.2)
12𝑍
𝐹(𝑍) =
(𝑍 + 1)(𝑍 − 1)2
Solution:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
18
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
……………………………………………………………………………
………………………………………………………………………………
Example(3.3)
Solution:
19
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
Example(3.5)
Use the long division method to compute the first 5 terms of the
discrete−time sequence whose Z transform is
𝑍 −1 + 𝑍 −2 + 𝑍 −3
𝐹(𝑍) =
1 + 𝑍 −1 + 𝑍 −2 + 𝑍 −3
Solution:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
20
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
……………………………………………………………………….
Example(3.7):
1
𝐹(𝑍) =
(1 − 𝑍 −1 )(1 − 0.75𝑍 −1 )
Solution:
………………………………………………………………………………
………………………………………………………………………………
21
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
Application of Z_Transform:
……………………………………………………………………………
……………………………………………………………………………
Example(3.8):
Solution:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
……………………………………………………………………………….
22
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
Example(3.9):
Find the system function H(z) and unit sample response h(k) of the system
whose difference equation is described as under
1
𝑦(𝑘) = 𝑦(𝑘 − 1) + 2𝑥(𝑘)
2
Solution:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
Example(3.10):
Determine Y(z), k≥0 in the following case:
1 1
𝑦(𝑘) + 𝑦(𝑘 − 1) − 𝑦(𝑘 − 2) = 0 , given y(-1)=y(-2)=1
2 4
Solution:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
23
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
Definition of DFT:
𝑁−1
−𝑗2𝜋𝑘𝑛
𝑋(𝑛) = ∑ 𝑋(𝑘) 𝑒 𝑁
𝐾=0
𝑁−1
1 𝑗2𝜋𝑘𝑛
𝑋(𝑘) = ∑ 𝑋(𝑛) 𝑒 𝑁
𝑁
𝑛=0
24
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Example(4.2)
Solution:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
27
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Linear Convolution:
Length of O/P = 𝑀 + 𝑁 − 1
M: is length of 𝑥(𝑘)
N: is length of ℎ(𝑘)
Example (4.3)
For the following functions
28
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
𝑥(𝑘) = [1 2 3 2 1 0 − 1]
ℎ(𝑘) = [2 3 4 3 2 1]
Find the linear convolution
Solution:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Cyclic Convolution
𝑁−1
𝑥(𝑘) = [1 2 3 4]
29
DFT As Matrixe
𝑁−1
−𝑗2𝜋
𝑥(𝑛) = ∑ 𝑥(𝑘)𝑊𝑁𝑘𝑛 , 𝑊𝑁 = 𝑒 𝑁
𝑘=0
Example (4.5)
Find DFT using matrix method for 6-point (N=6)
30
Solution:
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
………………………………………………………………………………
1. Uniqueness:
DFT {𝑥(𝑘)} 𝑥(𝑛)
IDFT {𝑥(𝑛)} 𝑥(𝑘)
31
2. Periodicity
We can show that 𝑥(𝑛) is periodic with period N and as follows:
𝑁−1
−𝑗2𝜋𝑘𝑛
𝑥(𝑛) = ∑ 𝑥(𝑘)𝑒 𝑁
𝑘=0
𝑛 = 0, 1, 2, …
𝑛=𝑁
𝑁−1
−𝑗2𝜋𝑘𝑁
𝑥(𝑛) = ∑ 𝑥(𝑘)𝑒 𝑁
𝑘=0
𝑁−1
Then:
𝑛 = 𝑛 + 𝑁 , 𝑥(𝑛 + 1) = 𝑥(1) 𝑎𝑛𝑑 𝑥(𝑛 + 𝑚) = 𝑥(𝑚)
IDFT:
𝑥(𝑁 + 0) = 𝑥(0)
𝑥(𝑁 + 1) = 𝑥(1)
𝑥(𝑁 + 𝑘) = 𝑥(𝑘)
𝑥(𝑁 + 𝑛) = 𝑥(𝑛)
Example (4.6)
𝑥(𝑘) = [1 2 3 4] Periodic signal
Solution:
………………………………………………………………………………...
32
………………………………………………………………………………...
………………………………………………………………………………...
3. Time Reversal
𝑥(𝑘) = {𝑥(0), 𝑥(1), 𝑥(2), … }
𝑥(𝑛) = 𝐷𝐹𝑇[𝑥(𝑘)]
Then 𝐷𝐹𝑇[𝑥(−𝑘)] =
𝑥(−𝑛) = 𝑥(𝑁 − 𝑛)
𝐷𝐹𝑇[𝑥(𝑁 − 𝑘)] = 𝑥(−𝑛) = 𝑥(𝑁 − 𝑛)
Example (4.7)
𝑥(𝑘) = [1 2 3]
4. Complex Conjugate:
𝑥 ∗ (𝑘) = 𝑁𝑥 ∗ (𝑛)
5. Cyclic shift (time shift):
−𝑗2𝜋𝑚𝑛
𝐷𝐹𝑇[𝑥(𝑘 − 𝑚)] = 𝑥(𝑛). 𝑒 𝑁
Example (4.8)
𝑥(𝑘) = [1 2 3 4]
Find cyclic shift: 1. 𝑥(𝑘 − 1) 2. 𝑥(𝑘 + 1)
Solution:
………………………………………………………………………………...
…………………………………………………………………
33
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
Digital Filter:
1. Infinite Impulse Response Filter (IIR)
2. Finite Impulse Response Filter (FIR)
Analog Filter:
34
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
Example (5.1)
Draw the discrete realization of the given filter
𝑍 2 + 3𝑍 + 5
𝐻1 = 2
𝑍 − 5𝑍 + 7
Solution:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
Example (5.2)
𝑌(𝑧)
= 1 − 0.25𝑍 −1 + 0.6𝑍 −2 + 0.13𝑍 −3 + 0.7𝑍 −4 + 0.22𝑍 −5 + 0.72𝑍 −6
𝑋(𝑧)
Solution:
………………………………………………………………………………...
35
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
1. Design of Butterworth Analog Low-Pass Filters
1
|𝐻(𝑗𝑤)|2 =
𝑤 2𝑁
1+( )
𝑤 𝑐
Where
N: the order of filter
1
𝐻𝑛 (𝑠) =
𝑎𝑜 + 𝑎1 𝑆 + 𝑎2 𝑆 2 + ⋯ + 𝑎𝑁−1 𝑆𝑁−1 + 𝑆𝑁
Example (5.3)
The transfer function of low pass Butterworth filter which 3-dB frequency of
2 KHZ and will have an attenuation of at least 15 dB at twice the cutoff
frequency
Solution:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
36
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
2. Design of Chebyshev Analog Low-Pass Filters
𝐾
|𝐻(𝑗𝑤)|2 =
1+∈ 𝑇𝑁2 (𝑤)
𝑇𝑁 (𝑤) = cos(𝑁 cos −1 𝑤) |𝑤| ≤ 1
𝑇𝑁 (𝑤) = cosh(𝑁 cosh−1 𝑤) |𝑤| > 1
2
𝐾 = {1 +∈ 𝑁 − 𝑒𝑣𝑒𝑛
1 𝑁 − 𝑜𝑑𝑑
𝑘
𝐻(𝑠) =
𝑎𝑜 + 𝑎1 𝑆 + 𝑎2 𝑆 2 + ⋯ + 𝑎𝑁−1 𝑆𝑁−1 + 𝑆𝑁
𝑎𝑜
𝑁 − 𝑒𝑣𝑒𝑛
𝐾 = {√1 +∈2
𝑎𝑜 𝑁 − 𝑜𝑑𝑑
High frequency in dB
−20𝑙𝑜𝑔 ∈ −6(𝑁 − 1) − 20𝑁𝑙𝑜𝑔𝑤
Example (5.4)
Find a low pass Chebyshev filter which meet the following:
1. The ripple in the pass Band is 1 dB
2. The cutoff frequency is 10 KHZ
3. The dc gain level should be such that the magnitude in the pass Band
is unity.
4. at the attenuation at 100 KHZ should be at least 140 dB
Solution:
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
38
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018
Digital signal processing 2018
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
………………………………………………………………………………...
2. finite Impulse Response Method
𝐻(𝑆) 𝑍
𝑍[ ]= 𝐻(𝑍)
𝑆 𝑍−1
𝐻(𝑆)
𝐻(𝑆) 𝑍 𝑆
𝐻(𝑍) = 𝑍 [ ]= ∑ 𝑅𝑒𝑠 𝑎𝑡 𝑝𝑜𝑙𝑒𝑠
𝑆 𝑍−1 1 − 𝑒 𝑠𝑡 𝑍 −1
39
2 𝑍−1
𝑆=
𝑇𝑤𝑐 𝑍 + 1
2𝑓 𝑍 − 1
𝑆=
𝑤𝑐 𝑍 + 1
40
MSc. Computer Architecture & Network By: Eng.Elyaseen Elyas 2018