Академический Документы
Профессиональный Документы
Культура Документы
time-domain discretization
Sampling of bandlimited signals
Reconstruction of analog signals from the
sampled signal
Sampling theorem
u ( t ) =
1
t + t
2
2
sampling process :
x (t )
x ( kTs ) u ( t kTs )
u ( t kTs ) k
=
k =
lim u
0
Dirac distribution
Periodic Dirac
distribution
x ( t ) = x ( t ) Ts ( t ) =
x ( kTs ) ( t kTs )
k =
Ideal Sampling
Mathematical model
x ( t ) = x ( t ) Ts ( t ) =
x ( kTs ) ( t kTs )
k =
System model
x ( t ) = x ( t ) Ts ( t ) =
x ( kTs ) ( t kTs )
k =
X ( ) = F x ( t ) Ts ( t )
Ts k =
Ts
2
1
X ( ) =
Ts
2 1
X ( ) k
=
Ts Ts
k =
X k T
k =
x (t ) =
x ( kTs ) ( t kTs )
k =
1
X ( ) =
Ts
X k T
k =
Spectrum of
original signal
Spectrum of periodic
Dirac distribution
Spectrum of
ideal sampled
signal
Aliasing
error
1
X ( ) =
Ts
X k T
k =
10
H () = pc () h(t ) =
sin c t
t
11
s 2M
Sampling freq.
M c s M
12
T ,
H r ( ) = Ts pc ( ) = s
0,
c
> c
M c s M
Its response :
xr ( t ) = x ( t ) hr ( t )
X r ( ) = X ( ) H r ( )
1
=
Ts
X ( k s )Ts pc ( ) = X ( )
k =
xr ( t ) = x ( t ) , a.e.w.
13
s 2M
s M < M
14
Reconstruction
H r ( ) = Ts pc ( ) hr ( t ) = Ts
sin c t
t
xr ( t ) = hr ( t ) x ( t )
sin ct
x ( kTs ) ( t kTs )
t
k =
sin ct
= x ( kTs )Ts
( t kTs )
t
k =
= Ts
x ( kTs )Ts
k =
k =
sin c ( t kTs )
( t kTs )
sin c ( t kTs )
2c
x ( kTs )
s
c ( t kTs )
15
xr ( t ) =
k =
sin c ( t kTs )
2c
x ( kTs )
s
c ( t kTs )
because
x ( kTs )
k =
sin M ( t kTs )
M = c = s M
M = c =
M ( t kTs )
or
s
2
16
k =
sin c ( t kTs )
2c
x ( kTs )
s
c ( t kTs )
17
x ( kTs )
k =
sin M Ts ( n k )
M Ts ( n k )
sin ( n k )
M = s x ( nTs ) = x ( kTs )
= x ( kTs )n,k = x ( nTs )
2
(n k )
k =
k =
1, for n = k
n ,k =
0, for n k
Linear interpolation
approximates the signal using straight lines
that unify points determined by the samples
Reconstruction filter is triangular.
errors
20
10
Ts
sin 2
H r ( ) = Ts
Ts
sin
= Ts
ideal
21
Ts
T
Ts
sin s
2 = e j 2 T
2
s
Ts
Ts
sin
T
sin
j
j s
s
s
2
2
H r ( ) = e
Ts
=e
Ts
s
2
T
hr ( t ) = pTs t s
2
2
Ts
2
2sin
22
11
k =
j
e s
23
s
X ( k s )
sin
24
12
25
0 =
2
T0
26
13
N0 = 30
s min = 2 30 + 0 = 70
N 0 < c < s N 0
27
N 0 < s N 0 = 0 ( M N )
The difference M-N is a natural number:
0 ( M N ) N 0 = R0 ,
R = 1,2,
s = M 0 = ( 2 N + R ) 0 = 2M + R0 ,
R = 1, 2,
s min = ( 2 N + 1) 0 = 2M + 0
28
14
Ts =
T0
;
2N + R
R = 1, 2,
30
15
1
T
2N + R 0
31
http://www.jhu.edu/~signals/sampling
s > 2 N 0
N 0 < c < s N 0
c = 50rad / s
s = 120rad / s
32
16
x ( t ) dt = Ts
x ( kTs )
k =
1
T0
T x ( t )
0
dt =
1
M
M 1
x ( kTs )
k =0
; M = 2 N + R;
R = 1, 2,
t
2
t
t
sin
j t
2 = e 2 t
2
t
2sin
17
k =
X ( )
j t
e 2 t
j t
e 2
t
t
sin
j t t
2 X ( k ) =
e 2 T 2t X ( k s )
s
t
k =
s
2
2
sin
t
=
T
k = s
t
t
sin
Ts
t
2 X ( k ) =
X ( k s )
s
t
k = Ts t
Ts
2
sin
35
2
>> M
t
36
18
Natural sampling
Used in time division multiplexing (TDM) of analog signals
37
x ( t ) = x ( t ) qTs ( t ) = x ( t ) h ( t ) Ts ( t )
= x (t )
k =
h ( t kTs ) =
x ( t ) h ( t kT )
s
k =
j
t
h ( t ) = p t t
H ( ) = e
2
2
t
2
t
2
2sin
38
19
X ( ) = F x ( t ) h ( t ) Ts ( t )
sin
t
1
2
2
=
( k s )
X ( ) e 2 t
t
2
Ts k =
k s t
sin
k t
j s t
2 ( k )
2
= X ( ) e
s
Ts k s t
k =
2
numerical factor
k =
k s t
2
t
Ts
k s t
2 X ( k )
s
k s t
2
sin
39
numerical factor
Ts
,
H ( ) = t
0,
c
> c
M c s M
40
20
2
Ts
= F xa ( kTs ) ( t kTs )
k =
( t kTs )
k =
1
X ( ) =
Ts
s =
X ( ) = F xa ( t ) ( t kTs )
k =
x ( t ) = x ( t ) Ts ( t )
= xa ( t )
X a ( k s ) ,
k =
k =
xa ( kTs ) F { ( t kTs )}
k =
xa ( kTs ) e jkT
k =
X a ( k s ) =
41
xa ( kTs ) e jkT
k =
X d () =
k =
xd [ k ] e jk =
xa ( kTs ) e jk
k =
xa ( kTs ) e jkT
k =
jk
= xa ( kTs ) e
=
Ts k =
X d () =
1
Ts
Xa T
k =
Ts
42
21
The link between the two frequency axes of spectra of the discrete
signal and of the corresponding continuous signal is:
= Ts
spectrum X d ( ) periodic
Ts
43
[ n kN ]
k =
x [ kN ] [ n kN ]
k =
44
22
45
( ks ) ;
k =
s =
2
N
s =
2
N
X ( ) = F { x [ n ] N [ n ]}
=
1
2
X ()
( k s ) ;
2
N k =
N 1
X r ( k s ),
k =0
s =
2
N
46
23
;
M
Ts
Ts = NTs
48
24
Aliasing error
s M < M
49
Reconstruction of discrete-time
signal from its samples
2k c
M c s M .
otherwise
50
25
1, 2k < c , k
H () =
0, otherwise
h [ n] =
sin c n
n
51
Example for
N=2
Decimation
x D [n] = x[Nn].
26
n =
xD [ n ]e jn =
n =
x [ nN ]e jn =
k = 0:
m=
x [ m ] e
jm
N
= X
N
1
X ( ) =
N
1
X Dr ( ) =
N
N 1
X ( k )
s
k =0
N 1
k 2
X r
k =0
N M
0
(1/ N ) X ( / N )
The spectral lobes of the sampled and decimated signal are N times
larger than the spectral lobes of the signal x[n].
53
example N=2.
54
27
X ( k s ) ( k s )
( k s ) = k
=
k =
55
1
[ n ]
s ( )
s N
x [ n] = F
s =
s =
2
N
{ X ( ) s ( )} = F 1 { X ( )} F 1 {s ( )} = x [ n] 1s N [ n];
2
N
x [n] =
N
x [ n kN ]
2 k =
28
57
Sample the spectrum of the finite duration signal x [n] (zero for n<0
and n>M-1) periodic signal ~x [n] , period N = 2 / s
Reconstruction condition: If N M
, no overlapping.
58
29
Practical Sampling of
Continuous-time Signals
bandwidth of the signal to be sampled not known.
high frequency spectral components, not important for the
application (e.g. produced by the noise that perturbs the useful
signal)
aliasing errors. Avoid using low-pass filter: anti-aliasing filter
before the sampling system.
59
30
originalspeech.wav
aliasingspeech.wav
music.wav
aliasingmusic.wav
61
31
M m
<1
m
Here: s= M
63
1,
H BP ( ) =
0,
c1 < < c2
hBP ( t ) =
otherwise
= pc 2 ( ) pc1 ( )
t
t
64
32
M + k s , m + k s m + l s , M + ls =
Translation of interval
[m, M] with ls
Translation of interval
[-M,-m] with ks
For l=0:
k , l
M + k s , m + k s m , M = , k
M + k s m
2
2
M s m
+
+
1
k
) s M k +1
M (
If there are integer values of k for which this condition is satisfied then there are
values for the sampling frequency inferior to the Nyquist frequency, for which the
narrow-band band-pass signals can be reconstructed from their samples.
65
0<k
m
= n0
M m
with
k {1, , n0 }
Example
If m = 8 and M = 10 then
n0 =
m
=4
M m
k =1,2,3, 4.
66
33