• Tidak ada hasil yang ditemukan

Digital Signal Processing, Fall 2006

N/A
N/A
Protected

Academic year: 2024

Membagikan "Digital Signal Processing, Fall 2006"

Copied!
18
0
0

Teks penuh

(1)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 1

Digital Signal Processing, Fall 2006

Zheng-Hua Tan

Department of Electronic Systems Aalborg University, Denmark

[email protected]

Lecture 4: Sampling and reconstruction

Course at a glance

Discrete-time signals and systems

Fourier-domain representation

DFT/FFT

System structures

Filter structures Filter design Filter

z-transform MM1

MM2

MM9,MM10 MM3

MM6

MM4

MM7 MM8

Sampling and

reconstruction MM5

System analysis System

(2)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 3

Part I: Periodic sampling

„

Periodic sampling

„

Frequency domain representation

„

Reconstruction

„

Changing the sampling rate using discrete- time processing

Periodic sampling

„ From continuous-time to discrete-time

‰ Sampling period

‰ Sampling frequency

) (t

xc x[n]

<

<

= x nT n

n

x[ ] c( ),

T T f T

s s

/ 2

/ 1

π

= Ω

=

(3)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 5

Two stages

„ Mathematically

‰ Impulse train modulator

‰ Conversion of the impulse train to a sequence

−∞

=

−∞

=

−∞

=

=

=

=

=

n c n c

c s

n

nT t nT x

nT t t x

t s t x t x

nT t t

s

) ( ) (

) ( ) (

) ( ) ( ) (

) ( ) (

δ δ δ

τ τ δ

τ t d

x t

xc()= c( ) ( )

<

<

=x nT n

n

x[ ] c( ),

In practice?

Periodic sampling

„

Tow-stage representation

‰ Strictly a mathematical representation that is convenient for gaining insight into sampling in both the time and frequency domains.

‰ Physical implementation is different.

‰ a continuous-time signal, an impulse train, zero except at nT

‰ a discrete-time sequence, time normalization, no explicit information about sampling rate

„

Many-to-many Æ in general not invertible

) (t xs

] [n x

(4)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 7

Part II: Frequency domain represent.

„

Periodic sampling

„

Frequency domain representation

„

Reconstruction

„

Changing the sampling rate using discrete- time processing

Frequency-domain representation

„ From xc(t)toxs(t)

„ The Fourier transform of xs(t)consists of periodic repetition of the Fourier transform of xc(t).

−∞

=

−∞

=

−∞

=

−∞

=

−∞

=

=

Ω

Ω

=

=

Ω Ω

= Ω

=

Ω

Ω

= Ω

=

n c

k

s c

n c

c c

s

k

s n

nT t nT x

k j T X

nT t t x

j S j X j

X t

s t x t x

T k j S nT

t t

s

) ( ) (

)) (

1 ( ) ( ) (

) (

* ) 2 (

) 1 ( ) ( ) ( ) (

) 2 (

) ( ) ( ) (

s

δ δ

π π δ δ

The Fourier transform of a periodic impulse train is a periodic impulse train.

?

(5)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 9

Frequency-domain

−∞

=

−∞

=

Ω

Ω

= Ω

Ω

Ω

= Ω

k

s c

k

s

k j T X j X

T k j S

)) (

1 ( ) (

) 2 (

) (

s

π δ

N s N N

sΩ >Ω Ω > Ω

Ω or 2

Recovery

Ideal lowpass filter with gain T and cutoff frequency

) ( ) ( )

( r s

r jΩ =H jΩ X jΩ

X

) ( ) (

) (

Ω

= Ω

Ω

Ω

<

Ω

<

Ω

Ω

j X j

Xr c

N s c N

c

(6)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 11

Aliasing distortion

„ Due to the overlap among the copies of , due to

„ not recoverable by lowpass filtering )

c(jΩ X

N s Ω

)

c(jΩ X

Aliasing – an example

t t

xc()=cosΩ0

t t

xr( )=cosΩ0

t t

xr()=cos(ΩsΩ0)

a.1

b.2 b.1

a.2

−∞

=

Ω

Ω

= Ω

k

s

c j k

T X j

X 1 ( ( ))

)

s(

(7)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 13

Nyquist sampling theorem

Given bandlimited signal with

Then is uniquely determined by its samples If

is called Nyquist frequency is called Nyquist rate

N c j

X ( Ω)=0, for |Ω|Ω

ΩN

) (t xc

<

<

=x nT n

n

x[ ] c( ),

N

s = T Ω

Ω 2π 2 )

(t xc

ΩN

2

Fourier transform of x[n]

From to

From to

By taking continuous-time Fourier transform of xs(t)

By taking discrete-time Fourier transform of x[n]

) ( )

( jω

s j X e

X Ω

] [ )

(t xn

xs

−∞

=

Ω

=

Ω

n

Tn j c

s j x nT e

X ( ) ( )

−∞

=

=

n c

s t x nT t nT

x () ( )δ( )

<

<

=x nT n

n

x[ ] c( ),

−∞

=

= n

n j

j x n e

e

X( ω) ( ) ω Xs(jΩ)= X(ejω)|ω=ΩT= X(ejΩT) ) )

( )

(

( X jΩ =

x t ejΩtdt
(8)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 15

Fourier transform of x[n]

is simply a frequency-scaled version of with

retains a spacing between samples equal to the sampling period T while always has unity space.

−∞

=

−∞

=

=

=

k c k

c j

T j k T X

T k j T

T X e

X 2 )

1 ( 2 ))

( 1 (

)

( ω ω π ω π

ΩT ω =

) (

| ) ( )

( j T j T

s j X e X e

X Ω = ω ω=Ω = Ω

−∞

=

Ω

Ω

= Ω

k

s

c j k

T X j

X 1 ( ( ))

)

s(

) (jΩ Xs )

(ejω X

] [n x )

(t xs

Sampling and reconstruction of Sin Signal

) 4000 (

) 4000 (

) ( )

(t X jΩ =πδ Ω π +πδ Ω+ π

xc c

) cos(

) ) 3 / 2 cos((

) 4000 cos(

) ( ] [

aliasing no

12000 /

2 6000

/ 1

4000 )

4000 cos(

) (

0 0

n n

nT nT

x n x

T T

t t

x

c

s c

ω π

π

π π

π π

=

=

=

=

=

= Ω

=

= Ω

=

T T

j X j

X e

X( jω)= s( Ω)|Ω=ω/T= s( ω/ ) with normalizedfrequency ω=Ω

) 16000 cos(

) (

about How

t t

xc = π

−∞

=

Ω

Ω

= Ω

k

s

c j k

T X j

X 1 ( ( ))

)

s(

(9)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 17

Part III: Reconstruction

„

Periodic sampling

„

Frequency domain representation

„

Reconstruction

„

Changing the sampling rate using discrete- time processing

Requirement for reconstruction

„

On the basis of the sampling theorem, samples represent the signal exactly when:

‰ Bandlimited signal

‰ Enough sampling frequency

‰ + knowledge of the sampling period Æ recover the signal

(10)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 19

Reconstruction steps

Given x[n] andT,the impulse train is

i.e. the nth sample is associated with the impulse at t=nT.

The impulse train is filtered by an ideal lowpass CT filter with impulse response

−∞

=

−∞

=

=

=

n n

c

s t x nT t nT xn t nT

x () ( )δ( ) [ ]δ( )

−∞

=

=

n

r

r t x n h t nT

x () ( ) ( )

(2) (1)

) (t hr

) ( ) ( )

( r j T

r j H j X e

X Ω = Ω Ω

) ( Ω

Hr j

Ideal lowpass filter

„

T t

T t t

hr

/ ) / ) sin(

( π

= π

s T

c /2 /

as frequncy cutoff

choose Commonly

π

= Ω

= Ω

(11)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 21

Ideal lowpass filter interpolation

CT signal

Modulated impulse train

−∞

=

=

n

r t nT T

T nT n t

x t

x ( )/

) / ) ( ]sin(

[ )

( π

π

Ideal discrete-to-continuous-time converter

(12)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 23

discrete-to-continuous-time converter

From http://en.wikipedia.org/wiki/Digital-to-analog_converter.

Ideally sampled signal. Piecewise constant signal typical of a practical DAC output.

“Practical DACs do not output a sequence of dirac impulses (that, if ideally low-pass filtered, result in the original signal before sampling) but instead output a sequence of piecewise constant values or rectangular pulses”

Applications

(13)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 25

Part IV: Changing the sampling rate

„

Periodic sampling

„

Frequency domain representation

„

Reconstruction

„

Changing the sampling rate using discrete- time processing

Downsampling

By reconstruction & re-sampling though not desirable Using DT processing only:

„ Sampling rate reduction by an integer factor – downsampling by “sampling” it

) ( ] [ ]

[n xnM x nMT

xd = = c

) ' ( ] [ '

) ( ] [

nT x n x

nT x n x

c c

=

=

(14)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 27

Frequency domain

„ DT Fourier transform xd[n]= x[nM]=xc(nMT)

<

<

<

<

+

=i kM k i M r

r , , 0 1,

−∞

=

−∞

=

−∞

=

=

=

=

r c r

c j

d

k c j

MT r j MT MT X

T r j T T X

e X

T k j T T X

e X

2 )) ( 1 (

')) 2 ( ' ' (

) 1 (

2 )) ( 1 (

) (

π ω

π ω

π ω

ω ω

∑ ∑

=

−∞

=

=

−∞

=

=

=

=

1

0

/ ) 2 ( /

) 2 (

1

0

) 1 (

) (

2 )) ( 2

1 ( ) (

Since

2 ))]

( 2 1 (

1 [ ) (

M

i

M i j j

d

k c M

i j

M

i k

c j

d

e M X e X

T k MT

i j MT T X

e X

MT i T

k j MT

T X e M

X

π ω ω

π ω ω

π π ω

π π ω

Similar to the Eq. above!

Frequency domain - an example

„ Sampling results in copies at

„ Same, downsampling generates M copies of . with frequency scaled by M and shifted.

„ Aliasing can be avoided if is bandlimited

T n nΩs =2 π/

) (ejω X

N N j

M e

X

ω π

π ω ω

ω

2 / 2 and

2

|

| , 0 ) (

=

) (ejω X

This example N

s = Ω

Ω 4

(15)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 29

Frequency domain - an example

Downsampling factor is too large, causing aliasing, resulting in the need for DT ideal lowpass filter with cutoff frequency pi/M To avoid aliasing in

downsampling by a factor of M requires that

π ωNM <

T' N N=Ω ω

A general downsampling system

„ The system is also called decimator

„ The process is called decimation

(16)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 31

Increasing sampling rate – upsampling

„ DownsamplingÆ analogous to sampling a CT signal

„ UpsamplingÆ analogous to D/C conversion

,...

2 , , 0 ), / ( ] / [ ]

[n x n L x nT L n L L

xi = = c = ± ±

L T T nT

x n x

nT x n x

c i

c

=

=

=

' ), ' ( ] [

) ( ] [

Expander

−∞

=

=

= ± ±

=

k e e

kL n k x n x

L L n L n n x x

] [ ] [ ] [

otherwise , 0

...

, , , 0 ], / ] [ [

δ

Fourier domain

„ Fourier transform of the output of expander

Which is s frequency scaled version, wis replaced by wLso

' ΩT ω=

) ( ]

[

) ] [ ] [ ( ) (

] [ ] [ ] [

L j k

Lk j

n j

n k

j e

k e

e X e

k x

e kL n k x e

X

kL n k x n x

ω ω

ω

ω δ

δ

=

=

=

=

∑ ∑

−∞

=

−∞

=

−∞

=

−∞

=

(17)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 33

An example

DTFT of

System: interpolator Process: interpolation

) ( ]

[n x nT

x = c

) ( )

( j j L

e e X e

X ω = ω

Summary

„

Periodic sampling

„

Frequency domain representation

„

Reconstruction

„

Changing the sampling rate using discrete-

time processing

(18)

Digital Signal Processing, IV, Zheng-Hua Tan, 2006 35

Course at a glance

Discrete-time signals and systems

Fourier-domain representation

DFT/FFT

System structures

Filter structures Filter design Filter

z-transform MM1

MM2

MM9,MM10 MM3

MM6

MM4

MM7 MM8

Sampling and

reconstruction MM5

System analysis System

Referensi

Dokumen terkait

In words, each sample in the frequency domain is found by multiplying the time domain signal by the sine or cosine wave being looked for, and adding the resulting points. If

Frequency Domain FD Feature References Frequency domain feature illustrated the EMG signal power spectrum density PSD in frequency representation [6].. FD features such as the mean

Types of signals „ The independent variable may be either continuous or discrete ‰ Continuous-time signals ‰ Discrete-time signals are defined at discrete times and represented as

Sampling method 2 • Problem is solved by choosing a sample rate of 2.5 times the largest frequency of interest • Using an antialiasing filter low-pass sharp-cutoff filter Aliasing

Mitra Sampling of Sampling of Bandpass Bandpass Signals Signals • The conditions developed earlier for the unique representation of a continuous-time signal by the discrete-time

There are numerous applications of Multirate Digital Signal Processing and some of them as mentioned in this paper are like Interface of digital filters with different sampling rates,

PIB 23: Digital Signal Processing in FLEX Devices Implementing DSP functions in FLEX devices provides the following advantages: ■ Parallelism—Implementing DSP algorithms in hardware

EE-360: Digital Signal Processing Course Number: EE-360 Course Title: Digital Signal Processing Course Credits: 3 3 lectures, 1 tutorial, 0 labs Course Description: Signals and