Presentation is loading. Please wait.

Presentation is loading. Please wait.

Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.

Similar presentations


Presentation on theme: "Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring."— Presentation transcript:

1 Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring 2017 Lecture 7 http://www.ece.utexas.edu/~bevans/courses/realtime Interpolation and Pulse Shaping

2 7 - 2 Outline Discrete-to-continuous conversion Interpolation Pulse shapes Rectangular Triangular Sinc Raised cosine Sampling and interpolation demonstration Conclusion

3 Data Conversion Analog-to-Digital Conversion Lowpass filter has stopband frequency less than ½ f s to reduce aliasing at sampler output (enforce sampling theorem) Digital-to-Analog Conversion Discrete-to-continuous conversion could be as simple as sample and hold Lowpass filter has stopband frequency less than ½ f s to reduce artificial high frequencies Analog Lowpass Filter Discrete to Continuous Conversion fsfs Lecture 7 Analog Lowpass Filter Quantizer Sampler at sampling rate of f s Lecture 8Lecture 4 7 - 3 Data Conversion

4 7 - 4 Discrete-to-Continuous Conversion Input: sequence of samples y[n] Output: smooth continuous-time function obtained through interpolation (by “connecting the dots”) If f 0 < ½ f s, then would be converted to Otherwise, aliasing has occurred, and the converter would reconstruct a cosine wave whose frequency is equal to the aliased positive frequency that is less than ½ f s 12 34567 n

5 7 - 5 Discrete-to-Continuous Conversion General form of interpolation is sum of weighted pulses Sequence y[n] converted into continuous-time signal that is an approximation of y(t) Pulse function p(t) could be rectangular, triangular, parabolic, sinc, truncated sinc, raised cosine, etc. Pulses overlap in time domain when pulse duration is greater than or equal to sampling period T s Pulses generally have unit amplitude and/or unit area Above formula is related to discrete-time convolution

6 7 - 6 Interpolation From Tables Using mathematical tables of numeric values of functions to compute a value of the function Estimate f(1.5) from table Zero-order hold: take value to be f(1) to make f(1.5) = 1.0 (“stairsteps”) Linear interpolation: average values of nearest two neighbors to get f(1.5) = 2.5 Curve fitting: fit four points in table to polynomal a 0 + a 1 x + a 2 x 2 + a 3 x 3 which gives f(1.5) = x 2 = 2.25 xf(x)f(x) 00.0 11.0 24.0 39.0 x 0123 1 4 9

7 7 - 7 Rectangular Pulse Zero-order hold Easy to implement in hardware or software The Fourier transform is In time domain, no overlap between p(t) and adjacent pulses p(t - T s ) and p(t + T s ) In frequency domain, sinc has infinite two-sided extent; hence, the spectrum is not bandlimited t 1 p(t)p(t) -½ T s ½ T s

8 7 - 8 Sinc Function Even function (symmetric at origin) Zero crossings at Amplitude decreases proportionally to 1/x 0 1 x sinc(x) 

9 7 - 9 Triangular Pulse Linear interpolation It is relatively easy to implement in hardware or software, although not as easy as zero-order hold Overlap between p(t) and its adjacent pulses p(t - T s ) and p(t + T s ) but with no others Fourier transform is How to compute this? Hint: Triangular pulse is equal to 1 / T s times the convolution of rectangular pulse with itself In frequency domain, sinc 2 (f T s ) has infinite two-sided extent; hence, the spectrum is not bandlimited t 1 p(t)p(t) -Ts-Ts TsTs

10 7 - 10 Sinc Pulse Ideal bandlimited interpolation In time domain, infinite overlap between other pulses Fourier transform has extent f  [-W, W], where P(f) is ideal lowpass frequency response with bandwidth W In frequency domain, sinc pulse is bandlimited Interpolate with infinite extent pulse in time? Truncate sinc pulse by multiplying it by rectangular pulse Causes smearing in frequency domain (multiplication in time domain is convolution in frequency domain)

11 7 - 11 Raised Cosine Pulse: Time Domain Pulse shaping used in communication systems W is bandwidth of an ideal lowpass response   [0, 1] rolloff factor Zero crossings at t =  T s,  2 T s, … See handout G in reader on raised cosine pulse ideal lowpass filter impulse response Attenuation by 1/t 2 for large t to reduce tail Simon Haykin, Communication Systems, 3 rd ed.

12 7 - 12 Raised Cosine Pulse Spectra Pulse shaping used in communication systems Bandwidth increased by factor of (1 +  ): (1 +  ) W = 2 W – f 1 f 1 marks transition from passband to stopband Bandwidth generally scarce in communication systems Simon Haykin, Communication Systems, 3 rd ed.

13 7 - 13 Sampling and Interpolation Demo DSP First, 2 nd ed., ch. 4, Sampling/interpolation http://dspfirst.gatech.edu/chapters/04samplin/demos/recon/index.html/ Sample sinusoid y(t) to form y[n] Reconstruct sinusoid using rectangular, triangular, or truncated sinc pulse p(t) Which pulse gives the best reconstruction? Sinc pulse is truncated to be four sampling periods long. Why is the sinc pulse truncated? What happens as the sampling rate is increased?

14 Increasing Sampling Rates Consider adding speech clip to an audio track Speech signal s[n] is sampled at 8 kHz Audio signal r[n] is sampled at 48 kHz Inefficient approach: Interpolate in continuous time Efficient approach: Interpolate in discrete time 7 - 14 Digital to Analog Converte r Analog to Digital Converter 8000 Hz48000 Hz s[n]s[n] + r[n]r[n] FIR Filter 6 s[n]s[n] + r[n]r[n] Upsampling Interpolation

15 Increasing Sampling Rates Upsampling by L Copies input sample to output and appends L-1 zeros Output has L times as many samples as input samples Audio Demonstration Plots/plays x[n] which is a 600 Hz cosine sampled at 8000 Hz Plots/plays v[n]: spectrum is spectrum of x[n] plus L-1 replicas Interpolation filter fills in inserted zero values in time domain and attenuates replicas in frequency domain due to upsampling Rectangular, triangular and truncated sinc filters used 7 - 15 FIR Filter 6 x[n]x[n] Upsampling Interpolation v[n]v[n] y[n]y[n]

16 7 - 16 Conclusion Discrete-to-continuous time conversion involves interpolating between known discrete-time samples y[n] using pulse shape p(t) Common pulse shapes Rectangular for same-and-hold interpolation Triangular for linear interpolation Sinc for optimal bandlimited linear interpolation but impractical Truncated sinc or raised cosine for practical interpolation Truncation in time causes smearing in frequency 12 34567 n


Download ppt "Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring."

Similar presentations


Ads by Google