DSP 1
DSP 1
Midterm Exam
Terminal Exam
Course Information
Textbook:
John G. Proakis and Dimitris G. Manolakis, Digital Signal Processing:
Principles, Algorithms, and Applications, 4th edition, 2007
Reference Books:
• Discrete‐Time Signal Processing by Alan V. Oppenheim, Ronald. W. Schafer,
Pearson Education (OS)
At Least:
• 4 Quizzes
• 4 Assignments
Class Room Ethics
Attendance:
• At least 80% Attendance is mandatory in order to get permission to sit
in Terminal Exam
x t A cos t , x n, m n m ,
2
•
x t 4 t t 3 etc.
Examples: Number of stocks traded per day, Average income per province.
What is Digital Signal Processing
Continuous Amplitude vs. Discrete Amplitude Signals:
Continuous Amplitude Signals: Signal amplitude takes on values from an infinite set
Digital signals facilitate the use of digital signal processing (DSP) systems (e.g.
PC, smartphone etc. ), which have practical and performance advantages.
Why Processing?
To obtain the signal in more desirable form
What is Digital Signal Processing
Examples: Multiplexing
A number of signals which are to be transmitted over the same channel, then we do a
processing called multiplexing. At the receiver end the signals have to be separated
and therefore there is a need for de‐multiplexing which is again signal processing
What is Digital Signal Processing
Examples: Filtering
The signal is always corrupted by noise and other disturbances whenever passed
through any medium. One of the most important type of signal processing is to filter
out the noise and other disturbances.
1
F
T
Smaller F Larger T
Larger F Smaller T
Concept of Frequency
DT Sinusoids: What is a “pure frequency” signal?
for k .
Concept of Frequency
Complex Exponentials
Complex exponentials play a major role in the analysis of signals and systems, so, we
need to review them
e j e j
cos( )
2
e j e j
s in( )
2j
where j 1
Complex Exponentials
Complex exponentials play a major role in the analysis of signals and systems, so, we
need to review them
j ( t ) j (2 Ft )
Continuous-time: Ae Ae
j ( n ) j (2 fn )
Discrete-time: Ae Ae
• Periodicity
• Uniqueness
x(t ) x(t T ), T
Ae j (2 Ft ) Ae j (2 F ( t T ) )
e j 2 Ft e j e j 2 Ft e j 2 FT e j
1 e j 2 FT
e j 2 k 1 e j 2 FT ,k
k
T
F
1
Fundamental period = T0
F
Complex Exponentials
Periodicity DT:
x(n) x(n N ), N
Ae j (2 fn ) Ae j (2 f ( n N ) )
e j 2 fn e j e j 2 fn e j 2 fN e j
1 e j 2 fN
e j 2 k 1 e j 2 fN , k
k
f
N
k' k '
Fundamental Period: N 0 , min k ' such that
f f
Complex Exponentials
Periodicity DT:
n
Example 1: x(n) cos 6
1
f Rational Number
2 2 .6 12
k
N 12k
f
Fundamental Period: N 0 12 for k 1
n
Example 1: x(n) cos
6
The fundamental period is 12 which corresponds to k = 1 envelop cycles
Complex Exponentials
Periodicity DT:
8 n
Example 2: x(n) cos 31
8 4
f Rational Number
2 2 .31 31
k 31
N k
f 4
N 0 31 for k 4
8 n
Example 2: x(n) cos
31
The fundamental period is 31 which corresponds to k = 4 envelop cycles
Complex Exponentials
Periodicity DT:
Example 3: n
x(n) cos
6
1 1
f Irrational Number
2 2 .6 12
k
N 12 k
f
N does not exist for any k ;
x(n) is non‐periodic
Complex Exponentials
Periodicity DT:
Example 3: n
x(n) cos
6
Complex Exponentials
Uniqueness CT:
For F1 F2 ,
0 2 OR
1 1
0 f 1 OR f
2 2
Harmonically Related Complex
Exponentials
• In general, sinusoids and complex exponentials play a major role in the analysis of
signals and systems
Set of periodic complex exponentials with fundamental frequencies that are multiples
of a single positive frequency.
Harmonically Related Complex
Exponentials
CT Harmonically Related CE :
sk t e jk o t
e j 2 kFo t
; k 0, 1, 2,...
sk t e jk o t
e j 2 kFo t
; k 0, 1, 2,...
1 To
sk t is periodic with fundamental period
kFo k
To
A signal that is periodic with period: So, all of the sk t have a
k
1
T common period of To
is also periodic with period: k o To Fo
k
sk t e jk o t
e j 2 kFo t
; k 0, 1, 2,...
xa t = ck sk t where ck , k 0, 1, 2,... are arbitrary complex constants
k
1
xa t is periodic with fundamental period = To
Fo
Fourier series expansion
of xa t
Harmonically Related Complex
Exponentials
DT Harmonically Related CE :
sk n e jko n
e j 2 kf o n
; k 0, 1, 2,...
1
Let f o
N
Harmonically Related Complex
Exponentials
DT Harmonically Related CE :
1
j 2 kn
Let fo
1
then: sk n e N
;k ?
N
1 1
j 2 k N n j 2 kn
Notice that: sk N n e N
e j 2 n e N
e j 2 n sk n sk n
n
j 2 k
sk n e jko n e N
; k 0,1, 2, ... N 1
N 1
x n = ck sk n where ck , k 0,1, 2,...N 1 are arbitrary complex constants
k 0
Sampling:
Conversion from continuous time to discrete time by taking
“samples” at discrete time instants.
e.g. Uniform Sampling:
Analog to Digital Conversion
Uniform Sampling:
OR
f Normalized Frequency (Normalized by Fs )
Frequency in Hz i.e. F can only be found if Fs is known
Analog to Digital Conversion
Uniform Sampling: Relationship between F and f ?
What is the fundamental difference between CT and DT signals?
Range of frequencies !
Analog to Digital Conversion
What is the fundamental difference between CT and DT signals?
Range of frequencies !
For sure NO. There will be ambiguity. Only the frequencies (in analog signal)
in a certain range will be uniquely mapped in discrete time domain.
The answer certainly depends on sampling rate. For a given sampling rate = Fs
1
Since the maximum frequency in DT is: f
2
F
From the relation: F f .Fs Fmax s
2
Fmax is the highest frequency in analog signal that will
be uniquely mapped in discrete domain
Analog to Digital Conversion
What happens to frequencies above Fs ?
2
Example:
So, for Fs=40 Hz, we say that F=50 Hz is an ALIAS of Both DT sinusoids are
F=10 Hz same and identical
Analog to Digital Conversion
Is F=50 Hz the only ALIAS of F=10 Hz for Fs = 40 Hz ?
All the frequencies above Fs/2 are folded back to fundamental range
Fs/2 = FOLDING Frequency
Analog to Digital Conversion
Given an analog signal what should be the sampling rate to avoid
aliasing ?
Interpolation/Reconstruction:
What will be the value of the corresponding
analog signal between two samples?
Analog to Digital Conversion
Sampling Theorem: If the highest frequency contained in an analog
signal xa t is Fmax B and the signal is sampled at a rate Fs 2 Fmax 2 B
then xa t can be EXACTLY recovered from its samples using the interpolation
function: sin 2 Bt
g t
2 Bt
Reconstruction: xa t x nT g t nT x n g t nT
n
a
n
Bandlimited Interpolation ?
Quantization:
Conversion from discrete‐time‐continuous valued signal to
discrete‐time‐discrete valued signal
Quantization Error:
Analog to Digital Conversion
Analog to Digital Conversion
Digital to Analog Conversion (DAC)
Digital to Analog Conversion (DAC)
DAC is all about interpolating the signal values between two consecutive samples
Digital to Analog Conversion (DAC)
DAC is all about interpolating the signal values between two consecutive samples
Digital to Analog Conversion (DAC)
DAC is all about interpolating the signal values between two consecutive samples
Home Work Suggestions:
1.3‐1.10, 1.15