ECT303 Module 1 Part 1
ECT303 Module 1 Part 1
PROCESSING
MODULE 1-PART I
Part 3
Part 1
Part 2
Part 3
Digital Signal Processing
3
➢ Digital Signal Processing is defined as the processing of a signal in the digital domain
to analyze, measure, and manipulate the signal using mathematical calculations.
➢ 2 types of signal processing- Analog signal processing & Digital signal processing
Basic Elements of a Digital Signal Processing System
4
➢ Most of the signals encountered in science and engineering are analog in nature.
To perform the processing digitally, there is a need for an interface between the
analog signal and the digital processor. This interface is called an analog-to-
digital (A/D) converter. The output of the A/D converter is a digital signal that is
appropriate as an input to the digital processor.
➢ The digital signal processor may be a large programmable digital computer or a
small microprocessor programmed to perform the desired operations on the input
signal. It may also be a hardwired digital processor configured to perform a
specified set of operations on the input signal.
➢ In applications where the digital output from the digital signal processor is to be
given to the user in analog form, such as in speech communications, a digital-to-
analog (D/A) converter is used.
➢ However, there are other practical applications involving signal analysis, where
the desired information is conveyed in digital form and no D/A converter is
required.
5
Advantages of Digital Signal Processing
6
2. DSP’s process signals at high speed and comprises of more top internal hardware
resources. Because of this DSP dissipates higher power as compared to analog
signal processing.
3. One needs to cautiously use the IC as per hardware and software requirements as
most of the DSP chip is very expensive
Applications
8
➢ Consider a finite length sequence x(n) in the figure. The DTFT is given by
𝑁−1
𝑋 𝑒 𝑗𝜔 = 𝑥(𝑛) 𝑒 −𝑗𝑤𝑛
𝑛=0
➢ It can be seen that the Fourier transform (DTFT) is continuous and periodic with
respect to 2𝜋.
➢ Hence DTFT cannot be used for computations on a digital processor. Therefore we
go for DFT.
Discrete Fourier Transform (DFT)
10
𝑋 𝑒 𝑗𝜔 = 𝑥(𝑛) 𝑒 −𝑗𝑤𝑛
𝑛=0
2π𝑘
➢ Replacing 𝜔 = , the N point DFT can be written as
𝑁
𝑁−1
2π𝑘
−𝑗 𝑛
𝑋 𝑘 = 𝑥(𝑛) 𝑒 𝑁 , 0≤𝑘 ≤𝑁−1
𝑛=0
Inverse Discrete Fourier Transform (IDFT)
13
𝑋 0 = 𝑥(𝑛)𝑒 0 = 𝑥 0 + 𝑥 1 + 𝑥 2 + 𝑥 3 =1 + 1 + 0 + 0 = 2
𝑛=0
3
2π π 3π
−𝑗 4 𝑛 −𝑗 2 −𝑗 2
𝑋 1 = 𝑥(𝑛)𝑒 =𝑥 0 . 𝑒0 + 𝑥 1 .𝑒 +𝑥 2 . 𝑒 −𝑗π +𝑥 3 .𝑒
𝑛=0
π π
=1+1.(cos − jsin ) + 0 + 0 = 1+1(-j) = 1-j
2 2
15
3
0 −𝑗π
𝑋 2 = 𝑥(𝑛)𝑒 −𝑗π𝑛 = 𝑥 0 . 𝑒 + 𝑥 1 . 𝑒 + 𝑥 2 . 𝑒 −𝑗2π + 𝑥 3 . 𝑒 −𝑗3π
𝑛=0
= 1+1.(cos π − jsinπ) + 0 + 0 =1+1(-1) = 0
3
6π 3π 9π
−𝑗 4 𝑛 −𝑗 −𝑗
𝑋 3 = 𝑥(𝑛)𝑒 = 𝑥 0 . 𝑒0 + 𝑥 1 . 𝑒 2 + 𝑥 2 . 𝑒 −𝑗3π + 𝑥 3 . 𝑒 2
𝑛=0 3π 3π
= 1+1.(cos − jsin ) + 0 + 0 = 1+1(j) = 1+j
2 2
Soln:
𝑁−1 3
1 2π𝑘
𝑗 𝑁 𝑛 1 2π𝑘
𝑦 𝑛 = 𝑌(𝑘) 𝑒 = 𝑌(𝑘) 𝑒 4 𝑛 ,
𝑗
0≤𝑛≤3
𝑁 4
𝑘=0 𝑘=0
3
1 0 =
1
𝑦 0 = 𝑌(𝑘) 𝑒 𝑌 0 +Y 1 +𝑌 2 +𝑌 3
4 4
𝑘=0
1
= 1 + 0 + 1 + 0 = 0.5
4
3
1 2π𝑘
𝑗 4
1 0
π
𝑗2 𝑗π
3π
𝑗2
𝑦 1 = 𝑌(𝑘) 𝑒 = 𝑌 0 .𝑒 + Y 1 .𝑒 + 𝑌 2 .𝑒 + 𝑌 3 .𝑒
4 4
𝑘=0
1
= 1 + 0 + 1(−1) + 0 = 0
4
17
𝑦 𝑛 = {0.5, 0 , 0.5 , 0}
𝟏 𝒇𝒐𝒓 𝟎 ≤ 𝒏 ≤ 𝟐
Q. Find the DFT of x(n) = ቊ for N=4 and N=8. Plot
𝟎 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
𝑿(𝒌) and ∠𝑿(𝒌).
18
Soln:
x(n)={1,1,1}
Note:
Case 1: Since N=4, zero pad the sequence to make length = 4
If, X=a+jb
∴ 𝑥 𝑛 = 1,1,1,0 |X|= 𝒂𝟐 + 𝒃𝟐
𝒃
Calculate 4 point DFT: 𝑋 𝑘 = {3, −𝑗, 1, 𝑗} ∠X= 𝒕𝒂𝒏−𝟏
𝒂
0 Also,
X(0) =3, 𝑋(0) = 3 , ∠𝑋 0 = 𝑡𝑎𝑛−1 =0
3 −𝒃
−𝟏
−1 −1 −1 1 𝜋 𝒕𝒂𝒏
X(1) = -j, 𝑋(1) = 1 , ∠𝑋 0 = 𝑡𝑎𝑛 = −𝑡𝑎𝑛 = − 𝒂
0 0 2
−𝟏
𝒃
0 = −𝒕𝒂𝒏 ( )
X(2) = 1, 𝑋(2) = 1 , ∠𝑋 0 = 𝑡𝑎𝑛−1 =0 𝒂
1
1 1 𝜋
X(3) = j, 𝑋(1) = 1 , ∠𝑋 0 = 𝑡𝑎𝑛−1 = 𝑡𝑎𝑛−1 =
0 0 2
19
Case 2: Since N=8, zero pad the sequence to make length = 8
∴ 𝑥 𝑛 = 1,1,1,0,0,0,0,0
20
𝑁−1
2π𝑘
−𝑗 𝑁 𝑛
𝑋 𝑘 = 𝑥(𝑛) 𝑒
𝑛=0
𝑁−1 𝑁−1
2π𝑘 𝑗2π𝑘
−𝑗 𝑛 − 𝑁 )𝑛
= 𝑎𝑛 𝑒 𝑁 = (𝑎𝑒 Note:
𝑁−1
𝑛=0 𝑛=0 1 − 𝑎 𝑁
𝑎𝑛 =
−
𝑗2π𝑘 1−𝑎
1 − (𝑎𝑒 𝑁 )𝑁 1 − 𝑎𝑁 𝑒 −𝑗2π𝑘 𝑛=0
= 𝑗2π𝑘
= 𝑗2π𝑘
− 𝑁 −
1 − 𝑎𝑒 1 − 𝑎𝑒 𝑁
1 − 𝑎𝑁
= 𝑗2π𝑘
−
1 − 𝑎𝑒 𝑁
Practice Problems
22
𝑥 𝑛 = {0,2,4,6}
1. Periodicity
𝑊𝑁 𝑘+𝑁 = 𝑊𝑁 𝑘
2. Symmetry
𝑁
𝑘+
𝑊𝑁 2 = −𝑊𝑁 𝑘
26
2𝜋 2𝜋 2𝜋.6
−𝑗 𝑁 −𝑗
𝑊𝑁 = 𝑊4 =𝑒 = 𝑒 −𝑗 4 Similarly 𝑊46 = 𝑒 4 = −1 = 𝑊42+4 = 𝑊42
2𝜋.0 (periodicity)
𝑘 0 −𝑗 4
𝑊4 : 𝑊4 = 𝑒 =1
2𝜋.1 𝜋
1 −𝑗 4 −𝑗 2
𝑊4 = 𝑒 =𝑒 = −𝑗
2𝜋.2
2 −𝑗
𝑊4 = 𝑒 4 = 𝑒 −𝑗𝜋 = −1
2𝜋.3 3𝜋
3 −𝑗 −𝑗
𝑊4 = 𝑒 4 = 𝑒 2 = 𝑗
2𝜋.4
𝑊44 = 𝑒 −𝑗 4 = 1 = 𝑊40+4 = 𝑊40 (periodicity)
2𝜋.5 4
−𝑗 4 3+2
𝑊45 = 𝑒 = −𝑗 = 𝑊4 = −𝑊43 (symmetry)
Q. Compute DFT of x(n)={0,1,2,3}
27
Soln:
1 1 1 1
1 𝑊4 𝑊4 2 𝑊4 3
First step is to determine 𝐖4 =
1 𝑊4 2 𝑊4 4 𝑊4 6
1 𝑊4 3 𝑊4 6 𝑊4 9
2𝜋
−𝑗 𝑁
𝑊𝑁 = 𝑒
2𝜋
−𝑗 4
𝜋
−𝑗 2 𝜋 𝜋
𝑊4 = 𝑒 =𝑒 = 𝑐𝑜𝑠 − 𝑗𝑠𝑖𝑛 = −𝑗
2 2
2𝜋
2 −𝑗 4 .2
𝑊4 = 𝑒 = 𝑒 −𝑗𝜋 = cos 𝜋 − 𝑗𝑠𝑖𝑛 𝜋 = −1
2𝜋
−𝑗 .3 −𝑗
3𝜋 3𝜋 3𝜋
𝑊4 3 = 𝑒 4 = 𝑒 2 = cos − 𝑗𝑠𝑖𝑛 =𝑗
2 2
𝑊4 4 = 𝑊4 0+4 = 𝑊4 0 = 1 (periodicity)
28
𝑊4 6 = 𝑊4 2+4 = 𝑊4 2 = −1 (periodicity)
𝑊4 9 = 𝑊41+2.(4) = 𝑊41 = −𝑗 (periodicity)
1 1 1 1 0
1 −𝑗 −1 𝑗
𝐖4 = and from question 𝐱4 = 1
1 −1 1 −1 2
1 𝑗 −1 −𝑗 3
1 1 1 1 0 6
1 −𝑗 −1 𝑗 1 −2 + 2𝑗
𝐗 4 = 𝐖4 𝐱4 = . =
1 −1 1 −1 2 −2
1 𝑗 −1 −𝑗 3 −2 − 2𝑗
Relationship of DFT to other Transforms
29
𝑁−1 2π𝑘
𝑗
1 1 − (𝑒 𝑁 𝑧 −1 )𝑁
𝑋 𝑧 = 𝑋(𝑘) 2π𝑘 Note:
𝑁 𝑗 𝑁 −1
𝑘=0 1−𝑒 𝑧 𝑒 𝑗2π𝑘 = cos 2π𝑘 + 𝑗𝑠𝑖𝑛2π𝑘
=1
𝑁−1
1 1 − 𝑒 𝑗2π𝑘 𝑧 −𝑁
= 𝑋(𝑘) 2π𝑘
𝑁 𝑗 𝑁 −1
𝑘=0 1−𝑒 𝑧
−𝑁 𝑁−1
1−𝑧 𝑋(𝑘)
𝑋 𝑧 = 2π𝑘
𝑁 𝑗 𝑁 −1
𝑘=0 1 −𝑒 𝑧
REFERENCES
32
THANK YOU!