The 29 th Annual ARRL and TAPR Digital Communications Conference. DSP Short Course Session 1: DSP Intro and Basics. Rick Muething, KN6KB/AAA9WK

Similar documents
The 29 th Annual ARRL and TAPR Digital Communications Conference. DSP Short Course Session 4: Tricks of the DSP trade. Rick Muething, KN6KB/AAA9WK

The 29 th Annual ARRL and TAPR Digital Communications Conference. DSP Short Course Session 3: How to use DSP. Rick Muething, KN6KB/AAA9WK

How to Utilize a Windowing Technique for Accurate DFT

THE BENEFITS OF DSP LOCK-IN AMPLIFIERS

SAMPLING THEORY. Representing continuous signals with discrete numbers

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

Topic 6. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

The Fundamentals of Mixed Signal Testing

The Fast Fourier Transform

DOPPLER SHIFTED SPREAD SPECTRUM CARRIER RECOVERY USING REAL-TIME DSP TECHNIQUES

Spectrum Analysis - Elektronikpraktikum

Application Note (A12)

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

Frequency Domain Representation of Signals

Time Matters How Power Meters Measure Fast Signals

Spectrum Analysis: The FFT Display

ECEGR Lab #8: Introduction to Simulink

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.

ME scope Application Note 01 The FFT, Leakage, and Windowing

Orthogonal frequency division multiplexing (OFDM)

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Signals, systems, acoustics and the ear. Week 3. Frequency characterisations of systems & signals

2) How fast can we implement these in a system

Acoustics, signals & systems for audiology. Week 3. Frequency characterisations of systems & signals

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

Testing Power Sources for Stability

Discrete Fourier Transform (DFT)

EET 223 RF COMMUNICATIONS LABORATORY EXPERIMENTS

Lab 3 FFT based Spectrum Analyzer

Modulation. Digital Data Transmission. COMP476 Networked Computer Systems. Analog and Digital Signals. Analog and Digital Examples.

This tutorial describes the principles of 24-bit recording systems and clarifies some common mis-conceptions regarding these systems.

Chapter 6: DSP And Its Impact On Technology. Book: Processor Design Systems On Chip. By Jari Nurmi

Linguistic Phonetics. Spectral Analysis

Digital Receiver Experiment or Reality. Harry Schultz AOC Aardvark Roost Conference Pretoria 13 November 2008

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

ELC224 Final Review (12/10/2009) Name:

the DA service in place, TDRSS multiple access (MA) services will be able to be scheduled in near real time [1].

SAMPLING AND RECONSTRUCTING SIGNALS

PHYSICS 330 LAB Operational Amplifier Frequency Response

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 6 Spectrum Analysis -- FFT

Discrete Fourier Transform, DFT Input: N time samples

Time Series/Data Processing and Analysis (MATH 587/GEOP 505)

Acoustics, signals & systems for audiology. Week 4. Signals through Systems

Making Noise in RF Receivers Simulate Real-World Signals with Signal Generators

Chapter 2 Channel Equalization

Understanding Digital Signal Processing

Data Acquisition Systems. Signal DAQ System The Answer?

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

Fourier Theory & Practice, Part I: Theory (HP Product Note )

Notes on Fourier transforms

Course Overview. EELE 461/561 Digital System Design. Module #1 Digital Signaling. Course Overview. Course Overview. Course Content.

Testing and Stabilizing Feedback Loops in Today s Power Supplies

Signal Processing Toolbox

Theoretical 1 Bit A/D Converter

Laboratory Experiment #1 Introduction to Spectral Analysis

Instrumentation Receiver: Analog Signal Processing for a DSP World. Rick Campbell Portland State University

DIGITAL SIGNAL PROCESSING WITH VHDL

RFID Systems: Radio Architecture

Choosing the Best ADC Architecture for Your Application Part 3:

Simulating and Testing of Signal Processing Methods for Frequency Stepped Chirp Radar

Chapter 4. Digital Audio Representation CS 3570

Pre-Lab. Introduction

FFT Analyzer. Gianfranco Miele, Ph.D

II Year (04 Semester) EE6403 Discrete Time Systems and Signal Processing

Signal Processing for Digitizers

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

Fourier Theory & Practice, Part II: Practice Operating the Agilent Series Scope with Measurement/Storage Module

Software Defined Radio! Primer + Project! Gordie Neff, N9FF! Columbia Amateur Radio Club! March 2016!

For the system to have the high accuracy needed for many measurements,

System on a Chip. Prof. Dr. Michael Kraft

TSEK02: Radio Electronics Lecture 2: Modulation (I) Ted Johansson, EKS, ISY

EC 554 Data Communications

Choosing an Oscilloscope with the Right Bandwidth for your Application

ECEN 325 Lab 5: Operational Amplifiers Part III

Signal Processing. Naureen Ghani. December 9, 2017

When and How to Use FFT

Techniques for Extending Real-Time Oscilloscope Bandwidth

Wideband HF Channel Simulator Considerations

ELEC3104: Digital Signal Processing Session 1, 2013

Electronics A/D and D/A converters

Signals & Systems for Speech & Hearing. Week 6. Practical spectral analysis. Bandpass filters & filterbanks. Try this out on an old friend

OPERATIONAL AMPLIFIERS (OP-AMPS) II

UNIT-3. Electronic Measurements & Instrumentation

6.101 Project Proposal April 9, 2014 Kayla Esquivel and Jason Yang. General Outline

14 fasttest. Multitone Audio Analyzer. Multitone and Synchronous FFT Concepts

Fundamentals of Digital Audio *

Chapter 4 SPEECH ENHANCEMENT

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

Noise Measurements Using a Teledyne LeCroy Oscilloscope

Downloaded from 1

What is an FDM-TDM Transmultiplexer *

REAL TIME DIGITAL SIGNAL PROCESSING. Introduction

Block Diagram. i_in. q_in (optional) clk. 0 < seed < use both ports i_in and q_in

8.5 Modulation of Signals

Part 2: Fourier transforms. Key to understanding NMR, X-ray crystallography, and all forms of microscopy

8 Hints for Better Spectrum Analysis. Application Note

Transcription:

The 29 th Annual ARRL and TAPR Digital Communications Conference DSP Short Course Session 1: DSP Intro and Basics Rick Muething, KN6KB/AAA9WK

Session 1 Overview What is DSP? Why is DSP better/different than analog? What can we do with DSP What can t we do with DSP The DSP Cornerstone: The Fourier Transform Sampled data systems. The DFT The FFT algorithm to implement the DFT Some sample waveforms and their DFT transforms Important Transform Properties (caution! Math ahead) Floating point or Fixed? The NFL Theorem (No Free Lunch) Summary

What is DSP? DSP stands for Digital Signal Processing. The processing of time or frequency signals on a digital computer or dedicated DSP chip. All useful processing we might want to do to a signal can be expressed mathematically Doing this with a digital computer takes many thousands of computations what digital computer are good at! http://en.wikipedia.org/wiki/digital_signal_processing

Why is DSP Better/different than analog? DSP is done in a computer or dedicated signal processor the DSP task is program controlled more flexibility DSP can achieve higher performance. Better filters, reduced noise, better linearity, more agility. Analog processing requires active and passive components (Transistors, caps, resistors, ICs, inductors) Component tolerance and drift are issues! Digital electronics is advancing at a faster rate than analog. Calculations get Faster, more Precise, Cheaper. DSP is our opportunity to get back into experimenting with ham radio. (Look at the advancements of projects like the Flex Radio and HPSDR and the increase in sound card modes)

What can we do with DSP? Virtually any standard signal processing including: Building DSP components Oscillators, mixers, filters, etc Modulation, demodulation, noise reduction, mixing, detection, averaging, peak detection, AGC etc. Time base adjustments, Doppler correction Propagation analysis and simulation Create stealthy signals (Spread spectrum)

What can t we do with DSP? Create stealthy signals (for purposes of obscuring) Use DSP to exceed basic theoretical limits (e.g. Shannon s limit of channel capacity) Use DSP to predict random processes (e.g. You can t truly cancel out random noise) You can t make a silk purse from a sow s ear! If your sound card has only 16 bits you can t get 120 db of dynamic range. You are often limited by how much DSP computing power is available. Real time concerns. While there is a DSP concept of negative frequency you can t use that to go back to the future!

The DSP Cornerstone The Fourier Transform Just who was Joe Fourier anyway? A French mathematician and physicist 1768-1830 that showed any periodic function could be represented by a sum of harmonically related sine and cosine waves. The Fourier Transform http://en.wikipedia.org/wiki/fourier_transform

Sampled Data Systems Instead of representing signal by continuous waveforms (e.g. sine wave) we represent the signal as a series of samples in time. The Nyquist-Shannon sampling theorem states that if a function of time consists of no frequencies above B Hz then it can be represented by a series of samples spaced at 1/2B seconds apart.

Example Sampled.WAV File This.wav file plot shows the first few samples of a two tone waveform sampled at 12000 samples/sec. The Dots are the actual sample points. The wave form plotter fills in the lines to make it easier to view.

The DFT (Discrete Fourier Transform) The DFT is a method of doing the Fourier transform on the sampled data. Instead of the integrals of continuous functions of the Fourier Transforms it uses sums of products of the discrete samples. In DSP we always use the DFT because we are working with sampled data. (The digital computer also does sums of products much easier than integration!) One aspect of the DFT that can be confusing: The DFT assumes the sampled data transformed is basically a single occurrence with an infinitely long period more on that when we talk about windows in session 4 (no not Bill Gates Windows)

So then what is an FFT? The FFT (Fast Fourier Transform) is simply an efficient algorithm (Cooley-Tukey) to implement the DFT on a digital computer. It minimizes the number of multiplies and adds needed to do the transform of the sampled data. For the FFT the # of samples must be a power of 2 Even with the FFT it can take a lot of calculations! About log 2 (N) * N multiply + adds where N is the transform size For a 1024 point transform the FFT takes over 10,000 multiply + add operations You see why DSP chips are characterized in MIPS (millions of instructions/sec)? There are other algorithms (e.g. Goertzel) which can be more efficient in certain circumstances we ll look at those in the last session http://en.wikipedia.org/wiki/butterfly_diagram

A sample Waveform and its DFT Here are 2048 samples of a two tone waveform of 1500 Hz + 1547Hz. The sample rate is 12000/sec and the sample time is ~170 ms

FFT of the Two tone sample This is the plot of frequency magnitudes of the FFT of the prior wave form. Here is the spectral line for 1546.875 Hz And the Line for 1500 Hz The spectral lines are spaced Every 5.859 Hz Why is this? Why does the Frequency scale Stop at 6 KHz? This baseline and grass are artifacts (our sample was a noise free 16 bit wave file)

A More complex sample This is about 35000 samples at 12000 Hz sample rate. The waveform is a full Frame (almost 3 seconds) of 4FSK data following a two Tone leader.

And Here is the FFT This is the plot of frequency magnitudes of the FFT of the prior wave form. You can see the peaks of the four FSK frequencies used Our Frequency plot now shows this Waveform modulated with real data Has bandwidth The power rolls off Still 6 KHz With frequency which we want. (our sample Rates is 12000) Bin spacing now.342 Hz

FFT and DFT Transform Properties A simplified description: The Transform is Linear (the transform of A + B) = transform of A + the Transform of B The Transform is invertible. We can go from time to frequency and back and we have what we started with. For the full and painful description of the DFT properties go to: http://en.wikipedia.org/wiki/discrete_fourier_transform

Would You like that DFT Floating or Fixed? In the earlier days Floating point was slow and expensive (few floating DSP chips). Fixed point offers possible speed improvements and reduction in hardware and power.but! Keeping track of the scaling with Fixed point is a major headache With floating point you can forget about scaling, over/underflow, etc. Today s High end MPU chips do 64 bit floating point as fast or faster than some fixed point. Recommend starting with floating point and optimize for speed/fixed point only if needed.

NFL Theorem NFL stands for No Free Lunch! All this DSP stuff and capability comes with a price we can t get something for nothing We ve had a brief exposure to the NFL Theorem with frequency limitations and bin spacing examples of our sample DFTs. If you want wide frequency range sample fast. If you need fine frequency resolution sample long. Just remember in DSP as in life there are always tradeoffs And No Free Lunches

Session 1 Summary We ve defined DSP and looked at what we can and can t do with it. We have investigated the Fourier Transform, the DFT and the FFT Homage has been paid to Misters Fourier, Nyquist and Shannon for their significant contributions. We have looked at sample wave forms and their DFTs and reminded ourselves of the limitations of the DFT. We briefly looked at the more important properties of the DFT and Fixed and Floating point issues. We know there is No Free Lunch when it comes to DSP In our next session we ll dig into some of the tools we ll need to understand and do DSP.