Generating Sinusoidal Signals Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 445S Real-Time Digital.

Slides:



Advertisements
Similar presentations
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Advertisements

EE445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 15 Quadrature Amplitude Modulation (QAM) Transmitter Prof. Brian L. Evans Dept. of Electrical.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Noise on Analog Systems
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Transmission Slide 1 Continuous & Discrete Signals.
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Amplitude Modulation Wei Li CSULB May 22, 2006.
Lecture 3 Data Encoding and Signal Modulation
Science is organized knowledge. Wisdom is organized life.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Random Processes and LSI Systems What happedns when a random signal is processed by an LSI system? This is illustrated below, where x(n) and y(n) are random.
Formatting and Baseband Modulation
DSP. What is DSP? DSP: Digital Signal Processing---Using a digital process (e.g., a program running on a microprocessor) to modify a digital representation.
Modulation, Demodulation and Coding Course
Lecture 1 Signals in the Time and Frequency Domains
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Spring.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Fall.
Digital Communication I: Modulation and Coding Course
Review for Midterm #2 Wireless Networking and Communications Group 14 September 2015 Prof. Brian L. Evans EE 445S Real-Time Digital Signal Processing Laboratory.
Digital Pulse Amplitude Modulation (PAM)
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 382C-9 Embedded Software Systems Lecture 14 Communication.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Fall.
Digital Signal Processing
EE345S Real-Time Digital Signal Processing Lab Fall 2006 Lecture 16 Quadrature Amplitude Modulation (QAM) Receiver Prof. Brian L. Evans Dept. of Electrical.
EE 445S Real-Time Digital Signal Processing Lab Fall 2013 Lab #2 Generating a Sine Wave Using the Hardware & Software Tools for the TI TMS320C6748 DSP.
Interpolation and Pulse Shaping
Quadrature Amplitude Modulation (QAM) Transmitter
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 313 Linear Systems and Signals Spring 2013 Continuous-Time.
Signals and Systems Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 382C-9 Embedded Software Systems.
Lecture 1B (01/07) Signal Modulation
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Spring.
Signals Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 313 Linear Systems and Signals Fall 2010.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
Chapter 6. Effect of Noise on Analog Communication Systems
Analog Signals No. 1  Seattle Pacific University Band Limited Signals: Sending Analog Data with Band Limited Signals Based on Chapter 5 of William Stallings,
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
EE 3220: Digital Communication
Demodulation of DSB-SC AM Signals
EE445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 16 Quadrature Amplitude Modulation (QAM) Receiver Prof. Brian L. Evans Dept. of Electrical.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE345S Real-Time Digital Signal Processing Lab Fall.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
Software Defined Radio PhD Program on Electrical Engineering Sampling Theory and Quantization José Vieira.
Prof. Nizamettin AYDIN Advanced Digital Signal Processing 1.
Sampling and Aliasing.
Continuous-time Signal Sampling
Single carrier  Multicarrier  OFDM Single Carrier - ISI, Receiver complexity  ISI, Bit rate limitation Multi-carrier - Negligible ISI, Approximately.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 3
8.0 Communication Systems Modulation: embedding an information-bearing signal into a second signal e.g. – purposes : locate the signal on the right band.
EE345S Real-Time Digital Signal Processing Lab Fall 2006 Lecture 17 Fast Fourier Transform Prof. Brian L. Evans Dept. of Electrical and Computer Engineering.
Chapter 2 Ideal Sampling and Nyquist Theorem
EE445S Real-Time Digital Signal Processing Lab Fall 2016 Lecture 16 Quadrature Amplitude Modulation.
Communications and Signal Processing Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin June 12, 2002.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
디지털통신 Bandpass Modulation 1 임 민 중 동국대학교 정보통신공학과.
Sampling and Aliasing Prof. Brian L. Evans
Principios de Comunicaciones EL4005
Sampling and Reconstruction
Fast Fourier Transform
Generating Sinusoidal Signals
لجنة الهندسة الكهربائية
Quadrature Amplitude Modulation (QAM) Transmitter
Quadrature Amplitude Modulation (QAM) Transmitter
Fast Fourier Transform
Lab 6: Week 1 Quadrature Amplitude Modulation (QAM) Transmitter
Presentation transcript:

Generating Sinusoidal Signals Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE 445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 1

1-2 Outline Bandwidth Sinusoidal amplitude modulation Sinusoidal generation Design tradeoffs

1-3 Bandwidth Non-zero extent in positive frequencies Applies to continuous-time & discrete-time signals In practice, spectrum won’t be ideally bandlimited Thermal noise has “flat” spectrum from 0 to Hz Finite observation time of signal leads to infinite bandwidth Alternatives to “non-zero extent”? Ideal Lowpass Spectrum f max -f max f Bandwidth f max Ideal Bandpass Spectrum f1f1 f2f2 f –f2–f2 –f1–f1 Bandwidth W = f 2 – f 1 Bandwidth

1-4 Lowpass Signal in Noise How to determine f max ? Apply threshold and eyeball it  OR  Estimate f max that captures certain percentage (say 90%) of energy In practice, (a) use large frequency in place of  and (b) integrate a measured spectrum numerically Lowpass Spectrum in Noise f Idealized Lowpass Spectrum f max -f max f Bandwidth approximate Baseband signal: energy in frequency domain concentrated around DC

1-5 Bandpass Signal in Noise How to find f 1 and f 2 ? Apply threshold and eyeball it  OR  Assume knowledge of f c and estimate f 1 = f c  W/2 and f 2 = f c + W/2 that capture percentage of energy In practice, (a) use large frequency in place of  and (b) integrate a measured spectrum numerically Idealized Bandpass Spectrum f1f1 f2f2 f –f2–f2 –f1–f1 Bandpass Spectrum In Noise f fcfc - f c Bandwidth

1-6 Amplitude Modulation by Cosine y 1 (t) = x 1 (t) cos(  c t) Assume x 1 (t) is an ideal lowpass signal with bandwidth  1 Assume  1 <<  c Y 1 (  ) has (transmission) bandwidth of 2  1 Y 1 (  ) is real-valued if X 1 (  ) is real-valued Demodulation: modulation then lowpass filtering  0 1  -- X1()X1()  0 Y1()Y1() ½ -  c -   -  c +    c  c -    c +   cc ½X 1  c  ½X 1  c  lower sidebands Amplitude Modulation

1-7 Amplitude Modulation by Sine y 2 (t) = x 2 (t) sin(  c t) Assume x 2 (t) is an ideal lowpass signal with bandwidth  2 Assume  2 <<  c Y 2 (  ) has (transmission) bandwidth of 2  2 Y 2 (  ) is imaginary-valued if X 2 (  ) is real-valued Demodulation: modulation then lowpass filtering  Y2()Y2() j ½ -  c –   -  c +   cc  c –    c +   cc -j ½X 2  c  j ½X 2  c  -j ½  0 1  -- X2()X2() lower sidebands Amplitude Modulation

How to Use Bandwidth Efficiently? Send lowpass signals x 1 (t) and x 2 (t) with  1 =  2 over same transmission bandwidth Called Quadrature Amplitude Modulation (QAM) Used in DSL, cable, Wi-Fi, and LTE cellular communications Cosine modulated signal is orthogonal to sine modulated signal at transmitter Receiver separates x 1 (t) and x 2 (t) through demodulation cos(  c t) sin(  c t) x1(t)x1(t) x2(t)x2(t) s(t)s(t) Amplitude Modulation

1-9 Lab 2: Sinusoidal Generation Compute sinusoidal waveform Function call Lookup table Difference equation Output waveform off chip Polling data transmit register Software interrupts Quantization effects in digital-to-analog (D/A) converter Expected outcomes are to understand Signal quality vs. implementation complexity tradeoff Interrupt mechanisms Sinusoidal Generation

1-10 Sinusoidal Waveforms One-sided discrete-time cosine (or sine) signal with fixed-frequency  0 in rad/sample has form cos(  0 n) u[n] Consider one-sided continuous-time analog- amplitude cosine of frequency f 0 in Hz cos(2  f 0 t) u(t) Sample at rate of f s by substituting t = n T s = n / f s (1/T s ) cos(2  (f 0 / f s ) n) u[n] Discrete-time frequency  0 = 2  f 0 / f s in units of rad/sample Example: f 0 = 1200 Hz and f s = 8000 Hz,  0 = 3/10  How to determine gain for D/A conversion? Design Tradeoffs in Generating Sinusoidal Signals

1-11 Math Library Call in C Uses double-precision floating-point arithmetic No standard in C for internal implementation Appropriate for desktop computing On desktop computer, accuracy is a primary concern, so additional computation is often used in C math libraries In embedded scenarios, implementation resources generally at premium, so alternate methods are typically employed GNU Scientific Library (GSL) cosine functionGNU Scientific Library (GSL) Function gsl_sf_cos_e in file specfunc/trig.c Version 1.8 uses 11 th order polynomial over 1/8 of period 20 multiply, 30 add, 2 divide and 2 power calculations per output value (additional operations to estimate error) Design Tradeoffs in Generating Sinusoidal Signals

1-12 Efficient Polynomial Implementation Use 11 th -order polynomial Direct form a 11 x 11 + a 10 x 10 + a 9 x a 0 Horner's form minimizes number of multiplications a 11 x 11 + a 10 x 10 + a 9 x a 0 = (... (((a 11 x + a 10 ) x + a 9 ) x... ) + a 0 Comparison RealizationMultiply Operations Addition Operations Memory Usage Direct form Horner’s form Design Tradeoffs in Generating Sinusoidal Signals

1-13 Difference Equation Difference equation with input x[n] and output y[n] y[n] = (2 cos  0 ) y[n-1] - y[n-2] + x[n] - (cos  0 ) x[n-1] From inverse z-transform of z-transform of cos(  0 n) u[n] Impulse response gives cos(  0 n) u[n] Similar difference equation for sin(  0 n) u[n] Implementation complexity Computation: 2 multiplications and 3 additions per cosine value Memory Usage: 2 coefficients, 2 previous values of y[n] and 1 previous value of x[n] Drawbacks Buildup in error as n increases due to feedback Fixed value for  0 Initial conditions are all zero Design Tradeoffs in Generating Sinusoidal Signals

1-14 Difference Equation If implemented with exact precision coefficients and arithmetic, output would have perfect quality Accuracy loss as n increases due to feedback from Coefficients cos(  0 ) and 2 cos(  0 ) are irrational, except when cos(  0 ) is equal to -1, -1/2, 0, 1/2, and 1 Truncation/rounding of multiplication-addition results Reboot filter after each period of samples by resetting filter to its initial state Reduce loss from truncating/rounding multiplication-addition Adapt/update  0 if desired by changing cos(  0 ) and 2 cos(  0 ) Design Tradeoffs in Generating Sinusoidal Signals

1-15 Lookup Table Precompute samples offline and store them in table Cosine frequency  0 = 2  N / L Remove all common factors between integers N and L Continuous-time period for cos(2  f 0 t) is T 0 = 1 / f 0 Discrete-time period for cos(2  (N / L) n) is L samples Store L samples in lookup table (N continuous-time periods) Built-in lookup tables in read-only memory (ROM) Samples of cos(  ) and sin(  ) at uniformly spaced values for  Interpolate values to generate sinusoids of various frequencies Allows adaptation of  0 if desired Design Tradeoffs in Generating Sinusoidal Signals

1-16 Design Tradeoffs Signal quality vs. implementation complexity in generating cos(  0 n) u[n] with  0 = 2  N / L MethodMACs/ sample ROM (words) RAM (words) Quality in floating pt. Quality in fixed point C math library call 30221Second Best N/A Difference equation 223WorstSecond Best Lookup table 0L0Best MAC Multiplication-accumulation RAM Random Access Memory (writeable) ROM Read-Only Memory Design Tradeoffs in Generating Sinusoidal Signals