Advanced Digital Signal Processing Lecture 1
Advanced Digital Signal Processing Lecture 1
Advanced Digital Signal Processing Lecture 1
Introduction to DSP
Note two unique features of Digital Signal processing as opposed to plain old
ordinary digital processing:
Signals come from the real world - this intimate connection with the real
world leads to many unique needs such as the need to react in real time and
a need to measure signals and convert them to digital numbers
Signals are discrete - which means the information in between discrete
samples is lost
Digital better than Analog
Analog
- Aging
- Sensitivity to the environment
- Uncertain performance in production units
- Variation in performance of units
- Sensitivity analog traces on PCBs
- Effort to migrate and adopt “canned” solutions
Variable of Signals :
Time/Distance/Temperature/Voltage
One-dimensional Signals : Single variable y=x(t)
Two-dimensional Signals : Two variables
Three-dimensional Signals : Three variables
Classification of Signal
Continuous-time and discrete-time signal
Analog and digital signal (time and amplitude)
(1) Continuous-time signal :
(2) Discrete-time signal : Discrete variableContinuous amplitude
Time-domain discrete signals
(3) Analog Signal: Continuous variableContinuous amplitude
Speech, Television, Time-domain continuous signals
(4) Digital Signal : Discrete variablesDiscrete amplitude
Quantized discrete-time signals
Signal operation include:
(1) Transform, filter, inspection, spectrum analysis;
(2) Modulation and coding;
(3) Analog Signal Processing;
(4) Digital Signal Processing.
Examples of signals of particular interest are:
(1) System
Device or technology of signal processing.
Basic model:
Input: x Output: y
System:
System: hh
10
Three Problems
x y
h
11
Processing of analog signal with digital methods
Versatility:
• Digital systems can be reprogrammed for other applications (at least where
programmable DSP chips are used)
• Digital systems can be ported to different hardware (for example a different DSP chip
or board level product)
Repeatability:
• Digital systems can be easily duplicated
• Digital systems do not depend on strict component tolerances
• Digital system responses do not drift with temperature
Simplicity:
• Some things can be done more easily digitally than with analogue systems
Application Areas
Image Processing Instrumentation/Control Speech/Audio Military
Pattern recognition spectrum analysis speech recognition secure communications
Robotic vision noise reduction speech synthesis radar processing
Image enhancement data compression text to speech sonar processing
Facsimile position and rate digital audio missile guidance
animation control equalization
Where general purpose DSP processors are concerned, most applications deal with
signal frequencies that are in the audio range.
Converting Analogue Signals
Most DSP applications deal with analogue signals.
• The analogue signal has to be converted to digital form
frequency = 1/period
Frequency of a Waveform
• Examples:
frequency = 10 Hz
period = .1 (1/10) seconds
frequency = 100 Hz
period = .01 (1/100) seconds
frequency = 261.6 Hz
period = .0038226 (1/ 261.6) seconds
Waveform Sampling
• To represent waveforms on digital computers, we need to
digitize or sample the waveform.
• Example:
CD: SR=44,100 Hz
Nyquist Frequency = SR/2 = 22,050 Hz
• Example:
SR=22,050 Hz
Nyquist Frequency = SR/2 = 11,025 Hz
Nyquist Theorem and Aliasing
• Example:
• SR = 20,000 Hz
• Nyquist Frequency = 10,000 Hz
• f = 12,000 Hz → f' = 8,000 Hz
• f = 18,000 Hz → f' = 2,000 Hz
• f = 20,000 Hz → f' = 0 Hz
Nyquist Theorem and Aliasing
• Graphical Example 1a:
• SR = 20,000 Hz
• Nyquist Frequency = 10,000 Hz
• f = 2,500 Hz (no aliasing)
Nyquist Theorem and Aliasing
• Graphical Example 1b:
• SR = 20,000 Hz
• Nyquist Frequency = 10,000 Hz
• f = 5,000 Hz (no aliasing)
(left and right figures have same frequency, but have different sampling points)
Nyquist Theorem and Aliasing
• Graphical Example 2:
• SR = 20,000 Hz
• Nyquist Frequency = 10,000 Hz
• f = 10,000 Hz (no aliasing)
Nyquist Theorem and Aliasing
• Graphical Example 2:
• BUT, if sample points fall on zero-crossings the
sound is completely cancelled out
Nyquist Theorem and Aliasing
• Graphical Example 3:
• SR = 20,000 Hz
• Nyquist Frequency = 10,000 Hz
• f = 12,500 Hz, f' = 7,500