Intro to DSP: Sampling. with GNU Radio Jeff Long

Similar documents
Multirate Digital Signal Processing

Research Results in Mixed Signal IC Design

Data Converter Overview: DACs and ADCs. Dr. Paul Hasler and Dr. Philip Allen

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

High Performance Real-Time Software Asynchronous Sample Rate Converter Kernel

DDC and DUC Filters in SDR platforms

International Journal of Engineering Research-Online A Peer Reviewed International Journal

Adaptive Resampling - Transforming From the Time to the Angle Domain

Sensor Development for the imote2 Smart Sensor Platform

Digital Front End (DFE) Training. DFE Overview

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

ni.com Digital Signal Processing for Every Application

NanoGiant Oscilloscope/Function-Generator Program. Getting Started

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

Politecnico di Torino HIGH SPEED AND HIGH PRECISION ANALOG TO DIGITAL CONVERTER. Professor : Del Corso Mahshid Hooshmand ID Student Number:

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Understanding Sampling rate vs Data rate. Decimation (DDC) and Interpolation (DUC) Concepts

Amplification. Most common signal conditioning

Getting Started with the LabVIEW Sound and Vibration Toolkit

NON-UNIFORM KERNEL SAMPLING IN AUDIO SIGNAL RESAMPLER

Module 8 : Numerical Relaying I : Fundamentals

Design and VLSI Implementation of Oversampling Sigma Delta Digital to Analog Convertor Used For Hearing Aid Application

Digitizing and Sampling

DPD80 Visible Datasheet

Dac3 White Paper. These Dac3 goals where to be achieved through the application and use of optimum solutions for:

DPD80 Infrared Datasheet

4 MHz Lock-In Amplifier

Spectrum Analyser Basics

1732 IEEE JOURNAL OF SOLID-STATE CIRCUITS, VOL. 45, NO. 9, SEPTEMBER 2010

Chapter 6: Real-Time Image Formation

Design & Simulation of 128x Interpolator Filter

10:15-11 am Digital signal processing

Problem Set #1 Problem Set Due: Friday, April 12

B I O E N / Biological Signals & Data Acquisition

Suverna Sengar 1, Partha Pratim Bhattacharya 2

Analog to Digital Conversion

RF Record & Playback MATTHIAS CHARRIOT APPLICATION ENGINEER

OPTIMIZED DIGITAL FILTER ARCHITECTURES FOR MULTI-STANDARD RF TRANSCEIVERS

Techniques for Extending Real-Time Oscilloscope Bandwidth

2 MHz Lock-In Amplifier

Converters: Analogue to Digital

Introduction to Data Conversion and Processing

GALILEO Timing Receiver

Digital Signal Processing Laboratory 7: IIR Notch Filters Using the TMS320C6711

Meeting Embedded Design Challenges with Mixed Signal Oscilloscopes

THE APPLICATION OF SIGMA DELTA D/A CONVERTER IN THE SIMPLE TESTING DUAL CHANNEL DDS GENERATOR

Efficient implementation of a spectrum scanner on a software-defined radio platform

Major Differences Between the DT9847 Series Modules

Multirate Signal Processing: Graphical Representation & Comparison of Decimation & Interpolation Identities using MATLAB

Digital Representation

ZONE PLATE SIGNALS 525 Lines Standard M/NTSC

The Effect of Time-Domain Interpolation on Response Spectral Calculations. David M. Boore

Linear Time Invariant (LTI) Systems

USB-SA124B Spectrum Analyzer User Manual

EECS 373 Design of Microprocessor-Based Systems

Analog Input & Output

AR SWORD Digital Receiver EXciter (DREX)

Supplementary Course Notes: Continuous vs. Discrete (Analog vs. Digital) Representation of Information

Chapter 14 D-A and A-D Conversion

Experiment # 5. Pulse Code Modulation

An Introduction to the Spectral Dynamics Rotating Machinery Analysis (RMA) package For PUMA and COUGAR

Sound and Vibration Data Acquisition

GENERAL PURPOSE Signal generators. R&S SMBV100A vector signal generator allrounder and specialist at the same time

Experiment 2: Sampling and Quantization

MCP Signal Extraction and Timing Studies. Kurtis Nishimura University of Hawaii LAPPD Collaboration Meeting June 11, 2010

Analog Arts SA985 SA975 SA935 SA915 Product Specifications [1]

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

Quadruple, 2:1, Mux Amplifiers for Standard-Definition and VGA Signals

PEP-II longitudinal feedback and the low groupdelay. Dmitry Teytelman

2 MHz Lock-In Amplifier

How advances in digitizer technologies improve measurement accuracy

FFT Laboratory Experiments for the HP Series Oscilloscopes and HP 54657A/54658A Measurement Storage Modules

DSP in Communications and Signal Processing

VLA-VLBA Interference Memo No. 15

Data Converters and DSPs Getting Closer to Sensors

Tempo Estimation and Manipulation

DT9857E. Key Features: Dynamic Signal Analyzer for Sound and Vibration Analysis Expandable to 64 Channels

Scanning A/D Converters, Waveform Digitizers, and Oscilloscopes

mmwave Radar Sensor Auto Radar Apps Webinar: Vehicle Occupancy Detection

AN 623: Using the DSP Builder Advanced Blockset to Implement Resampling Filters

DT8837. High Performance Ethernet Instrument Module for Sound & Vibration. Overview. Key Features

Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

VXI RF Measurement Analyzer

Dithering in Analog-to-digital Conversion

LOW POWER DIGITAL EQUALIZATION FOR HIGH SPEED SERDES. Masum Hossain University of Alberta

Feedback Control of SPS E-Cloud/TMCI Instabilities

Experiment 13 Sampling and reconstruction

Controlling adaptive resampling

Multicore Design Considerations

Combating Closed Eyes Design & Measurement of Pre-Emphasis and Equalization for Lossy Channels

Combating Closed Eyes Design & Measurement of Pre-Emphasis and Equalization for Lossy Channels

A review on the design and improvement techniques of comb filters

DT9837 Series. High Performance, USB Powered Modules for Sound & Vibration Analysis. Key Features:

Analog Arts SA985 SA975 SA935 SA915 Product Specifications

PS User Guide Series Seismic-Data Display

AND8383/D. Introduction to Audio Processing Using the WOLA Filterbank Coprocessor APPLICATION NOTE

IN DEPTH INFORMATION - CONTENTS

Realizing Waveform Characteristics up to a Digitizer s Full Bandwidth Increasing the effective sampling rate when measuring repetitive signals

Sound and Vibration Data Acquisition

Wideband Downconverters With Signatec 14-Bit Digitizers

Transcription:

Intro to DSP: Sampling with GNU Radio Jeff Long

ADC SDR Hardware Reconfigurable Logic Front End Analog Bus USB2 USB3 GBE PCI Digital Data Control Analog Signals May include multiplesystem Typical SDR Radio frequency (over the air) Phases (I/Q or Quadrature) Baseband to ADC) (RX) Antennas (input (MIMO) Continuous Real Digital Signals Represent analog Discrete Evenly spaced in time (no two are alike) Travel in groups (DMA, buffers)

Start with something simple...

Linear motion sawtooth wave Constant speed periodic signal Known start time clock sync

Measure Analog (1,0,-1,0,1,0,-1,0,1) Continuous Signal Discreet Values t Δ Tsample Tsignal = 1 / Fsignal Constant Rate Clock (Fsample)

Nyquist Rate Fsample > 2 Fsignal MAX MIN Sampling Ratio = Fsample / Fsignal = Tsignal / Tsample

Δ t 1x 2x 4x

2x sampling Time (Phase)ratio Shiftcannot represent phase t 2x Time is information!

Start ¼ period early (or late) Can we measure 2 signals with one value? Take advantage of phase different start times.

t

Fsample > 4 Fsignal I n phase S ignal Q uadrature S = I + jq 'j' means 90 out of phase t

RF communication is based on sine waves Sine and Cosine are the same function, shifted by 90 (π/2) Addition? Same function, shifted! sig1 = cos(x) sig2 = sin(x) (sig1 + sig2) * 1/ 2 Same frequency Different phases WHY? Frequency (FFT magnitude) Phase (FFT angle)

Adding Sines in the time domain is the same as adding impulses in the frequency domain Display using GNU Radio frequency sink A-major Chord 440 Hz 554 Hz 659 Hz 880 Hz Fsample = 4000 S/s

Sample rate = 4000 S/s can represent signal freq < 2000 Hz Hurts the ears 440 Hz 554 Hz 659 Hz 1000 Hz Fsample = 4000 S/s

Sample rate = 4000 S/s can represent signal freq < 2000 Hz 3120 Hz tone aliases down to 880 Hz from Second Nyquist Zone 4000-3120 = 880 A-major Chord 440 Hz 554 Hz 659 Hz 880 Hz Fsample = 4000 S/s

Sine Wave Swept 0-500 khz 1MS/s Keep 1 in 2 (Decimation) 500kS/s

Sine Wave Swept 0-500 khz 1MS/s Keep 1 in 2 (Decimation) 500kS/s Both signal AND noise will be aliased another reason to filter.

Decimator Decimator Anti Aliasing Filter Downsampling = Filtering + Decimation

Interpolator Image Reject Filter Upsampling = Interpolation + Filtering

Clocking Complications No Clock Processor Audio * Clock Domains GNU Radio does not have its own clock (* exception) Device sources and sinks have clocks Usually different clocks creating clock domains Frequency tolerances Not synced (out of phase) Must pick a clock Usually only one good choice Audio drivers will often resample (ALSA plughw:1,0)

Clocking Domains No Clock Processor Audio BAD (with ALSA hw:) Processor and Audio both working off their own clocks Over/underruns, stutter GOOD (with ALSA plughw:) Audio driver does software resampling to match clocks

Clocking Complications RTL Clock USRP Clock BAD No good way to sync clocks Will see either OOOOOOOOOO RTL buffer overrun UUUUUUUUUU USRP buffer underrun

Clocking Domains BOTH GOOD Only one clock domain Rest of flowgraph will maintain pace

Buffers

ADC Buffer Block Handling one sample at a time is slow Many blocks require multiple samples Filter history FFT and other block operations SIMD optimization Add buffering, operate on batches of samples Improves performance Increases latency Hides rate mismatches for a short time Buffer

Block Block Buffer Block Buffer Buffer Buffers hold the output of each block. GR passes items between blocks, the most common being samples. Multiple blocks can read from the same buffer. Buffer Trivia

The Vertical

Clipping t Voltage limits Representation limits Analog circuitry Maximum value ADC settings Minimum resolution

Headroom Quantization Noise Signal Level Tradeoff t

Lower resolution or lower signal = More quantization noise t Can trade off oversampling (averaging) vs resolution 1 bit of resolution ~ 2x oversampling (*) depends on noise characteristics

Common GR Types Float32 (float): 23 bits (Complex is 2 floats) Integer8 (byte): 8 bits Integer16 (short): 16 bits Integer32 (int): 32 bits Sample Types One bit for +/-

Float/Complex Can scale to any useful range Often scaled to +/- 1.0 Signed Byte/Short/Int Have fixed range +/- 127 / 32K / 2G Short Float Float Short Sink expects Source produces -1.0-1.0 ~ 1.0~ 1.0 Signal File willwill contain be clipped values near Scale 1.0 / 32767 or lower zero Scale 32767 or lower Sample Type Conversion

Sampling Window (Integration Time) t Due to capacitance in ADC Acts as a low-pass filter

What is the right rate? Real: > 2 * max signal frequency Quadrature: > 4 * max signal frequency Account for filter rolloff Oversample to reduce noise Oversample to relax filter quality requirements If aliasing is desired, undersampling is OK Hardware May not support arbitrary rates May have better quality rates Performance limits (sampler, bus, computer) Prescribed rates (LTE 10 MHz channel 15.36 MS/s)

Isolate a signal from noise and other signals Perform anti-aliasing or image-rejection (rate change) GR filters can interpolate or decimate FAQ: Why do I get 'OOOOOOOO' with a simple flowgraph? Efficiency in filtering Use the cheapest filter that does the job right Downsample as early as possible, upsample late Use multiple stages for large rate changes 1MS/s, 100 Hz transition 24091 taps ~24 GFLOPS (using FIR) Some blocks contain filters, perform rate changes Filters

ADC???