Chuong 1 Introduction
Chuong 1 Introduction
R I N
TH
s A N D
D E V I
C E S
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.1: Signals, systems, and signal processing
Analog Analog
A/D Analog A/D
Input converter signal converter output
signal processor signal
Digital Digital
input output
signal signal
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.1 : Basic Elements of a Digital Signal
Processing System
- The signal
n = 0, ±1, ±2, … provides an example of a
discrete-time signal.
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.2.2 Continuous-Time Versus Discrete-Time Signal
- For example :
X(n) = 0.8 n , if n ≥ 0 (1.2.1)
0, otherwise
is a discrete-time signal which is represented graphically
as
X (n)
1
-1 0 1 2 3 4 5 6 7 n
Figure 1.6
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.2.3 Continuous-Valued versus Discrete-Valued Signals
- By selecting values of as analog signal at
discrete-time instants. This process is called
sampling.
X (n)
-1 0 1 2 3 4 5 6 7 8 n
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.2.3 Continuous-Valued versus Discrete-Valued Signals
Xa (t) = A cos(2ΠFt+ θ)
Tp =1/F
-A
Acos θ
t
0
0 n
-A
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.3.2 Discrete-time Sinusoidal Signals
- The discrete-time sinusoid are characterized by the
following properties:
B1. A discrete-time sinusoid is periodic only if its
frequency f is a rational number.
x(n + N) = x(n) for all n (1.3.10)
the smallest value of N is a periodic, is called the
fundamental period .
cos[2Πf0(N + n) + θ] = cos(2Πf0n + θ)
This relation is true if and only If there exists an
integer k such that 2Πf0N = 2kΠ
or, equivalently f0 = k/N ( 1.3.11)
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.3.2 Discrete-time Sinusoidal Signals
X (n) ω0 =
ω =0Π/8 X (n)
0 ω0 = Π/4
l
l
n n
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.3.2 Discrete-time Sinusoidal Signals
X (n) ω0 = Π/2 X (n) ω0 = Π
l l
n n
Continuous-time exponentials
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.3.2 Discrete-time Sinusoidal Signals
- Discrete-time exponentials
X(n) 01011….
Xa(t)
Xq(n)
Sampler
Quan,zer
Coder
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.1 Sampling of Analog Signals
Figure 1.16: Periodic sampling of an analog signal
Sampler
x(n) = xa(nT)
0 t 0 123456789 n
T … 5T … 9T … T = nT
CuuDuongThanCong.com ©2013,
https://fb.com/tailieudientucntt CE Department
1.4.1 Sampling of Analog Signals
- The frequency of the continuous-time sinusoid
when sampled at a rate Fs = 1/T must fall in the
range.
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.1 Sampling of Analog Signals
In general, the sampling of a continuous-time
sinusoidal signal
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.1 Sampling of Analog Signals
Which is identical to the discrete-time signal in
(1.4.15) obtained by sampling (1.4.14).
Thus an infinite number of continuous-time
sinusoids is represented by sampling the same
discrete-time signal.
We can say that the frequencies
Fk = F0 + k Fs, -∞ < k < ∞ (k integer)
are indistinguishable from the frequency F0
after sampling and hence they are aliases of F0.
To be illustrated in Fig.1.17.
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.1 Sampling of Analog Signals
Figure 1.17 Relationship between the continuous and
discrete-time frequency variables in the case of periodic
sampling
ƒ ω
π
½
F
0
-FS -FS /2 FS /2 FS
-½ -π
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.2 The Sampling Theorem
- Given any analog signal, can be represented as a sum
of sinusoids of different amplitudes, frequencies, and
phases, that is,
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.2 The Sampling Theorem
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013 CE Department
1.4.2 The Sampling Theorem
it becomes .
Xq (n) =Q [x(n)]
Xq(n)- sequence of quantized samples at the
output of quantizer.
eq(n) = Xq(n) – X(n) (1.4.25)
eq(n)- quantization error.
For example:
with Fs = 1Hz
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.3 Quantization of Continuous-Amplitude Signals
0.4
0.2
0 1 2 3 4 5 6 7 8 n
T
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.3 Quantization of Continuous-Amplitude Signals
Xq
(t)
=
0.9
t
Xq
(n) Levels
of
1.0 quan2za2on
0.9
0.8
T
=
1sec
0.7
Quan2za2on
Range
of
the
0.6 step
quan2za2on 0.5
0.4
0.3
0.2
0.1
0 1 2 3 4 5 6 7 8 n
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.3 Quantization of Continuous-Amplitude Signals
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.3 Quantization of Continuous-Amplitude Signals
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013 CE Department
1.4.4 Quantization of Sinusoidal Signals
Figure 1.21: Sampling and quantization of a sinusoidal signal
Amplitude
Time
Discre2za2on
Discre2za2on
Quan2za2on
Original
Analog
Signal
Level
4
Xa(t)
3
Amplitude
Unquan2zed
Samples
2
Quan2za2on
Xa
(t)
Quan2zed
Output
of
Zero-‐Order
Step
0 Samples
Hold
D/A
Converter
Xq
(nt) Xq
(t)
-‐
-‐
2
-‐3
-‐4
0 T 2T 3T 4T 5T 6T 7T 8T 9T t
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013 CE Department
1.4.4 Quantization of Sinusoidal Signals
Figure 1.22 The quantization error eq(t) = xa(t) – xq(t)
eq
(t)
Δ/2
Δ
Δ/2 -‐τ
0 τ t
-Δ/2
-‐τ 0 τ t
- The mean-square error power Pq
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.4 Quantization of Sinusoidal Signals
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.5 Coding of quantized samples
If we have L quantization levels, then
2b ≥ L or b ≥ log2L ,
with a word length of b bit.
Original
Staircase
signal Approxima,on
Amplitude
2T 4T 6T 8T
Time
CuuDuongThanCong.com https://fb.com/tailieudientucntt
©2013, CE Department
1.4.6 Digital-to Analog conversion
Figure 1.23: Linear point connector (with T-second delay).
Original signal
0 T 2T 3T 4T 5T 6T 7T t