Introduction to Signal Processing and Sampling and Reconstructing - - PowerPoint PPT Presentation

introduction to signal processing and
SMART_READER_LITE
LIVE PREVIEW

Introduction to Signal Processing and Sampling and Reconstructing - - PowerPoint PPT Presentation

Introduction to Signal Processing and Sampling and Reconstructing Continuous-time Signals Chaiwoot Boonyasiriwat August 14, 2020 What is Signal? Signal is a variable or function that contains information of a physical system.


slide-1
SLIDE 1

Chaiwoot Boonyasiriwat

August 14, 2020

Introduction to Signal Processing and Sampling and Reconstructing Continuous-time Signals

slide-2
SLIDE 2

2

▪ Signal is a variable or function that contains information of a physical system. ▪ Examples:

  • Audio and speech signals
  • Image and video signals
  • Medical signals: EEG, EKG, ultrasound
  • Geophysical signals: earthquakes, tide

gauge, LIDAR

  • Climate signals
  • SONAR, RADAR

What is Signal?

http://www.intechopen.com/source/html/18890/media/image4.jpeg

EEG Signal

slide-3
SLIDE 3

3

▪ Analog signal

  • Continuous signal with infinite resolution
  • Typically referred to electrical signal

converted from a physical variable by a transducer, e.g. microphone converting audio signal into electrical (analog) signal. ▪ Discrete signal: signal values are available at some discrete points in space or time ▪ Digital signal: value of discrete signal is stored with a finite precision, e.g., in computer as fixed-point or floating-point numbers.

Types of Signals

slide-4
SLIDE 4

4

A discrete-time signal can be obtained by taking samples of an analog signal where T is the sampling interval or time between samples, and sampling frequency or sampling rate (Hz). “When finite precision is used to represent the value of , the sequence of quantized values is called a digital signal.”

Sampling

Schilling and Harris (2012; p.3,12)

slide-5
SLIDE 5

5

In exploration seismology, signals are in digital form. Any system or algorithm which processes input digital signal and produces an output digital signal is a digital signal processor.

Digital Signal Processor

Schilling and Harris (2012, p.3)

S

slide-6
SLIDE 6

6

Causal signal: Acausal signal: Examples of causal signals: Heaviside step function: Dirac delta function:

Causal and Acausal Signal

Schilling and Harris (2012, p.15-16)

Sifting property of delta function

slide-7
SLIDE 7

7

▪ Continuous system: continuous input and output

▪ Discrete system: discrete input and output ▪ Linear system: ▪ Time-invariant system: ▪ Bounded signal: ▪ Stable system: every bounded input produces a bounded output (BIBO)

System Classification

Schilling and Harris (2012, p.16-18)

S

input system output

System is considered as a function or operator:

slide-8
SLIDE 8

8

▪ Forward and inverse Fourier transforms: ▪ Magnitude spectrum: ▪ Phase spectrum: ▪ Polar form: ▪ “For real , the magnitude spectrum is even function of f, and the phase spectrum is odd function of f.”

Magnitude and Phase

Schilling and Harris (2012, p.18-19)

slide-9
SLIDE 9

9

▪ Filter is a system designed to reshape the spectrum of a signal. ▪ For linear time-invariant (LTI) continuous-time system S with input and output , the frequency response is defined as where is magnitude response of S is phase response of S

Filter and Frequency Response

Schilling and Harris (2012, p.19)

slide-10
SLIDE 10

10

▪ Impulse response is the system output when the input is the unit impulse (Dirac function) ▪ It can be shown that ▪ As a result, when the system input is the unit impulse, the frequency response of the system is

Impulse Response

Schilling and Harris (2012, p.20)

slide-11
SLIDE 11

11

Ideal low-pass filter with cut-off frequency B has frequency response Recall that So, the frequency component of in the range [- B, B] passes through the filter without distortion.

Example of Continuous-Time System

Schilling and Harris (2012, p.20)

( )

a

H f

slide-12
SLIDE 12

12

Using the inverse Fourier transform on the frequency response, we obtain the impulse response of this filter as where

Impulse Response of Ideal Low-pass Filter

Schilling and Harris (2012, p.20-21)

Sinc function is an acausal output of the filter when the input is causal. “So, this filter cannot be realized with physical hardware.”

slide-13
SLIDE 13

13

Periodic impulse train with period T is defined as The sampled version of signal denoted by is defined as

Amplitude modulation

Sampling of Continuous Signals

Schilling and Harris (2012, p.21-23)

( ) 10

t a

x t te− =

slide-14
SLIDE 14

14

We then have

Sampling as Modulation

Schilling and Harris (2012, p.22)

Using the property

x(n) is a discrete-time signal.

slide-15
SLIDE 15

15

Note that is still a continuous-time signal. If is causal, we can apply the Laplace transform to the signal. For causal signals, the Fourier transform is the Laplace transform with Therefore, the spectrum of a causal signal can be obtained from its Laplace transform, i.e.,

Laplace Transform

Schilling and Harris (2012, p.22-23)

slide-16
SLIDE 16

16

Taking the Laplace transform of and then using , we then obtain the spectrum of , the sampled version of , as where

Spectrum of Sampled Signal

Schilling and Harris (2012, p.23)

Aliasing formula

slide-17
SLIDE 17

17

“A continuous-time signal is band-limited to bandwidth B if and only if its magnitude spectrum satisfies .”

Band-Limited Signal

https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/ Bandlimited.svg/300px-Bandlimited.svg.png

Schilling and Harris (2012, p.23)

slide-18
SLIDE 18

18

“The spectrum of the sampled version of a signal is a sum of scaled and shifted spectra of the original signal.” A replicated version of the spectrum of original signal is scaled by fs, the sampling frequency , and shifted by nfs where n is integer.

Aliasing Formula

Schilling and Harris (2012, p.23)

slide-19
SLIDE 19

19

Aliasing Formula

http://archives.sensorsmag.com/articles/0103/38/fig5_big.gif

  • fs
  • 2fs
  • 2fs
  • fs

Spectrum of the original signal Scaled and shifted replicas of the original spectrum

Base band Side bands Side bands

slide-20
SLIDE 20

20

The overlap of the replicas of the original spectrum (aliasing) occurs when .

Aliasing

http://archives.sensorsmag.com/articles/0103/38/fig5_big.gif

  • fs
  • 2fs
  • 2fs
  • fs

The original signal can no longer be exactly reconstructed! Why?

slide-21
SLIDE 21

21

Aliasing

Schilling and Harris (2012, p.24)

slide-22
SLIDE 22

22

“Suppose a continuous-time signal is band- limited to B Hz. Let denote the sampled version of using impulse sampling with a sampling frequency . Then the samples contain all the information necessary to recover the original signal if .”

Shannon Sampling Theorem

http://zone.ni.com/images/reference/ en-XX/help/370051T-01/aliasing_effects.gif

Schilling and Harris (2012, p.25)

slide-23
SLIDE 23

23

Nyquist frequency is defined as If has any frequency component outside of then in these frequencies get reflected about and folded back into the range This is call aliasing.

Nyquist Frequency

Schilling and Harris (2012, p.26)

slide-24
SLIDE 24

24

Undersampling: ▪ Aliasing occurs. ▪ Original signal cannot be reconstructed. Oversampling: ▪ No aliasing. ▪ Original signal can be reconstructed.

Under- and Over-Sampling

slide-25
SLIDE 25

25

Consider the signal The spectrum of is

Example: Aliasing

Adapted from Example 1.5 of Schilling and Harris (2012, p.25)

slide-26
SLIDE 26

26

To avoid aliasing, we need Hz. Let’s sample at the rate Hz. In this case, s and the samples are

Example: Aliasing

Samples of are identical to those of

slide-27
SLIDE 27

27

Example: Aliasing

O

( ) and ( )

a

x t x n ( )

a

X f ˆ ( )

a

X f ˆ ( ) X f 75

n

f = 150

s

f =

slide-28
SLIDE 28

28

▪ Signal reconstruction is to recover the spectrum from the spectrum . ▪ This can be done by passing through an ideal lowpass reconstruction filter that removes the side bands and rescales the base band.

Schilling and Harris (2012, p.27)

Reconstruction of Continuous Signal

slide-29
SLIDE 29

29

Reconstruction of Continuous Signal

Remove side bands Remove side bands

slide-30
SLIDE 30

30

The impulse response of the ideal reconstruction filter is The original continuous signal can be perfectly reconstructed by

Schilling and Harris (2012, p.28)

Reconstruction of Continuous Signal

slide-31
SLIDE 31

31

Fourier transform of the convolution of a(t) and b(t), denoted as a(t)*b(t), is the pointwise product of their Fourier transforms: where It can be shown that convolution is commutative, that is

Convolution Theorem

https://en.wikipedia.org/wiki/Convolution_theorem

slide-32
SLIDE 32

32

Schilling and Harris (2012, p.28)

Shannon Interpolation Formula

slide-33
SLIDE 33

33

“Suppose a continuous-time signal is bandlimited to B Hz. Let be the n-th sample of using a sampling frequency

  • f . If , then can be

reconstructed from as follows.” The sinc function is used here as a basis function for interpolation.

Schilling and Harris (2012, p.28)

Shannon Interpolation Formula

slide-34
SLIDE 34

34

“Let be a causal nonzero input to a continuous-time linear system, and let be the corresponding output. The transfer function

  • f the system is defined as”

Since the transfer function is the Laplace transform of the impulse response

Schilling and Harris (2012, p.29)

Transfer Function

slide-35
SLIDE 35

35

Consider the system . So,

Schilling and Harris (2012, p.29-30)

Example: Time Shift

) exp( i −

slide-36
SLIDE 36

36

▪ Exact reconstruction of using the Shannon interpolation formula required an ideal filter which cannot be realized by a physical system. ▪ The reconstruction can be approximated by a practical filter such as a zero-order hold filter ▪ The impulse response of a zero-order hold is

Zero-Order Hold

Schilling and Harris (2012, p.30) / t T

0( )

h t

slide-37
SLIDE 37

37

▪ The zero-order hold is linear and time-invariant. ▪ The response to an impulse of strength at time will be a pulse of height and width starting at ▪ When the input is , the output will be a piecewise-constant approximation to ▪ The transfer function of zero-order hold is

Zero-Order Hold

Schilling and Harris (2012, p.31)

slide-38
SLIDE 38

38

Zero-order hold can be used as a digital-to-analog converter (DAC) while an impulse sampler can be used as an analog-to-digital converter (ADC).

Digital Signal Processing System

Schilling and Harris (2012, p.31-32) Switch opens and closes every T seconds.

slide-39
SLIDE 39

39

▪ When a signal that is not bandlimited is sampled, aliasing will occur. To avoid aliasing, a lowpass filter must be applied to the signal. ▪ An anti-aliasing filter is a lowpass filter that removes all frequency components outside range where is called the cut-off frequency. ▪ The ideal lowpass filter is the optimal choice for an anti-aliasing filter. Butterworth filter is a practical filter that has been widely used as an anti-aliasing filter.

Anti-aliasing Filter

Schilling and Harris (2012, p.33)

slide-40
SLIDE 40

40

▪ “A lowpass Butterworth filter of order n has the magnitude response as follows.” ▪ At the cut-off frequency fc, and so fc is called the 3 dB cutoff frequency of the filter.

Butterworth Filter

Schilling and Harris (2012, p.33)

slide-41
SLIDE 41

41

The transfer function of a lowpass Butterworth filter of order n is

Butterworth Filter

Schilling and Harris (2012, p.33-34)

“As the order n increases, the magnitude response approaches the ideal lowpass characteristic.”

1

c

 =

slide-42
SLIDE 42

42

▪ The transfer function of the first-order Butterworth filter is ▪ The circuit realization of the first-order Butterworth filter is shown below. ▪ This circuit requires

3 operational amplifiers 6 resistors of resistance R capacitor of capacitance C and

First-Order Butterworth Filter

Schilling and Harris (2012, p.34-35)

slide-43
SLIDE 43

▪ Schilling, R. J. and S. L. Harris, 2012, Fundamentals of Digital Signal Processing using MATLAB, Second Edition, Cengage Learning.

References