Digital Signal Processing: Lecture 3 - 4
Digital Signal Processing: Lecture 3 - 4
Digital Signal Processing: Lecture 3 - 4
Lecture 3 – 4
1
Analog to Digital Conversion
To process analog signals by digital means, it is necessary
to convert them into digital form, that is to convert them
to a sequence of no: having finite precision. This process is
called A/D conversion.
• A/D conversion can be viewed as a three step process
- quantization levels =
N-bit binary number
3
3. Coding: In the coding process, each discrete value is
represented by a b-bit binary sequence.
x(t) 0101...
Sampler Quantizer Coder
A/D Converter
4
Sampling of Analog Signals
Uniform Sampling:
1 1
0.8 0.8
0.6 0.6
sampled signal
analog signal
0.4 0.4
0.2 0.2
0 0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.8 -0.8
-1 -1
0 2 4 6 0 2 4 6 5
t n
Uniform sampling
• Uniform sampling is the most widely used sampling scheme.
or
(6)
Fs = 2 Fmax
Sampling Theorem:
If x(t) is bandlimited with no components of frequencies greater
than Fmax Hz, then it is completely specified by samples taken at
the uniform rate Fs > 2Fmax Hz.
The minimum sampling rate or minimum sampling frequency,
Fs = 2Fmax, is referred to as the Nyquist Rate or Nyquist
Frequency. The corresponding time interval is called the Nyquist
8
Sampling Theorem (cont.)
• Signal sampling at a rate less than the Nyquist rate is
referred to as undersampling.
• Signal sampling at a rate greater than the Nyquist rate is
known as the oversampling.
Example 1:
The following analogue signals are sampled at a sampling
frequency of 40 Hz. Find the corresponding discrete time
Signals.
(i) x(t) = cos2(10)t (ii) y(t) = cos2(50)t
Solution:
(i) x[n] cos 2 40 n cos 2 n
10
(ii) 50 5
x[n] cos 2 n cos n cos n
40 2 2
Note: The frequency F2 = 50 Hz is an alias of F1 = 10 Hz. All of the
9
sinusoids cos2(F1 + 40k)t, k = 1,2,3,… are aliases.
Example 2
Consider the analog signal
x(t) = 3cos100t
(a) Determine the minimum required sampling rate to
avoid aliasing.
(b) Suppose that the signal is sampled at the rate Fs =
200 Hz. What is the discrete time signal obtained
after sampling?
Solution:
(c) The frequency of the analog signal is F = 50 Hz.
Hence the minimum sampling rate to avoid aliasing
is 100Hz.
100
(b) x[n] 3 cos n 3 cos n
200 2
10
Example 3
Consider the analog signal
x(t) = 3cos50t + 10sin300t - cos100t
What is the Nyquist rate for this signal.
Solution:
The frequencies present in the signal above are
F1 = 25 Hz, F2 = 150 Hz F3 = 50 Hz.
Thus Fmax = 150 Hz.
\ Nyquist rate = 2.Fmax = 300 Hz.
Note: It should be observed that the signal component
10sin300t, sampled at 300 Hz results in the samples
10sinn, which are identically zero, hence we miss the signal
component completely.
What should we do to avoid this situation????
11
Tutorial 3
Q1: Find the minimum sampling rate that can be used to obtain samples
that completely specify the signals:
(a) x(t) = 10cos(20t) – 5cos(100t) + 20cos(400t)
(b) y(t) = 2cos(20t) + 4sin(20t - /4) + 5cos(8t)
12
Discrete time signals
• A discrete time signal x(n) is a function of an
independent variable that is an integer. (it is set
of numbers). It is graphically represented as:
2
1.5
0.5
-0.5
-1
-4 -3 -2 -1 0 1 2 3 4 5
• 1- functional representation
14
•• 2-
Tabular representation
• 3- Sequence representation
• An infinite duration sequence with time origin (n=0) is
indicated as: x(n) = {…,0,0,1,4,1,0,0,…}
15
Some Elementary Discrete Time signals
• These are basic signals that appear and play important role
in Discrete time signals and systems.
• Sinusoid is an important elementary signal that serves as a
basic building block in more complex signals. However there
are other signals which are important in our treatment of
signal processing.
• These D.T signals are used as a basic building block to
describe more complex signals.
16
In words, the unit sample sequence is a signal that is
zero everywhere, except at t = 0.
17
Some Elementary Discrete Time signals
• Unit step signal
It is defined as
1, n0
u[n ]
0 n0
2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
00 1 2 3 4 5 6 7
18
Some Elementary Discrete Time signals
• Unit Ramp signal
It is defined as
n, n 0
r[n]
0 n 0
6
5
4
3
2
1
00 1 2 3 4 5 6 19
Some Elementary Discrete Time signals
• Exponential Signal
The exponential signal is a sequence of the form
x[n] = an, for all n
If the parameter a is real, then x[n] is a real signal.
The following figure illustrates x[n] for various
values of a.
0<a<1 a>1
-1<a<0 a<-1
20
Some Elementary Discrete Time signals
• Exponential Signal (cont)
when the parameter a is complex valued, it can be expressed
as
j
a re
where r and are now the parameters. Hence we may
express x[n] as
x[n] r n e nj r n cos n j sin n
Since x[n] is now complex valued, it can be represented
graphically by plotting the real part
x R [n] r cos n
n
-0.5
0 10 20 30 40 50 60
1
xI[n] = (0.9)nsin(n/10)
0.5
-0.5
0 10 20 30 40 50 60
22
Exponential Signal (cont.)
Alternatively, the signal x[n] may be graphically
represented by the amplitude or magnitude function
|x[n]| = rn
and the phase function
[n] = n
The following figure illustrates |x[n| and [n] for r =
0.9 and = /10.
|x[n]|
0- 0 5 10
4
[n]
0
-2- 0 5 10 23
n
Discrete Time Systems
25
• Solution:
(a) In this case the output is exactly the same as the input
signal. Such a system is known as the identity System.
(b) y[n] = [……,3, 2, 1, 0, 1, 2, 3,……]
26
Classification of Discrete Time Systems
• Static versus Dynamic Systems
29
Tutorial 4
Q4: Determine whether the following
systems are time invariant or time
variant.
(a) y[n] = y[n-1] + 2x[n] – 3x[n-1] + 2x[n-2]
(b) y[n] – (y[n-2])/n = 2x[n]
30
Linear versus Non-linear
Systems
A system H is linear if and only if
H[a1x1[n] + a2x2[n]] = a1H[x1[n]] + a2H[x2[n]]
for any arbitrary input sequences x1[n] and x2[n], and any
arbitrary constants a1 and a2.
a1
x1[n]
y1[n]
a2 + H
x2[n]
a1
x1[n] H
y2[n]
+
a2
x2[n] H
33
Causal versus Noncausal Systems
A system is said to be causal if the output of the system at
any time n [i.e. y[n]) depends only on present and past
inputs but does not depend on future inputs.
34
Stable versus Nonstable Systems
35