Chapter 1
Chapter 1
DIGITAL SIGNAL
PROCESSING
References:
2. John G.Proakis, Dimitris
G.Manolakis, “Digital Signal
Processing: Principles, Algorithms
and Application”, Prentice Hall
1996, Upper Saddle River, New
Jersey 07458, ISBN-0133737624.
4. Lecture notes
Digital Signal Processing
Contents:
1. Sampling, Quantization and
Reconstruction
2. D/A and A/D converters
3. Discrete-time systems
4. Finite-impulse response and
convolution
5. Z-transform
Chapter 1:
Sampling, Quantization and Reconstruction
Introduction
Overview of Analog signal
Analog to digital conversion
Digital to analog conversion
1.1. Introduction
or
Digital Digital
input output
signal signal
Flexibility in configuring
Accuracy requirements
The easy storage
Ability to implement sophisticated signal
processing algorithms
The low cost
1.2. Overview of Analog
signal
y(t)
x(t)
Linear system h(t) output
input
* If input is a sinusoid
H(Ω) = |H(Ω)|.ejargH(Ω)
1.2. Overview of Analog
signal
The function of the Linear filter:
In time-domain:
x( t ) = e j Ωt
⇒ y( t ) = H ( Ω ) e j Ωt
= H ( Ω) e jΩt + j arg H ( Ω )
If x( t ) = A1 .e jΩ1t
+ A2 .e jΩ 2 t
+ ... + An .e jΩ n t
AnH(Ωn)
Ω Ω
Ω1 Ω2 Ωn Ω1 Ω2 Ωn
Y ( Ω ) = H ( Ω ). X ( Ω ) = H ( Ω ).[ 2πA1δ ( Ω − Ω1 ) + 2πA2δ ( Ω − Ω 2 ) + ... + 2πAnδ ( Ω − Ω n ) ]
Y ( Ω ) = 2πA1 H ( Ω1 )δ ( Ω − Ω1 ) + 2πA2 H ( Ω 2 )δ ( Ω − Ω 2 ) + ... + 2πAn H ( Ω n )δ ( Ω − Ω n )
1.3. Analog to digital
conversion
A/D
Converter
x x(nT
(t) )
Analog Sample
signal d signal
x(t) x(nT)
t t
T
T: sampling period
fs = 1/T : the sampling rate
1.3.1. Sampling process
n
t = nT =
fs
x(t) → x(nT)
1.3.2. The sampling
Theorem
Example:
Consider the analog signal:
xa(t) = 3Cos50πt + 100Sin300πt – Cos100πt
What is the Nyquist rate for this signal?
H( f )
= 10 − A / 20
H ( f s / 2)
xample:
onsider the analog signal:
a(t) = 3Cos2000πt + 5Sin6000πt + 10Cos12000π
Ideal re-
constructor
x(t) x(nT) x(t)
Ideal
sampler
Analog Analog
-fs/2 fs/2
signal signal
Rate fs
1.3.2. The sampling
Theorem
Example:
Consider the signal:
x(t) = 4 + 3Cosπt + 2Cos2πt + Cos3πt t[ms]
a. Find fs so that there is no alias.
b. Supposing that x(t) is sampled with fs equal a
half of Nyquist rate, find xa(t) which is alias of x(t
1.3.2. The sampling
Theorem
onsider the following sound wave, where t is in millisecond
x(t) = Sin(20πt) + Sin(30πt) + Sin(80πt).
his is pre-filtered by an analog anti-aliasing pre-filter H(f)
nd then sampled at frequency rate fs = 40KHz. The resultin
amples are immediately reconstructed using an ideal
e-constructor. Determine the output ya(t) of the re-constru
the following cases and compare it with the original x(t).
1. When there is no pre-filter (H(f) = 1).
2. When H(f) is an ideal pre-filter with cut off of
20KHz.
3. When H(f) is a practical pre-filter that has a flat
pass-band up to 20KHz and attenuates at a rate
of 48dB/octave beyond 20KHz. Ignore the effects
1.3.3. Quantization
xq(n) = Q[x(n)]
∆ ∆
− ≤ eq ( n ) ≤
2 2
1.3.3. Quantization
2τ −τ τ0
Tp
1 A2
Px =
Tp ∫0 ( ACosΩ o t )dt = 2
1.3.3. Quantization
2 ∆
R
20 log10 = 20 log10 ( 2b ) = b.20 log10 2 = 6.b
∆
⇒ 2b ≥ L or b ≥ log2L.
1.4. Digital to analog
conversion