Slide-1 Introduction To Signal Processing
Slide-1 Introduction To Signal Processing
Textbook :
Digital signal processing - Principles, algorithms and
application (3nd Edition)
J G Proakis, D G Manolakis
2
What is DSP?
Signal Characteristics:
◦ Signals are Physical Quantities:
◦ Signals are Measurable
◦ Signals are Analog
◦ Signals Contain Information.
Examples:
◦ Weather [temperature]
◦ Temperature [oC]
◦ Pressure [Newtons/m2] or [Pa]
◦ Mass [kg]
◦ Speed [m/s]
◦ Acceleration [m/s2]
◦ Voltage [Volts]
◦ Current [Amps]
◦ Power [Watts]
𝑠 ( 𝑡 ) = 5 𝑡 𝑠 ( 𝑡 ) = 20 𝑡 2 S(x,y)=3x+2xy+10
1 2
Figure1: DC Signal.
f(t)=?
Example of Signal
f(t)=
f(t)=
The Amplitude is the height from the center line to the peak.
The Phase Shift is how far the function is shifted horizontally from
the usual position.
The Period goes from one peak to the next (or from any point to
the next matching point):
Analog Signal
Amplitude
4
3
2
Phase 5
-10 -5 -1 0 5 10
3.14)
-3
-5
Frequency 5
-10 -5 -1 0 5 10
3.14)
-3
-5
What is Processing?
Area of mathematics deals with the principles that underlie all digital systems
It consists of
• an analog filter called (anti-imaging) filter,
• an analog-to-digital conversion (ADC) unit,
• a digital signal (DS) processor,
• a digital-to-analog conversion (DAC) unit,
• and an analog filter called reconstruction (anti-image)
filter.
12
A/D & D/A Conversion
13
Application Areas of DSP:
EEG signal process
Enhancement-noise filtering
Coding, synthesis, and recognition
Classification
Speech signal processing,
Enhancement-noise filtering
Coding, synthesis, and recognition
Classification
Cardiac signals (ECG)
Sonar and radar signal processing, ,
Biomedical signal processing,
Seismic data processing, etc.
Classification of Signal
is complex valued.
This term is used to emphasize the fact that all past, present. and future
values of the signal are known precisely, without any uncertainty.
Concept Frequency in CT and Discrete signal
Periodicity
Recall if a signal x(t) is periodic, then there exists a T>0 such
that x(t) =x(t+T) If no T>0 can be found, then x(t) is non-
periodic.
Continuous-Time Sinusoidal Signals
25
Analog to Digital Conversion
A/D conversion can be viewed as a three step
process
26
Signals functions of time
Analog to Digital Conversion
A/D conversion can be viewed as a three step
process
28
Analog to Digital Conversion
Sample & Hold (Sampler)
33
Analog to Digital Conversion
Sample & Hold (Sampler)
Figure below shows an analog (continuous-
time) signal (solid line) defined at every point
over the time axis (horizontal line) and
amplitude axis (vertical line).
Hence, the analog signal contains an infinite
number of points.
34
Analog to Digital Conversion
Sample & Hold (Sampler)
Each sample maintains its voltage level
35
Sampling Rate/Sampling Theorem
Determines the highest frequency that you can
represent with a digital signal.
Sampling/Nyquist Theorem:
If the highest frequency contained in an analog signal xa(t) is Fmax. And the signal
is sampled at a rate Fs >= 2Fmax, then xa(t) can be exactly recovered from its
sample values.
The sampling rate, F >=2F is called the Nyquist rate.
Nyquist–Shannon Sampling Theorem
37
ADC: Step1: Sampling Analog
Signal
Sampling rate is number of samples per second.
…..(ii)
= A cos ()
t=nT
T=1/Fs
the general equation of discrete time f=FT
sinusoidal signals we
X(n)=A*cos(2*pi*f*n)
find ,
f=FT
f = ………(iii) [relation]
Relationship between the frequency of analog signal
and the frequency of discrete-time signal
f=FT
f = ………(iii) [relation]
Or equivalently
Thus we find that the frequency F of continuous time sinusoidal signals when
sampled at a rate of must fall in the above range.
We also can find that if the max frequency of discrete time sinusoidal is f then
with a sampling rate
ADC: Step1: Sampling Analog Signal
Since the highest frequency in a discrete-time signal is or .
It with a sampling rate ,
The corresponding highest values of F
Fs>=Fmax*2
FS=Sampling Rate
Fmax=Maximum Frequency
Difference between Continuous and
Discrete time signal
Properties of Discrete time Signals
A discrete-time sinusoidal signal may be expressed as
Proof:
Properties of Discrete time Sinusoidal Signals
B2. Discrete-time sinusoids whose frequencies are separated by an integer
multiple of are identical.
Properties of Discrete time Sinusoidal Signals
50
Nyquist–Shannon Sampling Theorem
Examples
51
Nyquist–Shannon Sampling Theorem
Example: For the following analog signal, find the Nyquist sampling
rate, also determine the digital signal frequency and the digital
signal
52
Nyquist–Shannon Sampling Theorem
53
Nyquist–Shannon Sampling Theorem
Exercise
54
Difference between Continuous and
Discrete time signal
Example:
• In the signal:
• F1=25Hz, F2=150Hz, F3=50Hz
• So, Fmax = 150Hz
• According to sampling theorem
• Fs >= 2Fmax=300 Hz
• So sampling rate is FS >= 2Fmax >= 300Hz.
Oversampling:
looks like …
64
Aliasing
How many hertz can the human eye see?
65
Aliasing
When the minimum sampling rate is not respected,
distortion called aliasing occurs.
66
Aliasing
Figure illustrates sampling a 40 Hz sinusoid
The sampling interval between sample points is
67
Aliasing
Figure illustrates sampling a 90 Hz sinusoid
The sampling interval between sample points is
68
Aliasing
69
Sampling Effect in Time Domain
70
Time & Frequency Domains
• There are two complementary signal descriptions.
• Signals seen as projected onto time or frequency domains.
71
Time & Frequency Domains
72
Sampling Rate
Sampling Rate
Sampling Rate
Sampling Rate
Sampling Rate
Common Sampling Rates
85
Analog to Digital Conversion
4-bit Quantizer
86
Quantization Error
The error caused by representing a continuous-valued
signal (infinite set) by a finite set of discrete-valued
levels.
The 8 zone (or level) codes are therefore: 000, 001, 010, 011, 100,
101, 110, and 111
Quantization Error
Suppose a quantizer operation given by Q(.)
is performed on continuous-valued samples
x[n] is given by Q(x[n]), then the quantization
error is given by
89
Analog to Digital Conversion
Lets consider the signal which is to be quantized.
91
Analog to Digital Conversion
Quantization of unipolar data (maximum error
= full step)
92
Analog to Digital Conversion
Quantization of unipolar data (maximum error
= half step)
93
Analog to Digital Conversion
Example: Analog pressures are recorded using a pressure
transducer as voltages between 0 and 3 V. The signal must be
quantized using a 3-bit digital code. Indicate how the analog
voltages will be covered to digital values.
94
Analog to Digital Conversion
Quantization of bipolar data (maximum error =
half step)
95
Three-bit A/D Conversion
96
Assigning Codes to Zones
Coding
10
3
Summary
10
4