Professional Documents
Culture Documents
Sampling of Continuous-Time Sig Nals
Sampling of Continuous-Time Sig Nals
Sampling of Continuous-Time Sig Nals
1. Continuous-to-Discrete-Time
(C/D) Converter
T : sampling period
1 : sampling frequency
fs
T
2/85
2. Mathematically
X(n)
xs (t ) xc (t ) s(t ) xc (t ) (t nT )
n
x (t ) (t nT )
X s ( j ) X c ( j ) S ( j )
aside : S ( j)
jt
s
(
t
)
e
dt
4/85
s(t )
(t nT )
s(t )
j 2kt / T
c
e
k
k
T
2
T
2
1
1
1
j 2kt / T
j 2kt / T
ck s(t )e
dt (t mT )e
dt
T T
T m T
T
2
5/85
1 j 2kt / T
s(t ) e
k T
Then,
1 j 2kt / T jt
1
j ( 2k / T ) t
S ( j ) e
e
dt
e
dt
T
T k
k
1
( 2k / T )
T k
k s s 2 / T
6/85
X s ( j ) X c ( j ) S ( j )
FT of
sampled
signal
1
X c ( j kj s )
T k
Infinite sum of FT of
original signal
7/85
Note:
X s ( j )
X (e jw )
Frequency scaling by w T
(normalization)
( s is normalized to w 2 )
From
xs (t )
Time normalization
8/85
axis is normalized by T
Reconstruction
filter
sin( t / T )
hr (t )
t / T
xr (t )
x(nT )h (t nT )
sin[ (t nT ) / T ]
x(nT )
(t nT ) / T
n
10/85
X r ( j ) H r ( j ) X s ( j )
12/85
2
2 N
T
Nyquist frequency
; the frequency to prevent aliasing
To recover
13/85
xs (nT )e
j t
jTn
x
(
nT
)
e
c
dt
j t
x
(
nT
)
(
t
nT
)
e
dt
c
jnT
x
(
nT
)
e
c
14/85
X (e jw )
jwn
x
[
n
]
e
Then
X s ( j) X (e jw ) wT X (e jT )
X (e
jT
1
) X c ( j jk s )
T k
1
w 2k
or X (e ) X c ( j j
)
T k
T
T
jw
15/85
7. D/C Converter
In
frequency domain
X r ( j )
j T n
x
[
n
]
e
H r ( j )
X (e jT ) H r ( j)
Reconstruction filter
16/85
8. Interpolation
X(n)
X(t)
Xc(t)
Interpolation
LPF
x'c(t)
17/85
Linear
Cubic B-spline
Cubic convolution
Etc.
18/85
9. Discrete-Time Processing of
Continuous-Time Signals
Suppose
y ( n ) h ( n) x ( n)
Y (e jw ) H (e jw ) X (e jw )
19/85
1
w 2k
jw
jw
jw
jw
1. Y (e ) H (e ) X (e ) H (e ) X c ( j j
)
T k
T
T
2. Yr ( j) H r ( j)Y (e jT )
1
2k
jT
H r ( j ) H ( e ) X C ( j j
)
T k
T
20/85
3. If X C ( j) 0,
T
jT
Then Yr ( j)
H (e ) X C ( j),
T
0
,
T
4. Yr ( j) H eff ( j) X c ( j)
where H eff ( j)
H (e
0
jT
,
T
,
T
Important !!
22/85
23/85
10. Summary
If X C ( j) 0,
T
Then the system
X c ( j )
H (e
0
jT
),
T
,
T
26/85
x[n] xc (nT )
27/85
One approach
Reconstruct
xc (t ) from x[n]
Resampling
to obtain x[n]
xc (t )
Other approach
; involve only discrete-time operations
28/85
if
N
T ' MT
29/85
1
w
2 r
jw
X d (e ) X c ( j j
)
T r
T
T
Since T MT
1
X d (e )
MT
jw
w
2r
Xc( j
j
)
MT
MT
r
r i kM ; integer
where k , 0 i M 1
30/85
Now
1
X d (e )
M
jw
1
2k
2i
w
T X c j MT j T j MT
i 0
k
M 1
1
w 2i 2k
Xc j
j
T k
MT
T
X (e
1
X d (e )
M
jw
M 1
w 2i
M
X (e
)
w 2 i
M
i 0
31/85
w T '
or
M copies of
r
X c ( j )
jw
X (e )
2 / T '
2 / M
of
32/85
33/85
If M>2
aliasing occurs
wN M
wN
M
35/85
Its decimator!
(downsampling by LPF followed by compression)
36/85
14. Upsampling
(Increase the Sampling Rate)
xi [n] xc (nT )
T T / L
x[k ] [n kL]
In freq. domain, FT of xe [ n] is
X e (e )
jw
jwn
x
[
k
]
[
n
kL
]
e
n k
jwkL
x
[
k
]
e
X (e jwL )
38/85
w wL
w T
(cf)
Down sampling
Up sampling
3. decimation
3. interpolation
39/85
Ideal C/D
converter
x(n)
Assume X c ( j) 0 for
x(n) xc (nT )
Discrete-time
system
xi (n)
T
T '
L
40/85
2T
-2T
-T
3T
4T
T
2
-4
-3
-2
-1
0 1 2 3 4 5 6 7 8
new sequence
41/85
xe (n)
xe (n)
x( n / L)
n/L : an integer
otherwise
T
2T
-T
T'
T
: for this example
T '
3
42/85
43/85
jwn
x
(
n
)
e
e
x ( n / L )e
jwn
, n / L : integer
jwmL
x
(
m
)
e
X (e jwL )
X e (e jT ) X (e jT L ) X (e jT )
44/85
45/85
xe (n)
xi (n)
LPF
Gain : L
Cutoff :
T
L
47/85
L, w
{ 0,
otherwise
n
sin
L , n
h( n)
n
L
sin (n kL) / L
xi (n) x(k )
(n kL) / L
k
48/85
49/85
50/85
x ( n) h
(n k )
lin
What is h (n) ?
lin
h lin(n)
0,
n
L
, n L
n L
1 sin( wL / 2)
H lin(e )
L sin( w / 2)
jw
51/85
xc (t )
T
Discrete-time
system
Ideal C/D
Ideal D/C
y (n)
x(n)
yr (t )
sin (t nT ) / T
yr (t ) y (n)
(t nT ) / T
n
If
X c ( j ) 0
H eff ( j)
/ T , then
Yr ( j)
X c ( j )
H (e jT ), / T
0,
/T
53/85
Ideal H
aa
( j ) :
H aa ( j)
1,
0,
55/85
Then
H (e
{ 0,
H eff ( j) is as before
jT
Practical H ( j)
aa
H eff ( j)
H aa ( j) H (e
{ 0,
jT
),
),
T
56/85
Then
xa (t )
Sample
& Hold
xo (t )
A/D converter
xB (t )
x(n)h (t nT )
1,
0t T
0,
otherwise
57/85
xo (t ) ho (t ) xa (nT ) (t nT )
n
58/85
Purpose of S&H
To hold sample value constant while it is quantized
and coded by the A/D converter
Sample
& Hold
xo (t )
A/D converter
xB (t )
59/85
xa (t )
Equivalent system
Ideal C/D
Coder
Quantizer
x(n)
x (n)
xB (t )
60/85
1
1
0
0
1
1
0
0
Numeric value
3/4
1/2
1/4
0
-1/4
-1/2
-3/4
-1
1
0
1
0
1
0
1
0
63/85
a0 20 a1 2 1 a2 2 2 aB 2 B
64/85
e( n)
2
2
3-bit quantizer,
when 9 x(n) 7
2
In
general, e(n)
2
when X x(n) X
m
m
2
65/85
Quantizer
Q[ ]
x (n)
x(n)
x (n)
e(n)
Assumptions
~
2
2
66/85
Quantized
67/85
Quantization
error 3 bits 5
68/85
Quantization
error
100
69/85
2 B X m
12
12
x2
signal power
10 log 10
SNR 10 log 10
2
noise power
e
12 2 2 B x2
10 log 10
2
Xm
Xm
71/85
Scale by
Xm
x DA (t )
D/A Converter
x ( n)
Convert to
Zero-order
Impulses xS (n)
Hold
xDA (n)
Ideal
D/C
(t nT )
sin
T
xr (t ) x ( n)
(t nT )
n
T
X r ( j) H r ( j) X (e jT )
H r ( j )
T
0 , otherwise
T ,
72/85
D/A converter
xDA (t )
x B ( n)h0 (t nT )
x (n)h (t nT)
x0 (t ) e0 (t )
73/85
jnT
x
(
n
)
H
(
j
)
e
X 0 ( j )
x ( n )e
jnT
H 0 ( j )
X (e jT ) H 0 ( j)
How
~
~
X r ( j) H r ( j) X 0 ( j) H r ( j) H 0 ( j) X (e jT )
H r ( j )
~
H r ( j )
H 0 ( j )
T
2 sin(
) j T
2 e 2
H 0 ( j )
74/85
For
(t nT )
sin
T
x r (t ) x ( n)
(t nT )
n
T
(t nT )
(t nT )
sin
sin
T
T
x ( n)
e( n )
(t nT )
(t nT )
n
n
T
T
xa (t ) ea (t )
76/85
H aa ( j)
x ( n)
Digital
Filter
y ( n)
D/A
xa (t )
y DA (t )
S&H
A/D
x ( n)
Quantizer
y ( n)
~
H r ( j )
y r (t )
77/85
xc (t )
Ideal
C/D
H aa ( j)
x ( n)
e1 ( n)
x ( n)
Digital
Filter
y ( n)
e2 ( n)
y ( n)
Convert to
Impulses
Zero-order
Holder
~
H r ( j )
y r (t )
78/85
The
2
~
jT
Pea ( j) H r ( j) H 0 ( j) H (e
) e2
79/85
Effective
Ya ( j)
H eff ( j)
X c ( j )
~
jT
H r ( j) H 0 ( j) H (e ) H aa ( j)
for any
if H aa ( j) 0
X c ( j )
~
H r ( j ) 0
80/85
Simple
Anti-aliasing
Filter
xa (t )
A/D
Conv.
x (n)
Decimation
By M
T ' MT
T
Discrete-time
System
x d (n)
y d (n)
T MT
'
Interpol.
By L
y (n)
T ''
M
T'
T
L
L
x d (n)
D/A
conv.
y d (n)
y DA (t )
Simple
Recons.
Filter
y r (t )
84/85
85/85