Professional Documents
Culture Documents
DSP Chapter One (2)
DSP Chapter One (2)
DSP Chapter One (2)
Lecture 1:
Signal
❑ Any physical quantity that varies with time, space or any other independent variables.
❑ a function of independent variable that carries information
❑ Eg. ECG, EEG, speech, image, voltages/currents in a circuit etc.
System
❑ An entity that processes one or more input signals in order to produce one or more output
signals
Applications of DSP
❑ Telecommunication (cellphone, fax, modems, echo cancellations, etc)
❑ Consumer Electronics (flat screen TVs, television sets, MP3 players, video recorders, DVD
players, radio receivers, etc.)
❑ Image Processing (Compression, enhancement, animation, etc)
❑ Instrumentation and Control (function generator, process control, digital filter, etc)
❑ Military Applications (radar, intelligence, secure communications, etc)
❑ Speech Processing (speech recognition, speech to text conversion, …)
❑ Seismology (geophysical exploration such as oil, gas, nuclear and earth quake)
❑ Medicine (medical diagnostic instrumentation such as computerized tomography (CT), x-
ray scanning, Magnetic resonance imaging (MRI), Electroencephalography (EEG),
electrocardiography (ECG), etc)
Analog to Digital Conversion
Most signals of practical interest, such as speech, biomedical signals, seismic signal, radar signals,
solar signals and various communication signals such as audio and video signals are analog. To
process analog signals by digital means, it’s first necessary to convert them to digital form this
process is called (A-to-D) conversion. and the corresponding device are called analog-to-digital
converter or ADC
1. Sampling:
The process of converting a continuous time signal into a discrete time signal obtained by
taking samples of the continuous time signal at discrete time instants. Thus, if 𝑋𝑎 (𝑡) is the
input to the sampler, the output is 𝑋𝑎 (𝑛𝑇) = 𝑥(𝑛), where T is called sampling interval
(sampling period) and 𝑥(𝑛) is the discrete time signal obtained by taking samples of the analog
signal 𝑋𝑎 (𝑡) every T second.
Sampling Theorem: A finite energy function x(t) can be completely reconstructed from its
sampled value x(nTs), If a signal is sampled at a rate greater than or equal to twice the max
frequency component of the waveform, then the waveform can be exactly reconstructed from the
samples without any distortion”.
𝒇𝒔 ≥ 𝟐𝒇𝒎𝒂𝒙
➢ If the sample rate is not greater than the Nyquist rate, a problem called aliasing results,
which can cause severe distortion of signal.
Quantization: The process of mapping the sampled values of the amplitude by a finite set of
levels, which means converting a discrete time continuous valued signal into a discrete time
discrete valued signal. the value of each signal sample is represented by a value selected from
a finite set of possible values. These values are referred to as quantization levels.
Quantization error: the difference between the unquantized sample 𝑥[𝑛] and the quantized
output 𝑥𝑄 [𝑛]
➢ The spacing between the two adjacent representation levels is called step-size.
𝑚𝑎𝑥−𝑚𝑖𝑛
∆= L is the number of quantization levels
𝐿
𝑋𝑎 (𝑡) = 3𝑐𝑜𝑠100𝛱𝑡
𝑥(𝑛) = 𝑥𝑎 (𝑛𝑇)
Where T is the sampling period (i.e., the time between successive samples)
1 𝑓𝑜𝑟 𝑛 = 0
𝛿(𝑛) = {
0 𝑓𝑜𝑟 𝑛 ≠ 0
Shifted Unit sample
1 𝑓𝑜𝑟 𝑛 = 𝑘
𝛿(𝑛 − 𝑘) = {
0 𝑓𝑜𝑟 𝑛 ≠ 𝑘
2. Unit step, denoted by 𝑢(𝑛)
1 𝑓𝑜𝑟 𝑛 ≥ 0
𝑢(𝑛) = {
0 𝑓𝑜𝑟 𝑛 < 0
𝑛 𝑓𝑜𝑟 𝑛 ≥ 0
𝑢𝑟 (𝑛) = {
0 𝑓𝑜𝑟 𝑛 < 0
= 𝑟 𝑛 (𝑐𝑜𝑠𝜃𝑛 + 𝑗𝑠𝑖𝑛𝜃𝑛)
Since 𝑥(𝑛) is complex valued, it can be represented graphically by plotting the real
and imaginary part separately as a function of n
𝑥𝑅 (𝑛) = 𝑟 𝑛 𝑐𝑜𝑠𝜃𝑛, and 𝑥𝐼 (𝑛) = 𝑟 𝑛 𝑠𝑖𝑛𝜃𝑛
The manipulation of signals are generally compositions of a few basic signal transformations.
a discrete time system is a device or algorithm that operate on a discrete time signal
2. Shifting: shift ℎ(−𝑘) by 𝑛𝑜 to the right (left) if 𝑛𝑜 is positive (negative) to obtain ℎ(𝑛𝑜 −
𝑘)
ℎ(−𝑘) shift ℎ(𝑛𝑜 − k)
3. Multiplication: multiply 𝑥(𝑘) by ℎ(𝑛𝑜 − k) to obtain the product sequence
Multiply 𝑥(𝑘)ℎ(𝑛𝑜 − k)
4. Summation: sum all the value of the product sequence to obtain the value of the output at
time 𝑛 = 𝑛𝑜
Sum ∑∞
𝑘=−∞ 𝑥(𝑘)ℎ(𝑛𝑜 − k)
From a systems point of view, this property states that the system output is the same
when we interchange the role of 𝑥(𝑛) and ℎ(𝑛)
b) Associative:
[𝑥(𝑛) ∗ ℎ1 (𝑛)] ∗ ℎ2 (𝑛) = 𝑥(𝑛) ∗ [ℎ1 (𝑛) ∗ ℎ2 (𝑛)]
From a systems point of view, this property states that if two systems with unit sample
responses ℎ1 (𝑛) and ℎ2 (𝑛) are connected in cascade, an equivalent system is one that
has a unit sample response equal to the convolution of ℎ1 (𝑛) and ℎ2 (𝑛)
ℎ𝑒𝑞 (𝑛) = ℎ1 (𝑛) ∗ ℎ2 (𝑛)
c) Distributive:
𝑥(𝑛) ∗ [ℎ1 (𝑛) + ℎ2 (𝑛)] = 𝑥(𝑛) ∗ ℎ1 (𝑛) + 𝑥(𝑛) ∗ ℎ2 (𝑛)
From a systems point of view, this property states that if two systems with unit sample
responses ℎ1 (𝑛) and ℎ2 (𝑛) are connected in parallel, an equivalent system is one that
has a unit sample response equal to the sum of ℎ1 (𝑛) and ℎ2 (𝑛)
ℎ𝑒𝑞 (𝑛) = ℎ1 (𝑛) ∗ ℎ2 (𝑛)
Examples
1. compute the convolution of 𝑥[𝑛] = {1,2,3} 𝑎𝑛𝑑 ℎ[𝑛] = {1,1}
2. The impulse response of LTI system is
ℎ(𝑛) = {1, 2, 1, −1}
4. Determine the impulse response for the cascade of the two LTI system having impulse
responses
1 1
ℎ1 (𝑛) = ( )𝑛 𝑢(𝑛) 𝑎𝑛𝑑 ℎ2 (𝑛) = ( )𝑛 𝑢(𝑛)
2 4