Professional Documents
Culture Documents
Analog-to-Digital Conversion
(Digital signal processing)
1/2018
Content
Overview
Sampling method
Quantization
signal. Quantization
3 / 41
I Sampling: gets values of the signal at discrete times. Chapter 2
4 / 41
I Let us illustrate the digitization process. Consider an Chapter 2
Sampling method
Quantization
5 / 41
I Now, sample x(t) at the equidistant points every T Chapter 2
Quantization
6 / 41
x( t) Chapter 2
Overview
t Sampling method
Quantization
x( nT )
7 / 41
I Next, instead of using x(nT ) with time nT , we can Chapter 2
x( nT ) Sampling method
Quantization
8 / 41
I Because samples of x(n) are real-valued, we need to Chapter 2
Quantization
9 / 41
x( n) Chapter 2
Overview
n Sampling method
Quantization
x( n)
1.6
1.2
0.8
0.4
n
0.0
-0.4
-0.8
-1.2
10 / 41
I Then, we round x(n) to get the quantized signal x̃(n). Chapter 2
Quantization
1.6
1.2 Coding and binary
0.8 presentation
0.4
n
0.0
-0.4
-0.8
“./figures/ADC_4”
-1.2
— 2012/6/11 — 18:25 — pag
x q ( n)
1.6
1.2
0.8
0.4
n
0.0
-0.4
-0.8
-1.2
11 / 41
I With eight selected levels of quantization, we can use Chapter 2
“./figures/ADC_4” — 2012/6/11
3-bit binary numbers in order to represent the levels. — 18:25 — pag
x q ( n) Overview
Sampling method
1.6
1.2 Quantization
0.8
Coding and binary
0.4
n presentation
0.0
-0.4
-0.8
“./figures/ADC_5”
-1.2
— 2012/6/11 — 18:25 — pag
x q ( n)
111
110
101
100
n
011
010
001
000
12 / 41
I Therefore, quantized signal x̃(n) is represented in a Chapter 2
“./figures/ADC_5”
binary sequence x = {010101 · · · }. — 2012/6/11 — 18:25 — pag
x q ( n) Overview
Sampling method
111
110 Quantization
101
Coding and binary
100
n presentation
011
010
001
“./figures/ADC_6” — 2012/6/11
000
— 18:25 — page 6 — #1
x( n)
x= 010 101 111 111 110 110 110 111 111 101 010 000 011 110 101 111 011 000 011
13 / 41
I To reduce the quantization error, we can use more Chapter 2
Quantization
14 / 41
Content
Overview
Sampling method
Quantization
16 / 41
Chapter 2
Spectrum of sampling signal
I Let X(Ω) is spectrum of x(t), using the definition of Overview
Quantization
Z ∞
Coding and binary
X (Ω) = x (t) e−jΩt dt. presentation
−∞
17 / 41
I Consider the following signal: Chapter 2
∞
X
∆ (t) = δ (t − nT ) , (1) Overview
Quantization
I δ(t) is Dirac pulse “./figures/ADC_7” — 2012/6/11 — 18:25 — page
Coding 7 —
and binary
presentation
δ( t )
1
t
−3T −2T −T T 2T 3T
18 / 41
I Expand ∆ (t) into Fourier series Chapter 2
∞
X
∆ (t) = Cn ejnΩ0 t . Overview
Quantization
in which Ω0 = 2π/T and Coding and binary
presentation
Z
1
Cn = ∆ (t) e−jnΩ0 t dt.
T T
19 / 41
I We have Chapter 2
Z T
1 2
Cn = ∆ (t) e−jnΩ0 t dt Overview
T − T2 Sampling method
T ∞
" #
Quantization
Z
1 2 X
= δ(t − kT ) e−jnΩ0 t dt Coding and binary
T − T2 presentation
k=−∞
∞ Z T
1 X 2
= δ(t − kT )e−jnΩ0 t dt
T − T
k=−∞ 2
Z T
1 2
= δ (t) e−jnΩ0 t dt
T −T
2
1
=
T
I Hence
∞
1 X jnΩ0 t
∆(t) = e . (2)
T n=−∞
20 / 41
I So, ∆(t) can be represented by two different ways in Chapter 2
n=−∞ Quantization
∞ Coding and binary
1 X
∆(t) = ejnΩ0 t . presentation
T n=−∞
21 / 41
I Next, using ∆(t) to sample the signal x(t) to obtain the Chapter 2
sampled signal
Overview
x∆ (t) = x(t)∆(t). Sampling method
Quantization
This signal is considered as sampling x(t) with period T
Coding and binary
by the Dirac pulses. presentation
∞
X
x∆ (t) = x(t)δ (t − nT )
n=−∞
X∞
= x(nT )δ (t − nT ) , (3)
n=−∞
∞
1 X
x∆ (t) = ejnΩ0 t x(t). (4)
T n=−∞
22 / 41
I Taking the Fourier transform of x∆ (t) to obtain two Chapter 2
Sampling method
∞
" #
Z ∞ X Quantization
X∆ (Ω) = x(nT )δ(t − nT ) e−jΩt dt Coding and binary
−∞ n=−∞ presentation
∞
X
= x(nT )e−jnΩT (5)
n=−∞
∞
" #
Z ∞
1 X jnΩ0 t
X∆ (Ω) = e x(t) e−jΩt dt
−∞ T n=−∞
∞ Z ∞
1 X
= x(t)e−j(Ω−nΩ0 )t dt
T n=−∞ −∞
∞
1 X
= X(Ω − nΩ0 ) (6)
T n=−∞
23 / 41
I Two expressions (5) và (6) show that the spectrum Chapter 2
24 / 41
Chapter 2
Signal reconstruction
I Equation (6) shows that from X∆ (Ω) we can derive Overview
Ω
−W
“./figures/ADC_10” W 2012/6/11
— Ω0 — 18:29 — page 9 — #1
X (Ω)
Ω
−W W
25 / 41
I To satisfy non-aliasing, there are two conditions: Chapter 2
26 / 41
I If true, from spectrum X∆ (Ω), we only use a ideal Chapter 2
X ∆ (Ω ) H r (Ω) X (Ω ) Overview
Sampling method
I Hr (Ω) is given by Quantization
27 / 41
I In the time domain, we have Chapter 2
Sampling method
I hr (t) is the impulse response of the filter Hr (Ω) and is
Quantization
obtained as the inverse Fourier transform of Hr (Ω)
Coding and binary
presentation
hr (t) = 2πB0 sinc(B0 t),
29 / 41
“./figures/ADC_12”
I Using signal p(t) to sample — 2012/6/11
x(t) in the circuit as below:— 18:41Chapter
— page2
x( t) x p ( t)
Overview
Sampling method
Quantization
Therefore
30 / 41
I Fourier series expansion of p(t): Chapter 2
∞
X
p(t) = Cn ejnω0 t , Overview
Quantization
in which Coding and binary
presentation
Z T0
1 2 T0 T0
Cn = ejnω0 t dt = sinc n .
T −
T0 T T
2
31 / 41
I Take the Fourier transform of both sides of Chapter 2
equation (11):
∞ Overview
X
Xp (Ω) = Cn X (Ω − nΩ0 ) . (12) Sampling method
Quantization
n=−∞
Coding and binary
presentation
I This result shows that spectrum X(Ω) can be derived
from spectrum Xp (Ω) if two sampling conditions are
satisfy.
I In practice, we choose T0 = T for simplicity; in this
case, this method is called sample-and-hold.
32 / 41
Content
Overview
Sampling method
Quantization
34 / 41
I The levels of the same quantum device may be different Chapter 2
35 / 41
“./figures/ADC_13” — 2012/6/11 — 18:39Chapter
I Tail cutting approximation — page2
Q ( x)
Overview
3q Sampling method
Quantization
2q Coding and binary
presentation
−3 q −2 q −q x
q 2q 3q
−q
−2 q
−3 q
36 / 41
“./figures/ADC_14” — 2012/6/11 — 18:39Chapter
I Rounding approximation — page2
Q ( x)
Overview
3q Sampling method
Quantization
2q Coding and binary
presentation
−3 q −2 q −q x
q 2q 3q
−q
−2 q
−3 q
37 / 41
I Quantization approximate a signal with errors Chapter 2
Sampling method
Error eq (n) has absolute value smaller than q/2, in
Quantization
which q is quantum level.
Coding and binary
I We see that, quantization and sampling can exchange presentation
38 / 41
Content
Overview
Sampling method
Quantization
40 / 41
I The over-floating phenomenon does not appear in Chapter 2
Sampling method
Quantization
41 / 41