Sei sulla pagina 1di 22

Chapter 5

Sampling Rate Conversion


Conte
nt
Introduction

Decimation by a factor D
Interpolation by a factor I
Sampling rate conversion by a rational
factor I/D

Copyright 2005. Shi Ping


CUC

Introduction
In

many practical applications of DSP, one is faced with


the problem of changing the sampling rate of a signal.
The process of converting a signal from a given rate to
a different rate is called sampling rate conversion.
Systems that employ multiple sampling rates in the
processing of digital signals are called multirate digital
signal processing systems.

Copyright 2005. Shi Ping


CUC

Introduction
There

are two general methods to accomplish the


sampling rate conversion of a digital signal.
To pass the digital signal through a D/A converter, filter
it if necessary, and then to resample the resulting analog
signal at the desired rate;
To perform the sampling rate conversion entirely in the
digital domain.
The process of reducing the sampling rate by an integer
factor D (downsampling by D) is called decimation.
The process of increasing the sampling rate by an integer
factor I (upsampling by I) is called interpolation.

return

Copyright 2005. Shi Ping


CUC

Decimation by a factor D
In downsampling by an integer factor D>1,
every D-th samples of the input sequence
are kept and others are removed:

Copyright 2005. Shi Ping


CUC

Decimation by a factor D

Relationship in time domain


Input

sequence
Periodic train of impulses

Output sequence
demo

Copyright 2005. Shi Ping


CUC

Decimation by a factor D

Relationship in frequency domain

Copyright 2005. Shi Ping


CUC

demo

Copyright 2005. Shi Ping


CUC

Decimation by a factor D

Using a digital low-pass filter to prevent aliasing

h(n)

return

Copyright 2005. Shi Ping


CUC

Interpolation by a factor I
In up-sampling by an integer factor I >1, I -1
equidistant zeros-valued samples are inserted
between each two consecutive samples of the input
sequence. Then a digital low-pass filter is applied.

h(n)

demo

Copyright 2005. Shi Ping


CUC

Interpolation by a factor I
Relationship
Input

in frequency domain

sequence

demo

return

Copyright 2005. Shi Ping


CUC

Sampling rate conversion by a rational factor


I/D

If

is a rational number

h1
I
(n)
interpolation

h2
(n)
D
decimation

Sampling period

Copyright 2005. Shi Ping


CUC

Sampling Rate Conversion

example1

h
(n)

example2

return

Copyright 2005. Shi Ping


CUC

2
0

-15

-10

-5

10

15 n

-15

-10

-5

10

15 n

-15

-10

-5

10

15 n

-15

-10

-5

10

15 n

1
0.5
0

2
0

2
0

return

Copyright 2005. Shi Ping


CUC

return

Copyright 2005. Shi Ping


CUC

12

16

20

24

28

32

36

40

44

48 n

12

16

20

24

28

32

36

40

44

48 n

12

16

20

24

28

32

36

40

44

48 n

0
4

return

Copyright 2005. Shi Ping


CUC

return

Copyright 2005. Shi Ping


CUC

Copyright 2005. Shi Ping


CUC

return

Copyright 2005. Shi Ping


CUC

P137,

No.26 in textbook

Copyright 2005. Shi Ping


CUC

Copyright 2005. Shi Ping


CUC

Copyright 2005. Shi Ping


CUC

return

Copyright 2005. Shi Ping


CUC

Potrebbero piacerti anche