Real-Time Digital Signal Processing Lab: Signals and Systems Overview

ece 445s real time digital signal processing n.w
1 / 24
Embed
Share

Explore the fundamentals of signals and systems in real-time digital signal processing, covering topics such as continuous-time vs. discrete-time signals, unit impulse, system properties, sampling, and more. Dive into the theory and applications with Prof. Brian L. Evans at The University of Texas at Austin.

  • Digital Signal Processing
  • Signals
  • Systems
  • Real-Time
  • UT Austin

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. ECE 445S Real-Time Digital Signal Processing Lab Spring 2025 Signals and Systems Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 3 http://www.ece.utexas.edu/~bevans/courses/realtime

  2. Outline Signals Continuous-time vs. discrete-time Analog vs. digital Unit impulse 1 -1 Continuous-Time System Properties Sampling Discrete-Time System Properties 3 - 2

  3. Review Many Faces of Signals Function, e.g. cos(t) in continuous time or cos( n) in discrete time, useful in analysis Sequence of numbers, e.g. {1,2,3,2,1} or a sampled triangle function, useful in simulation Set of properties, e.g. even and causal, useful in reasoning about behavior A piecewise representation, e.g. useful in analysis A generalized function, e.g. (t), useful in analysis for t >0 1 1 2 0 u t ( )= for t =0 for t <0 for n 0 1 0 otherwise u[n]= 3 - 3

  4. Review Signals As Functions Continuous-time x(t) Time, t, is any real value x(t) may be 0 for range of t Discrete-time x[n] n {...-3,-2,-1,0,1,2,3...} Integer time index, e.g. n Analog amplitude Real or complex value Digital amplitude From discrete set of values 1 -1 Continuous-Time Signal Sampler Discrete-Time Signal Analog Amplitude Signal Quantizer Digital Amplitude Signal 3 - 4

  5. Review Continuous-Time Unit Impulse 1 t Mathematical idealism for an instantaneous event Dirac delta as generalized function (a.k.a. functional) Selected properties = ( ) rect P t 2 2 1 ( ) t ( ) t = 2 lim P 0 t 2 = = Area lim 1 Unit Area 2 0 ( dt t =1 ) Unit area: ( ) t = Sifting: providedg(t) is defined att = 0 (0) is infinity or undefined (both are defensible answers) ( ) ( ) ) 0 ( g g t t dt (1) Unit Area t 0 3 - 5

  6. Review Continuous-Time Unit Impulse (t) under integration Other examples Assuming (t) is defined at t=0 What about? What about at origin? What about? t >0 t =0 t <0 1 ? 0 t d t ( )dt - = = u(t) By substitution of variables, u(0) can take any value Common values: 0, , 1 3 - 6 L. B. Jackson, A correction to impulse invariance, IEEE Sig. Proc. Letters, Oct. 2000.

  7. Review Systems Systems operate on signals to produce new signals or new signal representations x(t) y(t) x[n] y[n] T{ } T{ } ] ( ) t ( ) = [ ] [ = y n T x n t x y T Continuous-time system examples y(t) = x(t) + x(t-1) y(t) = x2(t) Discrete-time system examples y[n] = x[n] + x[n-1] y[n] = x2[n] Squaring function can be used in sinusoidal demodulation Average of current input and delayed input is a simple filter 3 - 7

  8. Review Continuous-Time System Properties Let x(t), x1(t), and x2(t) be inputs to a continuous- time linear system and let y(t), y1(t), and y2(t) be their corresponding outputs A linear system satisfies Additivity: x1(t) + x2(t) y1(t) + y2(t) Homogeneity: a x(t) a y(t) for any real/complex constant a For time-invariant system, shift of input signal by any real-valued causes same shift in output signal, i.e. x(t - ) y(t - ), for all Quick test to identify some nonlinear systems? 3 - 8

  9. Why are LTI properties useful? An LTI system is uniquely characterized by its impulse response Abstract away implementation details by providing an impulse response e.g. to hide intellectual property Model unknown system (even though it might not be LTI) Fourier transform of the impulse response h(t) is the frequency response of the system Hfreq(f) x(t) Time domain y(t) = h(t) * x(t) h(t) Laplace domain Y(s) = H(s) X(s) X(s) Yfreq(f) = Hfreq(f) Xfreq(f) Frequency domain Xfreq(f) 3 - 9

  10. Is a System Linear or Not? ( )2 Example: Squaring block x(t) y(t) Does the squaring block pass all-zero input test? Does the squaring block have homogeneity? x(t) ( )2 a x(t) y(t) y(t) = x2(t) yscaled(t) = (ax(t))2 yscaled(t) Check to see if yscaled(t) = ay(t) for all constant values of a (ax(t))2 = ax2(t) a2x2(t) = ax2(t) only for a = 0 and a = 1 No 3 - 10

  11. Is a System Time-Invariant or Not ( )2 Example: Squaring block x(t) y(t) Does shift in time for input always give same shift on output? y(t) x(t) ( )2 x(t-t0) yshifted(t) y(t) = x2(t) yshifted(t) = (x(t-t0))2 Check to see if yshifted(t) = y(t-t0) for all real values of t0 (x(t-t0))2 = x2(t-t0) x2(t-t0) = x2(t-t0) Yes All pointwise systems are time-invariant Output at time t only depends on input at time t 3 - 11

  12. Initial Conditions for Linear Systems Observe signals and systems starting at time t = 0 Example: Integrator 0 ? ? y(t) x(t) ( )dt t = ? ? ?? + ? ? ?? ? ? = ? ? ?? 0 Observe integrator for t 0 x(t) 0 Homogeneity: input ? ? ? for output ???????? Does ???????? = ? ? ? for all values of ?? C0 is the initial condition w/r to observation y(t) ? 0 ? ? ?? + ?0 ?0= ? ? ?? ? ? ? = ? ? ?? + ?0 0 ? ? ???????? = ? ? ? ?? + ?0= ? ? ? ?? + ?0= ? ? ? ???? ?? ??= ? 0 0 System at rest is a necessary condition for linearity

  13. Init. Cond. for Time-Invariant Systems? Observe system for t 0- Notation means to include any Dirac delta signals at origin Does yshifted(t) = y(t-t0) for all real-valued t0for ? 0 ? Handouts for example systems Time-Invariance for a (Shift) System Under Observation Time-Invariance for an Integrator link link 3 - 13

  14. Continuous-Time System Properties Ideal delay by T seconds y(t) x(t) Role of initial conditions? ( ) t = T ( ) y x t T Linear? Time-invariant? Scale by a constant (a.k.a. gain block) Two different ways to express it in a block diagram x(t) y(t) x(t) y(t) ( ) t = ( ) y a x t 0 a 0 0 a Linear? Time-invariant? 3 - 14

  15. Continuous-Time System Properties Tapped delay line M-1 delay blocks Coefficients a0, a1, aM-1 Linear? Time-invariant? ( ) x t T ( ) t x T T T Role of initial conditions? 0 a 1a a a 2 1 M M Impulse response h(t) lasts (M-1)T seconds: M-1 h t ( )= amd t-mT ( ) ( ) t y m=0 h(t) (a1) y(t) = a0x(t) + a1x(t T) + + aM-1x(t (M-1)T) (M-1)T t 1 M ( ) t ( ) = m = y a x t m T T m 0 (a0) (aM-1)

  16. Continuous-Time System Properties Amplitude Modulation (AM) y(t) = Ax(t) cos(2 fc t) fc carrier frequency A is a constant Linear? Time-invariant? Linearity: Does system pass all-zero input test? y(t) x(t) y(t) x(t) A cos(2 fc t) y(t) = Ax(t) cos(2 fc t) yscaled(t) = A (ax(t)) cos(2 fc t) a x(t) yscaled(t) = a (Ax(t) cos(2 fc t)) = ay(t) for all constants a yscaled(t) AM radio if x(t) = 1 + kam(t) where m(t) is audio to be broadcast and |kam(t)| < 1 (see lecture 19) 3 - 16

  17. Review Discrete-Time Signals Conversion of signals Sampling: Continuous-Time to Discrete-Time Reconstruction: Discrete-Time to Continuous-Time f0 = 440; fs = 24*f0; Ts = 1/fs; tmax = 1/f0; t = 0 : Ts : tmax; x = cos(2*pi*f0*t); plot(t, x); figure; stem(t, x); sampling reconstruction t cosine at 440 Hz sampling rate: 10560 Hz sampling period: 94.7 s 3 - 17

  18. Review Generating Discrete-Time Signals Many signals originate in continuous time Example: Talking on cell phone Sample continuous-time signal at equally-spaced points in time to obtain a sequence of numbers s[n] = s(n Ts) for n { , -1, 0, 1, } How to choose sampling period Ts ? Using a formula Discrete-time impulse [n] on right How does [n] look in continuous time? Sampled analog waveform s(t) Ts t Ts [n] 1 n -3 -2 -1 1 2 3 3 - 18

  19. Aliasing Example Sample 30 kHz sinusoid using 48 kHz sampling rate 3 - 19

  20. Review Discrete-Time System Properties Let x[n], x1[n] and x2[n] be inputs to a linear system Let y[n], y1[n] and y2[n] be corresponding outputs A linear system satisfies Additivity: x1[n] + x2[n] y1[n] + y2[n] Homogeneity: a x[n] a y[n] for any real/complex constant a For a time-invariant system, a shift of input signal by any integer-valued m causes same shift in output signal, i.e. x[n - m] y[n - m], for all m Role of initial conditions? 3 - 20

  21. Why are LTI properties useful? An LTI system is uniquely characterized by its impulse response Abstract away implementation details by providing an impulse response e.g. to hide intellectual property Model an unknown system assumed to be LTI Fourier transform of the impulse response h[n] is the frequency response of the system Hfreq( ) x[n] Time domain y[n] = h[n] * x[n] h[n] Z domain Y(z) = H(z) X(z) X(z) Yfreq( ) = Hfreq( ) Xfreq( ) Xfreq( ) Frequency domain 3 - 21

  22. Discrete-Time System Properties Tapped delay line in discrete time See also slide 5-4 M-1 delay blocks where z-1 is delay of 1 sample: [ n x ] 1 [n x ] 1 z 1 1 1 M z z = m = [ ] [ ] y n a x n m m 0 a 0 a 1a a 1 M Coefficients a0a1 aM-1 are impulse response: M-1 aM-1 2 M h[n]= amd[n-m] m=0 [n y ] h[n] a0 Linear? Time-invariant? Role of initial conditions? n 1 M-1 M -1 2 a1

  23. Averaging Filter Continuous time Averages input signal over previous T seconds Discrete time Averages current and previous M-1 samples Linear? Time-invariant? Impulse response: Linear? Time-invariant? Hint: Tapped delay line with am = 1/M for m in[0, M-1] h[n] h(t) n See Designing Averaging Filters Handout See Designing Averaging Filters Handout t M-1 M 0 -1 0 1 2 T 3 - 23

  24. First-Order Difference Filter Continuous time Discrete time f(t) y(t) d () d f[n] y[n] () dt dt d d n ( ) ( ( ) ( ( ) t ( ) ( ) t f = = y y nT f t = y f t s dt dt = t nT ) ) s ( t ) f nT f nT T f t t = lim f s s s = lim T 0 T 0 t s s n 1 = f n Linear? Time-invariant? Linear? Time-invariant? Hint: Tapped delay line with a0 = 1 and a1 = -1 See also slide 5-19 3 - 24

Related


More Related Content