introduction to discrete-time signals and systems digital

19
Reconstruction of Signals from Sample Data Dr. Ali Hussein Muqaibel Introduction to Discrete-Time Signals and Systems Digital to Analog Conversion (D2A) Dr. Ali Muqaibel

Upload: others

Post on 18-Dec-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Reconstruction of Signals from

Sample Data

Dr. Ali Hussein Muqaibel

Introduction to Discrete-Time Signals and Systems

Digital to Analog Conversion (D2A)

Dr. Ali Muqaibel

Class Objective and Outcomes

Introduction to digital to analog (D/A)

reconstruction

Reconstruction/ Interpolation

Reconstruction in the frequency domain: Low-pass filter

Interpolation in time domain: sinc function

Interpolation in time domain: sample and hold

Practical reconstruction (e.g. using RC circuit)

Understand aliasing effects for signal reconstruction

Dr. Ali Muqaibel

Class outcomes

After finishing this lecture you should be able to:

Specify the different characteristics of the reconstruction low-

pass filter.

Perform reconstruction in the time-domain utilizing the sinc

interpolation function.

Perform reconstruction using sample and data-hold in time and

frequency.

Understand the effect of practical reconstruction (e.g. using RC

circuits)

Describe the aliasing effects and the condition required to

avoid aliasing.

Dr. Ali Muqaibel

Introduction to Signal Reconstruction

The continuous signal can be reconstructed from its samples.

Recall that analog to digital conversion is important as it allows

us to process the signal in the digital domain. After the

processing is over one has to reconstruct the continuous

signal.

Reconstruction is important as the final signal (audio/video/…)

is usually required in its continuous form. Sampling

process

Continuous

Function

f(t)

Sampler

p(t)

Series of

samples

T

Reconstruction

?

Dr. Ali Muqaibel

Reconstruction: Digital to Analog Conversion

Recall that the spectrum of the sampled continuous times-signal x(t) is composed of the spectrum of x(t) plus the spectrum of x(t) translated to each harmonic of the sampling frequency.

The original signal can be perfectly reconstructed using a low-pass filter with cut-off frequency equals to fs/2 provided that the original signal was sampled at a frequency above 2fh.

… …

Fs(Ο‰)

C0 C1 C2 C-1 C-2

Ο‰h -Ο‰h Ο‰s 2Ο‰s -Ο‰s -2Ο‰s

Ο‰

Ο‰s-Ο‰h

Sampler Filter f(t)

fs (t)

f(t)

Dr. Ali Muqaibel

Aliasing

If the original signal was sampled at a rate less than twice the

highest frequency then the translated spectrums will overlap

and the original signal will not be reconstructed properly.

This effect is known as aliasing and it is illustrated in the figure

below Fs(Ο‰)

… …

C0

C1 C2 C-1 C-2

Ο‰h -Ο‰h Ο‰s 2Ο‰s

-Ο‰s -2Ο‰s

Ο‰

Ο‰s-Ο‰h

M

Dr. Ali Muqaibel

Ideal Reconstruction Filter An ideal low-pass filter can be

used to reconstruct the data. It has the following transfer function

= π‘‡π‘ π‘Ÿπ‘’π‘π‘‘πœ”

πœ”π‘ 

Using Inverse Fourier Transform

Note: that the impulse response is not time limited and non-causal.

Using the convolutional integral, we may write the constructed signal as

Since we cannot take infinite number of samples, approximately

0 .5( )

0

s sT

Hotherw ise

2 2

/ 2

/ 2

( )2

(

2

) s

2

sin2

inc

2

s

s

s sj t j t

s

s

j t

s

s

s

h t e e ej

dt

h t t

t

t

T

( ) ( ) s inc ( ) / 2s s s

n

x t x nT t nT

1

( ) ( ) s inc ( ) / 2

k l

s s s

n k l

x t x nT t nT

Dr. Ali Muqaibel

Interpolation: viewing reconstruction in the

time-domain

This equation suggests that

original signal can be

reconstructed by weighting each

sample by a sinc function centered

at the sample time and summing.

This operation is illustrated in the

figure below

1

( ) ( ) s inc ( ) / 2

k l

s s s

n k l

x t x nT t nT

Reconstruction

t

f(t) Interpolation functions

nT (n+1)T (n+2)T (n+3)T Dr. Ali Muqaibel

Example

Given the signal

To illustrate the idea of proper reconstruction and

aliasing, two different sampling frequencies are considered

(𝑓𝑠1 = 7 𝐻𝑧, π‘Žπ‘›π‘‘ 𝑓𝑠2 = 14 𝐻𝑧).

The highest frequency of the signal under consideration –

and the only frequency- is 5 Hz.

The objective is to see the effect of sampling a signal at

both a frequency less and greater than twice the highest

frequency.

( ) 6 cos 10 6 cos 2 (5)x t t t

Dr. Ali Muqaibel

Example Solution

By Fourier transform

From which, the spectrum of the

sampled signal can be easily found

For the case of fs= 7 Hz

X(Ο‰)

0 10Ο€ -10Ο€

Ο‰

6Ο€ ( ) 6 ( 10 ) ( 10 )X

6

( ) ( 1 0 ) ( 1 0 )s s s

ns

X n nT

X(f)

0 f

3*7

5 -5 12 2 -2 -12 19 9 -9 -19 26 16 -16 -26

……..

23 -23

……..

Dr. Ali Muqaibel

Solution : sampling below Nyquist rate

A low-pass filter with cut-off frequency

=fs/2=7/2=3.5 Hz is used. The amplitude of the filter

in the low-pass region should be 1/fs=1/7.

The reconstructed spectrum is shown

This is equivalent in the time domain to

β€’ Because the original signal was sampled below

Nyquist rate it could not be reconstructed

properly.

β€’ Note that the reconstructed signal is similar to

the original one with lower frequency as a result

of aliasing.

Xrecon(f)

0 2 -2 f

3

( ) 6 cos 4 6 cos 2 (2)x t t t

Dr. Ali Muqaibel

Example Solution : Above Nyquist rate

Now, let the sampling frequency be 14𝐻𝑧 which above

Nyquist rate. The spectrum of the sampled signal becomes

X(f)

0 f

3*14

5 -5 19 9 -9 -19

……..

23 -23

……..

Now, a low-pass filter with cut-off frequency

= 𝑓𝑠/2 = 7/2 = 7 𝐻𝑧. The amplitude of the filter in

the low-pass region should be 1/𝑓𝑠 = 1/14. The

reconstructed spectrum is exactly like the original

signal.

X(f)

0 5 -5 f

3

Dr. Ali Muqaibel

Practical Reconstruction

There are other different methods to reconstruct the signals

which are not exact:

In the time-domain one may use linear interpolation between the points.

Other averaging techniques are also possible.

In frequency-domain, RC circuit might be used to approximate low-pass

filter.

As shown in the figure below the reconstructed spectrum may suffer from

variation in the amplitude in the pass-band region in addition to non-zero

amplitude in the stop-band region.

… …

Xs(Ο‰)

C0 C1 C2 C-1 C-2

Ο‰ h - Ο‰ h Ο‰ s 2 Ο‰ s - Ο‰ s -2 Ο‰ s

Ο‰

Ο‰ s/2

Dr. Ali Muqaibel

Digital to Analog Conversion (Sample and

Hold)

At the output of the sample and hold D2A conversion circuit we can write

π‘₯𝑝 𝑑 = β‹―+ π‘₯ 0 𝑒 𝑑 βˆ’ 𝑒 𝑑 βˆ’ 𝑇𝑠 + π‘₯ 𝑇𝑠 𝑒 𝑑 βˆ’ 𝑇𝑠 βˆ’ 𝑒 𝑑 βˆ’ 2𝑇𝑠+ π‘₯ 2𝑇𝑠 𝑒 𝑑 βˆ’ 2𝑇𝑠 βˆ’ 𝑒 𝑑 βˆ’ 3𝑇𝑠

Which can be written in summation form as

π‘₯𝑝 𝑑 = π‘₯ 𝑛𝑇𝑠 [𝑒 𝑑 βˆ’ 𝑛𝑇𝑠 βˆ’ 𝑒 𝑑 βˆ’ 𝑛 + 1 𝑇𝑠 ]

+∞

𝑛=βˆ’βˆž

This can be realized by a system with the following impulse response

β„Ž 𝑑 = 𝑒 𝑑 βˆ’ 𝑒(𝑑 βˆ’ 𝑇𝑠)

Dr. Ali Muqaibel

Zero Order Data-Hold

As in the figure, recall that the input signal is the sampled

data signal

π‘₯𝑠 𝑑 = π‘₯ 𝑛𝑇𝑠 𝛿 𝑑 βˆ’ 𝑛𝑇𝑠+βˆžπ‘›=βˆ’βˆž

This reconstruction is known as zero-order hold

Dr. Ali Muqaibel

Frequency Domain : Zero Hold

In frequency domain

𝛿 𝑑 βˆ’ 𝑑0β„± π‘’βˆ’π‘—πœ”π‘‘0

The F.T. of the sampled signal is

𝑋𝑠 πœ” = π‘₯ 𝑛𝑇𝑠 π‘’βˆ’π‘—π‘›π‘‡π‘ πœ”

+∞

𝑛=βˆ’βˆž

The transfer function for the sample and hold system is the F.T. of the impulse

response given above

𝐻 πœ” =1 βˆ’ π‘’βˆ’π‘—π‘‡π‘ πœ”

π‘—πœ”

Using Euler’s relation and algebraic manipulation, we can rewrite the transfer

function as

𝐻 πœ” = 𝑇𝑠𝑠𝑖𝑛𝑐 (πœ‹πœ”

πœ”π‘ )π‘’βˆ’π‘—πœ‹πœ”

πœ”π‘ 

The output of the sample and data-hold is given by

𝑋𝑝 πœ” = 𝑋𝑠 πœ” 𝐻 πœ” = π‘₯ 𝑛𝑇𝑠 π‘’βˆ’π‘—π‘›π‘‡π‘†πœ”+∞

𝑛=βˆ’βˆž βˆ™ 𝑇𝑠𝑠𝑖𝑛𝑐 πœ‹πœ”

πœ”π‘ π‘’βˆ’π‘—πœ‹πœ”

πœ”π‘ 

Dr. Ali Muqaibel

Frequency Response: Zero Order Hold

Dr. Ali Muqaibel

Self Test:

Consider the following signal,

What is the minimum required sampling frequency to avoid aliasing?

If the signal is sampled at a rate of 10 samples/second, what are the possible bandwidths of the low-pass filter required to reconstruct x(t) from xs(t)?

Answer:

Greater than twice the highest frequency=2*4=8 Hz.

If we sketch the spectrum of the sampled signal. It is easy to see that the bandwidth should be between 4 & 6 Hz.

You re encouraged to sketch the spectrum of x(t) and the spectrum of xs(t)

( ) 4 cos 8 6 cos 6x t t t

Dr. Ali Muqaibel

Practice

Dr. Ali Muqaibel

Find the minimum sampling frequency. Assume ideal

components

𝑦 𝑑 = cos 300πœ‹π‘‘

𝑧 𝑑 = sin 100πœ‹π‘‘ βˆ’ cos 300πœ‹π‘‘

π‘₯ 𝑑 = 𝑠𝑖𝑛𝑐 100πœ‹π‘‘

𝑀 𝑑 = 𝑠𝑖𝑛𝑐2(100πœ‹π‘‘)

The signal with the amplitude frequency shown in the

figure is to be sampled with an ideal sampler.

Sketch the spectrum of the resulting signal for πœ” ≀ 120πœ‹ rad/s when sampling periods of 40, 50, π‘Žπ‘›π‘‘ 100π‘šπ‘  are used.

Which of the sampling frequencies is acceptable for use if the

signal is to be reconstructed with an ideal low-pass filter?