Vous êtes sur la page 1sur 100

Chapter 4

Sampling of Continuous-Time Signals


Der-Feng Tseng
Department of Electrical Engineering
National Taiwan University of Science and Technology
(through the courtesy of Prof. Peng-Hua Wang of National Taipei University)

February 19, 2015

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

1 / 100

Outline
1

4.1 Periodic Sampling

4.2 Frequency Domain representation

4.3 Reconstruction

4.4 DT Processing of Signals

4.5 CT Processing of Signals

4.6 Changing Sampling Rate

4.7 Multirate Signal Processing

4.8 A/D and D/A

4.9 Oversampling A/D and D/A


Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

2 / 100

About The figures


All the figures are from Discrete-Time Signal Processing, 2e, by
Oppenheim, Schafer, and Buck,Prentice Hall, Inc.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

3 / 100

4.1 Periodic Sampling

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

4 / 100

Concept

Figure 4.1 Block Diagram of an ideal C/D converter


The sequence of samples x[n] is obtained from a continuous-time
signal xc (t) according to
x[n] = xc (nT ),

< n <

T is the sampling period. fs = 1/T is the sampling frequency.


s = 2fs = 2/T is the sampling frequency in radians per second.
The system is an ideal continuous-to-discrete-time (C/D) converter.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

5 / 100

Figure 4.2

(a) C/D converter = modulate by s(t) + impulse to sequence

(b) sampling by two rates

(c) output sequences


Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

6 / 100

4.2 Frequency Domain representation

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

7 / 100

Derivation
Let s(t) be the periodic impulse train

s(t) =

(t nT ),

S(j) =

n=

2 X
( ks )
T
k=

The sampled signal xs (t) from a continuous-time signal xc (t) is


xs (t) = xc (t)s(t) = xc (t)

(t nT )

n=

xc (nT )(t nT )

n=

The Fourier transformation of xs (t) is

1 X
1
Xc (j) S(j) =
Xc (j( ks ))
Xs (j) =
2
T
k=

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

8 / 100

Figure 4.3

Suppose xc (t) is bandlimited at = N , the replicas of Xc (j) do not


overlap if s N > N or s > 2N
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

9 / 100

Recovery

Xc (j) can be recovered by Xs (j)Hr (j) where Hr (j) is an ideal


lowpass filter with gain T and cutoff frequency c with
N < c < s N .

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

10 / 100

Alias
If s 2N , the copies of Xc (j) overlap, and Xc (j) cant be
recovered by lowpass filtering. The reconstructed signal by
Xr (j) = Xs (j)Hr (j) is distorted. This is refered to alias
distortion.
Nyquist Sampling Theorem. Let xc (t) be a bandlimited signal with
Xc (j) = 0 for || N . Then xc (t) is uniquely determined by its
samples x[n] = xc (nT ), n = 0, 1, 2, . . . , if
s =

2
2N .
T

N is commonly referred to as the Nyquist frequency.


The minimal sampling frequency 2N is called the Nyquist rate.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

11 / 100

Example

Let xc (t) = cos 0 t. With no aliasing, xr (t) = cos 0 t. With aliasing,


xr (t) = cos(0 0 )t.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

12 / 100

Discrete-Time FT
The sampled signal
Xs (j) =

xc (nT )ejT n

n=

Since x[n] = xc (nT ) and X(ej ) =

x[n]ejn , it follows that

n=

jT

Since X(e


Xs (j) = X(ej ) =T = X(ejT )

1 X
Xc (j( ks )), we have
)=
T n=


 

1 X
2k

X(e ) =
Xc j

,
T n=
T
T
j

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

13 / 100

Example 4.1

xc (t) = cos(4000t) (2000 Hz).


Sampling period T = 1/6000, s = 12000 (6000 Hz)
x[n] = cos(4000T n) = cos 0 n where 0 = 2/3.
Xc (j) = ( 4000) + ( + 4000)
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

14 / 100

Example 4.2

xc (t) = cos(16000t) (8000 Hz).


Sampling period T = 1/6000, s = 12000 (6000 Hz)
x[n] = cos(16000T n) = cos 0 n where 0 = 8/3 = 2/3.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

15 / 100

Example 4.3

xc (t) = cos(4000t) (2000 Hz).


Sampling period T = 1/1500, s = 3000 (1500 Hz)
x[n] = cos(4000T n) = cos 0 n where 0 = 2/3.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

16 / 100

4.3 Reconstruction

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

17 / 100

Derivation
Sampled sequence
xs (t) =

x[n](t nT )

n=

Reconstruction by a lowpass filter with cutoff frequency


N < c < s N .
xr (t) =

x[n]hr (t nT )

n=

A common choice c = s /2 = /T
sin(t/T )
t/T

X
sin[(n T )/T ]
x[n]
xr (t) =
(t nT )/T
n=

hr (t) =

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

18 / 100

Illustration

xr (t) =

x[n]hr (t nT )

n=

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

19 / 100

Illustration

sin(t/T )
t/T
DSP Chapter 4

hr (t) =
Der-Feng Tseng (NTUST)

February 19, 2015

20 / 100

Interpolation

hr (nT ) = 0, xr (mT ) = x(mT )


Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

21 / 100

Bandlimited Reconstruction

Ideal discrete-to-continuous-tine (D/C) converter

Xr (j) =

x[n]Hr (j)ejT n = Hr (j)X(jT )

n=

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

22 / 100

4.4 DT Processing of Signals

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

23 / 100

Concept

x[n] = xc (nT )

 

1 X
2k

j
X(e ) =

Xc j
T
T
T
k=

sin[(n T )/T ]
(t nT )/T
n=
(
T Y (jT ),
Yr (j) = Hr (j)Y (jT ) =
0,
yr (t) =

Der-Feng Tseng (NTUST)

y[n]

DSP Chapter 4

|| < /T,
otherwise.
February 19, 2015

24 / 100

LTI System
If the discrete-time system is LTI, we have Y (ej ) = H(ej )X(ej )
The spectrum of the output signal
Yr (j) = Hr (j)H(ejT )X(ejT )

 

X
2k

jT 1
)
= Hr (j)H(e

Xc j
T
T
T
k=

If Xc (j) = 0 for || /T , then


(
H(ejT )Xc (j),
Yr (j) =
0,

|| < /T,
|| /T.

We have Yr (j) = Heff (j)Xc (j) where


(
H(ejT ), || < /T,
Heff (j) =
0,
|| /T.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

25 / 100

Illustration

(
H(ejT ),
Heff (j) =
0,

Der-Feng Tseng (NTUST)

DSP Chapter 4

|| < /T,
|| /T.

February 19, 2015

26 / 100

Example 4.4

(
1,
H(ej ) =
0,
Der-Feng Tseng (NTUST)

|| < c ,
c < || .

DSP Chapter 4

February 19, 2015

27 / 100

Example 4.5
The ideal continuous-time differentiator yc (t) =

d
dt xc (t)

The corresponding frequency response Hc (j) = j


The effective frequency response Heff (j) = j for || < /T .
The discrete-time have frequency response
H(ej ) =

j
,
T

|| <

The corresponding impulse response


n cos n sin n
=
h[n] =
n2 T

Der-Feng Tseng (NTUST)

DSP Chapter 4

(
0,
n=0
cos n
, n=
6 0.
nT

February 19, 2015

28 / 100

Example 4.5

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

29 / 100

Example 4.6
xc (t) = cos(0 t) x[n] = cos(0 n) where 0 = 0 T

( 0 ) + ( + 0 ),
T
T
X(ej ) = ( 0 ) + ( + 0 )

X(ejT ) =

for || /T

The output of the digital differentiator


j
[( 0 ) + ( + 0 )]
T
j0
j0
=
( 0 )
( + 0 )]
T
T

Y (ej ) = H(ej )X(ej ) =

The output of the D/C converter


Yr (j) = Hr (j)Y (ejT ) = T Y (ejT )


j0
j0
(T 0 T )
(T + 0 T )
=T
T
T
= j0 ( 0 ) j0 ( + 0 )

yr (t) = j0 12 ej0 t j0 12 ej0 t = 0 sin(0 t)


Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

30 / 100

Impulse Invariance

If h[n] = hc (nT ) H(ej ) =

T Hc (j T ),

thus

h[n] = T hc (nT ) H(ej ) = Hc (j


Der-Feng Tseng (NTUST)

DSP Chapter 4

),
T

||
February 19, 2015

31 / 100

Example 4.7
Ideal lowpass filter
(
1,
Hc (j) =
0,

|| < c
|| c .

The impulse response of the continuous-time system


hc (t) =

sin(c t)
t

The impulse response of the discrete-time system by impulse invariant


is
sin(c n)
sin(c nT )
=
h[n] = T hc (nT ) = T
nT
n

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

32 / 100

Example 4.8
The ideal impulse response of the continuous-time system
hc (t) = Aes0 t u(t)
The impulse response of the discrete-time system by impulse invariant
is
h[n] = T hc (nT ) = T Aes0 nT u(nT ) = AT es0 nT u[n]
The z-transform is
H(z) =

AT
1 es0 n z 1

Alias occurs!

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

33 / 100

4.5 CT Processing of Signals

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

34 / 100

Concept

Suppose
xc (t) =
yc (t) =

n=

n=

We have

x[n]

sin[(t nT )/T ]
(t nT )/T

y[n]

sin[(t nT )/T ]
(t nT )/T

Xc (j) = T X(ejT ), Yc (j) = Hc (j)Xc (j), Y (ej ) =

1
Yc (j )
T
T

Hc (j) = H(ejT )
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

35 / 100

Example 4.9

The desired system


H(ej ) = ej
for implementing y[n] = x[n ] (no formal meaning).
The continuous system
Hc (j) = H(ejT ) = ejT
and
y(t) = xc (t T )
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

36 / 100

Example 4.10

The desired system


H(ej ) =

1 sin[(M + 1)/2] jM/2


e
M +1
sin(/2)

M is even y[n] = w[n M/2]


M is odd y[n] = w[n] followed by a continuous-time delay of
M T /2.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

37 / 100

4.6 Changing Sampling Rate

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

38 / 100

Motivation
Given x[n] = xc (nT ), we want to find x [n] = xc (nT ) where T 6= T .
One approach is to reconstruct xc (t) from x[n], then sample xc (t) by
T .
Not desirable, because reconstruction, A/D and D/A
are not ideal.
We are interested in the method that involve only discrete-time
operations.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

39 / 100

Reduction by M

If T = M T , we have the (sampling rate) compressor


xd [n] = x[nM ] = xc (nM T )
If Xc (j) = 0 for || N , then xd [n] is an exact representation of
xc (t) if /T = /(M T ) N .
The sampling rate can be reduced by a factor of M
if the original sampling rate was at least M times the Nyquist rate, or
if the bandwidth of the sequence is first reduced by a factor of M by
discrete-time filtering.

In general, we the operation of reducing the sampling rate (including


any prefiltering) will be called the downsampling.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

40 / 100

Reduction by M
What is the Fourier transform of xd [n] ?
x[n] = xc (nT )



2k
1 X
Xc j
X(e ) =
T
T
j

k=

xd [n] = xc (nM T ), r = i + kM



1 X
2r
Xd (e ) =
Xc j
M T r=
MT
"
#
 
M1

2i 2k
1 X 1 X

Xc j
=
M i=0 T
MT
T
j

k=

Der-Feng Tseng (NTUST)

1
M

M1
X

X(ej(/M2i/M) )

i=0

DSP Chapter 4

February 19, 2015

41 / 100

Reduction by M

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

42 / 100

Reduction by M

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

43 / 100

Reduction by M

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

44 / 100

Reduction by M

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

45 / 100

Downsampling

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

46 / 100

Increase by L

T = T /L, we want to obtain


xi [n] = xc (nT )

from x[n] = xc (nT ).

This is called the upsampling.


xi [n] = x[n/L] = xc (nT /L) for n = 0, L, 2L, . . .
(Sampling rate) expander
xe [n] =
Xe (ej ) =

X
x[n/L], n = 0, L, 2L, . . .
=
x[k][n kL]
0,
otherwise.
k=

x[k]ejLk = X(ejL )

k=
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

47 / 100

Increase by L

T = T /L, we want to obtain


xi [n] = xc (nT )

from x[n] = xc (nT ).

This is called the upsampling.


xi [n] = x[n/L] = xc (nT /L) for n = 0, L, 2L, . . .

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

48 / 100

Increase by L

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

49 / 100

Increase by L

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

50 / 100

Interpolator
Ideal lowpass filter, gain L, cutoff frequency /L
sin(n/L)
n/L

X
sin[(n kL)/L]
xi [n] =
x[k]
(n kL)/L

hi [n] =

k=

We can use other interpolator instead of the ideal lowpass filter


linear interpolation
(

1 |n|/L, |n| L
0,
otherwise


1 sin(L/2)
Hlin (ej ) =
L sin(/2)
hlin [n] =

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

51 / 100

Linear Interpolator

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

52 / 100

Noninteger Factor

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

53 / 100

Example 4.11

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

54 / 100

Example 4.11

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

55 / 100

4.7 Multirate Signal Processing

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

56 / 100

Introduction
Multirate signal processing refers in general to utilizing upsampling,
down sampling, compressor, and expanders to increase the efficiency
of signal-processing systems.
For example, if T = 1.01T , we can first interpolate by L = 100 using
a lowpass filter, that cutoff at c = /101. then decimate by
M = 101.
Require large amounts of computation for each output
sample.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

57 / 100

Downsampling Identities

These two systems are equivalent

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

58 / 100

Downsampling Identities
In (b), Xb (ej ) = H(ejM )X(ej ) and
M 1
1 X
Y (e ) =
Xb (ej(/M 2i/M ) )
M
j

1
M

i=0
M
1
X

H(ej(2i) )X(ej(/M 2i/M ) )

i=0

M 1
1 X
X(ej(/M 2i/M ) )
= H(e )
M
j

i=0
j

= H(e )Xa (e )

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

59 / 100

Upsampling Identities

These two systems are equivalent

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

60 / 100

Upsampling Identities
In Fig.(a),
Y (ej ) = Xa (ejL ) = X(ejL )H(ejL )
In Fig.(b), Xb (ej ) = X(ejL ), thus
Y (ej ) = H(ejL )Xb (ej )

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

61 / 100

Polyphase Decom of Signal

Decompose h[n] into


h[n] =

M
1
X

hk [n k],

k=0

(
h[n + k], n = integer multiple of M,
where hk [n] =
0,
otherwise.
ek [n] = h[nM + k] = hk [nM ]
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

62 / 100

Polyphase Decom of Signal

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

63 / 100

Polyphase Decom of Filter

H(z) =

M
1
X

Ek (z M )z k

i=0

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

64 / 100

Polyphase Decimation

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

65 / 100

Polyphase Decimation

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

66 / 100

Polyphase Interpolation

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

67 / 100

Polyphase Interpolation

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

68 / 100

4.8 A/D and D/A

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

69 / 100

Introduction

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

70 / 100

Prefiltering: Ideal

Antialiasing filter
Haa (j) =

1, || < c < /T,


0, || > c .

Heff (j) Haa (j)H(ejT )


Need sharp-cutoff antialiasing filters. Drawbacks
May account for a major part of the cost.
Difficult and expensive to implement.
Highly nonlinear phase response.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

71 / 100

Prefiltering: Oversampling

Simple antialiasing filter Haa (j) has a gradual cutoff with significant
attenuation at M N .
Oversampling at M N .
Downsampling by M with sharp cutoff antialiasing digital filter.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

72 / 100

Prefiltering: Oversampling

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

73 / 100

A/D Conversion

Sampling-and-hold
Analog-to-digital: quantization

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

74 / 100

A/D: Sample-and-hold

The output of the ideal sample-and-hold system is


x0 (t) =

x[n]h0 (t nT ) = h0 (t)

x[n](t nT )

n=

n=

h0 (t) is the impulse response of the zero-order-hold system


(
1, 0 < t < T,
h0 (t) =
0, otherwise.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

75 / 100

A/D: Concept

Practical A/D Converter

Conceptual A/D Converter

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

76 / 100

A/D: Quantizer
The quantizer is a nonlinear system whose purpose is to transform the
input sample x[n] into one of a finite set of prescribed values.
x
[n] = Q(x[n])
Uniform quantizers: quantization levels are spaced uniformly.
Linear quantizers: quantization levels are of linear progression.
Bipolar quantizers: both positive and negative samples can be
quantized.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

77 / 100

A/D: Quantization

Uniform, linear, bipolar


The input sample is rounded to the nearest quantization level.
8 (even) quantization levels
No quantization level at zero amplitude.
An equal number of positive and negative quantization
level.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

78 / 100

A/D: Quantization

Let Xm be the full-scale level of the A/D converter. Each


quantization level is coded by B + 1 bits.
For a bipolar quantizer, the step size of the quantizer is
2Xm
Xm
= B+1 = B
2
2
If the signal amplitude exceeds the full-scale value, some samples are
clipped.
Der-Feng
Tseng (NTUST)
DSP Chapter 4
February 19, 2015
79 / 100

A/D: Quantization Error

Quantization error defined as


e[n] = x
[n] x[n]
We can analyze the quantization error statistically by assuming
e[n]
e[n]
e[n]
The

is a stationary random process.


and x[n] are uncorrelated.
is a white-noise process.
pdf of e[n] is uniformly.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

80 / 100

Example 4.12

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

81 / 100

A/D: Quantization Error

/2 < e[n] < /2


Variance of e[n]: e2 =

2
12

2
22B Xm
12

Let x2 be the rms value of the signal. The signal-to-noise ratio (SNR)
SNR = 10 log10

x2
Xm
= 6.02B + 10.8 20 log10
e2
x

Increase B by 1 bit, SNR increases by 6 dB.


Halve x , SNR decreases by 6 dB.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

82 / 100

A/D: Quantization Error


If the signal amplitude has a Gaussian distribution, only 0.064% of
the samples would have an amplitude greater than 4x .
We may set Xm = 4x , then
SNR 6B 1.25dB
The signal amplitude should be carefully matched to the full-scale
amplitude of the A/D converter.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

83 / 100

D/A Conversion

Ideal reconstruction
xr (t) =

n=

Practical reconstruction
xDA (t) =
=

n=

x
[n]

sin[(t nT )/T ]
(t nT )/T

x[n]h0 (t nT )
x[n]h0 (t nT ) +

n=

Der-Feng Tseng (NTUST)

e[n]h0 (t nT )

n=
DSP Chapter 4

February 19, 2015

84 / 100

D/A Conversion
The spectrum of x0 (t) is
"
#

1 X
X0 (j) =
Xa (j( 2k/T )) H0 (j)
T
k=

Compensated reconstruction filter


r (j) = Hr (j)
H
H0 (j)
The frequency response of the zero0order hold filter is
2 sin(T /2) jT /2
e

The compensated reconstruction filter is


( T /2
jT /2 , || < /T
r (j) = sin(T /2) e
H
0,
|| > /T.
H0 (j) =

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

85 / 100

D/A Conversion

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

86 / 100

4.9 Oversampling A/D and D/A

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

87 / 100

Oversampled A/D

Assume that xa (t) is a zero-mean, WSS random process with PSD


xa xa (j) and autocorrelation function xa xa ( ). xa xa (j) is
bandlimited to N .
Sampling rate 2/T = M 2N . M is called the oversampling
ratio.
The decimation filter is an ideal lowpass filter with c = /M .
We want to analyze the quantization error.

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

88 / 100

Oversampled A/D

Additive noise model.


We want to determine the ratio of signal power E{x2da [n]} to
quantization-noise power E{x2de [n]}. The ratio is a function of
quantization step and the oversampling ratio M .
Original signal xa (t), PSD is xa xa (j), power is
E{x2a (t)}

Der-Feng Tseng (NTUST)

1
=
2

xa xa (j)d
N

DSP Chapter 4

February 19, 2015

89 / 100

Oversampled A/D
Analysis of signal power
After C/D, x[n] = xa (nT ), PSD and power are
(
1
x x (j/T ), || < /M
j
xx (e ) = T a a
0,
/M <
Z
1
xx (ej )d = E{x2a (t)}
E{x2 [n]} =
2
After downsampling by M , PSD and power are
1
xx (ej/M )
M Z

1
E{x2da [n]} =
x x (ej )d
2 da da
Z
1
1
xx (ej/M )d = E{x2 [n]} = E{x2a (t)}
=
2 M

xda xda (ej ) =

We have E{x2da [n]} = E{x2 [n]} = E{x2a (t)}


Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

90 / 100

Oversampled A/D
Analysis of noise power
Since variance of e[n] is e2 = 2 /12, we have ee [m] = e2 [m] and
ee (ej ) = 2 for || < .
After ideal lowpass filter, the noise power is
E{e2 [n]} =

1
2

/M

e2 d =

/M

e2
M

After downsampling, the noise power does not changed.


E{x2de [n]}

2
2
1
= e =
=
M
12M
12M

Xm
2B

2

Let Pde = E{x2de [n]}, we have


1
1
1
B = log2 M log2 12 log2 Pde + log2 Xm
2
2
2
For example, M = 4, one less bit to achieve a desired accuracy.
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

91 / 100

Oversampled A/D

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

92 / 100

Noise Shaping A/D

If we want to reduce the number of bits from 16 to 12, we need


M = 44 = 256.
The concept of noise shaping is to modify the A/D conversion
procedure so that the PSD of the quantization noise is not uniform,
but rather, is shaped such that most of the noise power is outside
|| < /M .
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

93 / 100

1st-Order Noise Shaping A/D

Denote the transfer function from x[n] to y[n] as Hz (z)




1
X(z) z 1 Yx (z)
1
1z
Yx (z) = X(z), Hx (z) = 1
Yx (z) =

Denote the transfer function from e[n] to y[n] as He (z)



Ye (z) = E(z) +

1
1 z 1


z 1 Ye (z)

Ye (z) = (1 z 1 )E(z), He (z) = 1 z 1


Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

94 / 100

1st-Order Noise Shaping A/D

e[n] = e[n] e[n 1]


ee(ej ) = e2 |He (ej )|2 = e2 [2 sin(/2)]2
Pda = E{x2da [n]} = E{x2 [n]} = E{x2a (t)}
IfM is sufficient large such that sin(/2M ) /2M , the
quantization-noise power is
Pde =

B=

23

1 2
2 12M

[2 sin(/2M )]2 d

1 2 2
36 M 3

log2 M + log2 (/6) 12 log2 Pde + log2 Xm

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

95 / 100

1st-Order Noise Shaping A/D

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

96 / 100

1st-Order Noise Shaping A/D

Equivalent saving in quantizer bits relative to M = 1


Direct quantization
1
1
1
B = log2 M log2 12 log2 Pde + log2 Xm
2
2
2
First-order noise shaping
1
3
B = log2 M + log2 (/6) log2 Pde + log2 Xm
2
2
Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

97 / 100

2nd-Order Noise Shaping A/D

He (z) = (1 z 1 )2
ee(ej ) = e2 [2 sin(/2)]4

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

98 / 100

Oversampling D/A

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

99 / 100

Oversampling D/A

Der-Feng Tseng (NTUST)

DSP Chapter 4

February 19, 2015

100 / 100

Vous aimerez peut-être aussi