Semeste1 DSP Lec1
Semeste1 DSP Lec1
Academic Responsible
HAYDER S. RASHID
2015/2016
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
The concept of DSP is illustrated by the simplified block diagram in Fig. (1.1), which
consists of an analog filter, an analog-to-digital conversion (ADC) unit, a digital signal (DS)
processor, a digital-to-analog conversion (DAC) unit, and a reconstruction (anti-image) filter.
As shown in the diagram, the analog input signal, which is continuous in time and
amplitude, is generally encountered in our real life. Examples of such analog signals include
current, voltage, temperature, pressure, and light intensity.
Usually a transducer (sensor) is used to convert the non-electrical signal to the analog
electrical signal (voltage). This analog signal is fed to an analog filter, which is applied to limit
the frequency range of analog signals prior to the sampling process. The purpose of filtering is to
significantly attenuate aliasing distortion. The band-limited signal at the output of the analog
filter is then sampled and converted via the ADC unit into the digital signal, which is discrete
both in time and in amplitude.
The DS processor then accepts the digital signal and processes the digital data according
to DSP rules such as lowpass, highpass, and bandpass digital filtering, or other algorithms for
different applications. Notice that the DS processor unit is a special type of digital computer and
Page 1 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
With the DS processor and corresponding software, a processed digital output signal is
generated. This signal behaves in a manner according to the specific algorithm used.
The DAC unit converts the processed digital signal to an analog output signal. The signal
is continuous in time and discrete in amplitude (usually a sample-and-hold signal). The final
block in Fig (1.1) is designated as a function to smooth the DAC output voltage levels back to
the analog signal via a reconstruction (anti-image) filter for real-world applications.
What is a signal?
The concept of signal refers to the time, space or other types of variations in the physical
state of an object, phenomenon, entity etc. The quantification of this state is used to represent,
store or transmit a message. The course is not about the message but about the properties of the
signal.
Page 2 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
Page 3 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
In the figure above you can see a continuous and a discrete sine wave described by the following
equations, respectively.
Continuous case: x(t) = A cos(ω0t +φ)
Discrete case: x[n] = A cos(θ0n +ψ)
Fundamental classes of signals
1- Deterministic and random signals
If the value of a signal at some specific time is determined exactly by its model then we
have a deterministic signal.
If the value of the signal cannot be determined but only some statistical properties of it,
e.g., probability of occurrence of a certain value at some specific time, then we have a
random or stochastic signal.
Page 4 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
For a continuous signal, if we can find a number T0 such that x(t +T0) = x(t) for all t, then
the signal is periodic. In the case of a discrete signal we have x[n + N0] = x[n] for all n.
If there are no such numbers T0 or N0 the signal is non-periodic.
Page 5 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
For a continuous signal, if x(-t) = x(t) for all t, then the signal is even. In the case of a
discrete signal we have x[-n] = x[n] for all n.
For a continuous signal, if x(t) = -x(-t) for all t, then the signal is odd. In the case of a
discrete signal we have x[n] = -x[-n] for all n . An odd signal is 0 at t = 0 or n = 0, since
x(0) = -x(0) ⇒ x(0) = 0 .
Any signal can be broken into a sum of two signals, one of which is even and one of which is
odd. This is because
If x(t) = 0, for t < t0 or for discrete signals x[n] = 0, for n < n0 then we have causal signals. The
starting point t0 or n0 is very often taken to be the origin.
Page 6 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
We will use abroad definition of power and energy that applies to any signal x(t) or x[n]
*Signal Energy
𝑡1
E = ∫𝑡0 |𝑥(𝑡)|2 𝑑𝑡 and in discrete time E = ∑𝑛1
𝑛=𝑛0|𝑥(𝑡)|
2
*Signal Power
1 𝑡1 1
P = 𝑡1−𝑡0 ∫𝑡0 |𝑥(𝑡)|2 𝑑𝑡 and in discrete time P = 𝑛1−𝑛0+1 ∑𝑛1
𝑛=𝑛0|𝑥(𝑡)|
2
We will encounter many types of signals; some of them have infinite average power, energy or
both. There are a few rules that can help to determine whether a signal is power or energy signal:
Page 7 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
0 𝑡<0
This is defined as 𝑢(𝑡) = {
1 𝑡≥0
In discrete time the equivalent function is defined as
0 𝑛<0
𝑢[𝑛] = {
1 𝑛≥0
The unit step is used for extracting part of another signal. For example,
−𝑡
𝑥(𝑡) = {𝑒 𝑡 ≥ 0
0 𝑡<0
Can be written as x(t) = u(t) 𝑒 −𝑡
This is a signal that is everywhere equal to zero except at the origin. This is defined as
0 𝑡≠0
𝛿(𝑡) = {
+∞ 𝑡 = 0
It is conveniently defined as assigning the value x(τ) to the signal x(t) at the instant t =τ through
the integral
Page 8 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
+∞ +∞
3- Unit Ramp
𝑟(𝑡) = ∫ 𝑢(𝜏)𝑑𝜏
−∞
Page 9 of 10
October 15
H S Rashid (Lecture1) DSP Continuous & Discrete Time Signals
Academic Year 2015/2016
4- Exponential Signal
1- Time shift: Starting from the signal x(t) in continuous time, time shift refers to the
operation that gives us either the signal x(t – t0), t0 > 0 that is a delayed version of x(t) or
the signal x(t + t0) that is an advanced version of x(t) . For discrete time signals we would
have x[n], x[n – n0], x [n + n0] respectively.
2- Time reversal: Starting from the signal x(t) in continuous time, time reversal refers to
the operation that gives us the signal x(-t), that is a reflection of x(t) about t = 0. For
discrete time signals we would have x[n] and x[-n] respectively.
3- Time scaling: Starting from the signal x(t) in continuous time, time scaling refers to the
operation that gives us the signal x(αt) that is
Page 10 of 10
October 15