This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: What Does a DSP System Look Like Inside ? Example: Numerical Integration (integrate a continuous – time signal using numerical methods) t y [n] = y[n1]+ H x [n1] A "Difference Equation"!! y (t) = g87 g87 g179 d x ) ( By letting y [n] = y(nH) and x[n]=x(nH) What Does a DSP System Look Like Inside ? x [n] y[n] Example: Numerical Integration x [n1] H x [n] y[n] Input Output H Delay 1 Sample g14 y [n1] Delay 1 Sample Define: x [n] = Input at "current" sample index 'n' x [n1] = Input at "previous" sample index (n1) Define: y [n] = Output at "current" sample index 'n' How could we implement this Digital Filter in software?? // Repeat for the all samples for (n=0; n<number of samples; n++) // Handle the “initial conditions” for the 1 st output sample x_n_minus_1 = 0; y_n_minus_1 = 0; // Initialize variables, and other software “stuff ” H=numerical_integration_increment; Using C/ C++/MATLAB, etc. for (n 0; n number_of_samples; n ) { // Compute the new “current” output signal using diff. equ. y(n) = y_n_minus_1+H* x_n_minus_1; // Get a new “current” input sample and remember it as the “previous” input for next cycle x_n_minus_1 =x(n); // Remember the current output as the “previous” output for next cycle y_n_minus_1 = y(n); } TA D AAAA!!! EE 328 DiscreteTime Signals & Systems DiscreteTime Signals (Part 1) Sampled versions Of ContinuousTime Signals Sampled versions Of ContinuousTime Signals DISCRETETIME SIGNALS Where Do They Come From? t s x [n] x c (t) x [n] = x c ( t )  t = nts t s = "sampling interval" n = integer index Sequence of numeric values • Defined only at particular (discrete) instants of time that are integer multiples of the sampling interval Discrete Time n Continuous Time Varying Analog Voltage • Defined for any value of “t” x c (1.00219234) = 3.42598 t 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Notation / Conventions x c ( t ) Parentheses indicate continuoustime x [ n ] Square Brackets indicate discretetime x[ n ] = { 6, 3, 7, 5, 2, 1, … } “Numeric Sequence Notation ”: Braces enclose sequence list g160 indicates index origin (n=0) Indicates sequence goes on to g102 (If not shown, assume all unspecified samples=0 n = {2,1, 0, 1, 2, 3, … Notation / Conventions • Once sampled, we loose our direct reference to time for each element in the sequence x[n] becomes “just a list of numbers” – x[n] becomes just a list of numbers – Need to specify t s sampling interval to...
View
Full
Document
This note was uploaded on 08/13/2010 for the course EE EE 328 taught by Professor Breiteach during the Spring '10 term at Cal Poly.
 Spring '10
 Breiteach

Click to edit the document details