Bài giảng Xử lý tín hiệu số - Chapter 1: Sampling and Reconstruction - Hà Hoàng Kha
Chapter 1
Sampling and Reconstruction
Ha Hoang Kha, Ph.D.
Ho Chi Minh City University of Technology
Email: [email protected]
Content
Sampling
Sampling theorem
Spectrum of sampling signals
Antialiasing prefilter
Ideal prefilter
Practical prefilter
Analog reconstruction
Ideal reconstructor
Practical reconstructor
Ha H. Kha
2
Sampling and Reconstruction
Review of useful equations
Linear system
x(t)
y(t) = x(t)∗h(t)
Linear system
H(f)
Y( f ) = X ( f )H( f )
X ( f )
x(t) = Acos(2π f0t +θ)
Especially,
y(t) = A| H( f0 ) | cos(2π f0t +θ + arg(H( f0 )))
1
FT
Fourier transform:
cos(2π f0t)←⎯→ [δ ( f + f0 ) + δ ( f − f0 )]
2
1
FT
sin(2π f0t)←⎯→ j[δ ( f + f0 ) −δ ( f − f0 )]
2
1
cos(a)cos(b) = [cos(a + b) + cos(a −b)]
Trigonometric formulas:
2
1
sin(a)sin(b) = − [cos(a + b) − cos(a −b)]
2
1
sin(a)cos(b) [sin(a b) sin(a b)]
2
Ha H. Kha
3
Sampling and Reconstruction
1. Introduction
A typical signal processing system includes 3 stages:
The analog signal is digitalized by an A/D converter
The digitalized samples are processed by a digital signal processor.
The digital processor can be programmed to perform signal processing
operations such as filtering, spectrum estimation. Digital signal processor can be
The resulting output samples are converted back into analog by a
D/A converter.
Ha H. Kha
4
Sampling and Reconstruction
2. Analog to digital conversion
Analog to digital (A/D) conversion is a three-step process.
xQ(n)
≡
11010
t=nT
Quantizer
Coder
xQ(n)
x(t)
x(n)
111
110
101
100
010
001
000
n
t
n
Ha H. Kha
5
Sampling and Reconstruction
3. Sampling
Sampling is to convert a continuous time signal into a discrete time
≡x(nT)=x(t=nT), n=….-2, -1, 0, 1, 2, 3……..
T: sampling interval or sampling period (second);
fs=1/T: sampling rate or sampling frequency (samples/second or
Hz)
Ha H. Kha
6
Sampling and Reconstruction
3. Sampling-example 1
The analog signal x(t)=2cos(2πt) with t(s) is sampled at the rate fs=4
Hz. Find the discrete-time signal x(n) ?
Solution:
x(n)≡x(nT)=x(n/fs)=2cos(2πn/fs)=2cos(2πn/4)=2cos(πn/2)
n
0
1
2
3
4
x(n)
2
0
‐2
0
2
Plot the signal
Ha H. Kha
7
Sampling and Reconstruction
3. Sampling-example 2
Consider the two analog sinusoidal signals
7
x1(t) = 2cos(2π t),
8
1
x2(t) = 2cos(2π t); t(s)
8
These signals are sampled at the sampling frequency fs=1 Hz.
Find the discrete-time signals ?
Solution:
x1(n) ≡ x1(nT) = x1(n ) = 2cos(2π n) = 2cos( πn)
fs 8 1
= 2cos((2 − )πn) = 2cos( n)
4
1
π
4
4
1
1 1
x2 (n) ≡ x2 (nT) = x2 (n ) = 2cos(2π n) = 2cos( πn)
fs 8 1
1
4
Observation: x1(n)=x2(n) Æ based on the discrete-time signals, we
cannot tell which of two signals are sampled ? These signals are
called “alias”
Ha H. Kha
8
Sampling and Reconstruction
3. Sampling-example 2
f2=1/8 Hz
f1=7/8 Hz
fs=1 Hz
Fig: Illustration of aliasing
Ha H. Kha
9
Sampling and Reconstruction
3. Sampling-Aliasing of Sinusoids
In general, the sampling of a continuous-time sinusoidal signal
at a sampling rate f =1/T results in a discrete-
0
s
time signal x(n).
k k
s
discrete time signal xk(n).
If fk=f0+kfs, k=0, ±1, ±2, …., then x(n)=xk(n) .
Remarks: We can that the frequencies fk=f0+kfs are indistinguishable
from the frequency f0 after sampling and hence they are aliases of f0
Ha H. Kha
10
Sampling and Reconstruction
4. Sampling Theorem-Sinusoids
Consider the analog signal x(t) = Acos(Ωt) = Acos(2π ft) where Ω is
the frequency (rad/s) of the analog signal, and f=Ω/2π is the
frequency in cycles/s or Hz. The signal is sampled at the three rate
fs=8f, fs=4f, and fs=2f.
Fig: Sinusoid sampled at different rates
fs
samples / sec samples
Note that
=
=
f cycles / sec
cycle
fs
f
samples
cycle
To sample a single sinusoid properly, we must require
≥ 2
Ha H. Kha
11
Sampling and Reconstruction
4. Sampling Theorem
For accurate representation of a signal x(t) by its time samples x(nT),
two conditions must be met:
1) The signal x(t) must be bandlimitted, i.e., its frequency spectrum must
be limited to fmax .
Fig: Typical bandlimited spectrum
2) The sampling rate fs must be chosen at least twice the maximum
frequency fmax.
fs=2fmax is called Nyquist rate; fs/2 is called Nyquist frequency;
[-fs/2, fs/2] is Nyquist interval.
Ha H. Kha
12
Sampling and Reconstruction
4. Sampling Theorem
The values of fmax and fs depend on the application
Application
Biomedical
Speech
fmax
fs
1 KHz
4 KHz
20 KHz
4 MHz
2 KHz
8 KHz
40 KHz
8 MHz
Audio
Video
Ha H. Kha
13
Sampling and Reconstruction
4. Sampling Theorem-Spectrum Replication
∞
∞
ꢀ
x(nT) = x(t) = x(t) δ (t − nT) = x(t)s(t)
s(t) = δ (t − nT)
Let
where
∑
∑
n=−∞
n=−∞
s(t) is periodic, thus, its Fourier series are given by
∞
1
1
1
j2π f nt
n − j2π f nt= =
s
s
n
∫
∫
T
T
T
n=−∞
T
T
∞
1
ej2π f nt
s
s(t) =
Thus,
∑
n=−∞
∞
1
ꢀ
x(t) = x(t)s(t) =
x(t)ej2πnf t
s
which results in
∑
T
ꢀ
n=−∞
∞
ꢀ
1
x(t)
Taking the Fourier transform of
yields
Observation: The spectrum of discrete-time signal is a sum of the
original spectrum of analog signal and its periodic replication at the
interval fs.
Ha H. Kha
14
Sampling and Reconstruction
4. Sampling Theorem-Spectrum Replication
fs/2 ≥ fmax
Fig: Spectrum replication caused by sampling
Fig: Typical badlimited spectrum
fs/2 < fmax
Fig: Aliasing caused by overlapping spectral replicas
Ha H. Kha
15
Sampling and Reconstruction
5. Ideal Analog reconstruction
Fig: Ideal reconstructor as a lowpass filter
An ideal reconstructor acts as a lowpass filter with cutoff frequency
equal to the Nyquist frequency fs/2.
An ideal reconstructor (lowpass filter)
Then
ꢀ
ꢀ
Ha H. Kha
16
Sampling and Reconstruction
5. Analog reconstruction-Example 1
The analog signal x(t)=cos(20πt) is sampled at the sampling
frequency fs=40 Hz.
a) Plot the spectrum of signal x(t) ?
b) Find the discrete time signal x(n) ?
c) Plot the spectrum of signal x(n) ?
reconstructed signal xa(t) ?
Ha H. Kha
17
Sampling and Reconstruction
5. Analog reconstruction-Example 2
The analog signal x(t)=cos(100πt) is sampled at the sampling
frequency fs=40 Hz.
a) Plot the spectrum of signal x(t) ?
b) Find the discrete time signal x(n) ?
c) Plot the spectrum of signal x(n) ?
reconstructed signal xa(t) ?
Ha H. Kha
18
Sampling and Reconstruction
5. Analog reconstruction
Remarks: xa(t) contains only the frequency components that lie in the
Nyquist interval (NI) [-fs//2, fs/2].
sampling at f
x(t), f0 ∈ NI ------------------> x(n) ----------------------> xa(t), fa=f0
ideal reconstructor
sampling at fs
ideal reconstructor
xk(t), fk=f0+kfs------------------> x(n) ----------------------> xa(t), fa=f0
The frequency fa of reconstructed signal xa(t) is obtained by adding
to or substracting from f0 (fk) enough multiples of fs until it lies
ss
Ha H. Kha
19
Sampling and Reconstruction
5. Analog reconstruction-Example 3
The analog signal x(t)=10sin(4πt)+6sin(16πt) is sampled at the rate 20
Hz. Find the reconstructed signal xa(t) ?
Ha H. Kha
20
Sampling and Reconstruction
Tải về để xem bản đầy đủ
Bạn đang xem 20 trang mẫu của tài liệu "Bài giảng Xử lý tín hiệu số - Chapter 1: Sampling and Reconstruction - Hà Hoàng Kha", để tải tài liệu gốc về máy hãy click vào nút Download ở trên
File đính kèm:
bai_giang_xu_ly_tin_hieu_so_chapter_1_sampling_and_reconstru.pdf

