Introduction to IQ-demodulation of RF-data



Similar documents
Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

Non-Data Aided Carrier Offset Compensation for SDR Implementation

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper

SIGNAL PROCESSING & SIMULATION NEWSLETTER

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Appendix D Digital Modulation and GMSK

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

RF Measurements Using a Modular Digitizer

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

Software Defined Radio

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

Probability and Random Variables. Generation of random variables (r.v.)

Author: Dr. Society of Electrophysio. Reference: Electrodes. should include: electrode shape size use. direction.

Digital Transmission of Analog Data: PCM and Delta Modulation

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

Signal to Noise Instrumental Excel Assignment

First, we show how to use known design specifications to determine filter order and 3dB cut-off

Agilent PN Extending Vector Signal Analysis to 26.5 GHz with 20 MHz Information Bandwidth

MODULATION Systems (part 1)

Electronic Communications Committee (ECC) within the European Conference of Postal and Telecommunications Administrations (CEPT)

Em bedded DSP : I ntroduction to Digital Filters

Frequency Response of FIR Filters

Simple SDR Receiver. Looking for some hardware to learn about SDR? This project may be just what you need to explore this hot topic!

5 Signal Design for Bandlimited Channels

Motorola Digital Signal Processors

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

Impedance 50 (75 connectors via adapters)

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Time series analysis Matlab tutorial. Joachim Gross

Doppler. Doppler. Doppler shift. Doppler Frequency. Doppler shift. Doppler shift. Chapter 19

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Lab 1. The Fourier Transform

Lecture 14. Point Spread Function (PSF)

Design of FIR Filters

Understanding CIC Compensation Filters

Algebra and Geometry Review (61 topics, no due date)

Wireless Communication and RF System Design Using MATLAB and Simulink Giorgia Zucchelli Technical Marketing RF & Mixed-Signal

The continuous and discrete Fourier transforms

Digital Modulation. David Tipper. Department of Information Science and Telecommunications University of Pittsburgh. Typical Communication System

Introduction to Digital Filters

Vocabulary Words and Definitions for Algebra

Experiment 3: Double Sideband Modulation (DSB)

Higher Education Math Placement

TCOM 370 NOTES 99-4 BANDWIDTH, FREQUENCY RESPONSE, AND CAPACITY OF COMMUNICATION LINKS

Vector Signal Analyzer FSQ-K70

Analysis/resynthesis with the short time Fourier transform

Analog and Digital Signals, Time and Frequency Representation of Signals

MATRIX TECHNICAL NOTES

GSM/EDGE Output RF Spectrum on the V93000 Joe Kelly and Max Seminario, Verigy

Lezione 6 Communications Blockset

Lecture 8 ELE 301: Signals and Systems

by Anurag Pulincherry A THESIS submitted to Oregon State University in partial fulfillment of the requirements for the degree of Master of Science

14: FM Radio Receiver

Convolution, Correlation, & Fourier Transforms. James R. Graham 10/25/2005

Performance of Quasi-Constant Envelope Phase Modulation through Nonlinear Radio Channels

RANDOM VIBRATION AN OVERVIEW by Barry Controls, Hopkinton, MA

Auto-Tuning Using Fourier Coefficients

Short-time FFT, Multi-taper analysis & Filtering in SPM12

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

CDMA TECHNOLOGY. Brief Working of CDMA

PCM Encoding and Decoding:

The Fourier Analysis Tool in Microsoft Excel

Application Note Receiving HF Signals with a USRP Device Ettus Research

Introduction to Receivers

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Agilent Vector Signal Analysis Basics. Application Note

PHYS 331: Junior Physics Laboratory I Notes on Noise Reduction

Teaching DSP through the Practical Case Study of an FSK Modem

MATH BOOK OF PROBLEMS SERIES. New from Pearson Custom Publishing!

Agilent Time Domain Analysis Using a Network Analyzer

SIGNAL PROCESSING FOR EFFECTIVE VIBRATION ANALYSIS

Frequency Response of Filters

RADIO FREQUENCY INTERFERENCE AND CAPACITY REDUCTION IN DSL

8 Filtering. 8.1 Mathematical operation

Analog Representations of Sound

The Calculation of G rms

Design of Efficient Digital Interpolation Filters for Integer Upsampling. Daniel B. Turek

Filter Comparison. Match #1: Analog vs. Digital Filters

Introduction to acoustic imaging

Figure 1. A typical Laboratory Thermometer graduated in C.

EECC694 - Shaaban. Transmission Channel

Spectrum analyzer with USRP, GNU Radio and MATLAB

Matlab GUI for WFB spectral analysis

5.1 Radical Notation and Rational Exponents

B3. Short Time Fourier Transform (STFT)

6.4 Normal Distribution

Expression. Variable Equation Polynomial Monomial Add. Area. Volume Surface Space Length Width. Probability. Chance Random Likely Possibility Odds

PRACTICAL GUIDE TO DATA SMOOTHING AND FILTERING

Zeros of a Polynomial Function

26 Integers: Multiplication, Division, and Order

A SIMULATION STUDY ON SPACE-TIME EQUALIZATION FOR MOBILE BROADBAND COMMUNICATION IN AN INDUSTRIAL INDOOR ENVIRONMENT

Agilent Creating Multi-tone Signals With the N7509A Waveform Generation Toolbox. Application Note

Time and Frequency Domain Equalization

A few words about imaginary numbers (and electronics) Mark Cohen

RF Network Analyzer Basics

Linear Equations and Inequalities

Sound absorption and acoustic surface impedance

Transcription:

Introduction to IQ-demodulation of RF-data by Johan Kirkhorn, IFBT, NTNU September 15, 1999

Table of Contents 1 INTRODUCTION...3 1.1 Abstract...3 1.2 Definitions/Abbreviations/Nomenclature...3 1.3 Referenced Documents...3 2 RF SIGNAL...4 3 SAMPLING OF BAND-PASS SIGNALS...5 3.1 Introduction...5 3.2 IQ-demodulation...6 3.3 Down-mixing...6 3.4 Low-pass filtering...7 3.5 Decimation...7 4 RECONSTRUCTION OF RF-DATA FROM IQ-DATA...8 4.1 Interpolation...8 4.2 Zero-padding...9 4.3 Low-pass filter...9 4.3.1 Interpolation factor N I...9 4.3.2 Cut-off frequency... 4.4 Up-mixing... 4.5 Real value...11 5 IQ-DATA PROCESSING IN MATLAB...11 5.1 Band-pass filtering of IQ data (RECTFREQ)...11 5.2 IQ to RF conversion (IQ2RF)...13 5.3 Frequency spectrum estimation on IQ data (IQSPECT)...13 September 15, 1999 Page 2 of 13

1 Introduction 1.1 Abstract This document gives an introduction to the IQ-demodulation format of the RF-data stored from the Vingmed System Five. The document is intended for users of the RF options on the System Five. Note that the information given is simplified to present a comprehensive functional overview of the topic covered, and might not reveal the actual details of the system in full. 1.2 Definitions/Abbreviations/Nomenclature RF IQ FIR FFT LP BP A/D SNR DSP Radio Frequency. The term RF data is commonly used to denote unprocessed data In-phase Quadrature. Used to denote the complex format on which the RF data is stored from the System Five. The IQ demodulation is also sometimes named Base-band demodulation, Quadrature demodulation, Complex demodulation etc. Finite Impulse Response Fast Fourier Transform Low pass Band pass Analog to digital Signal to Noise Ratio Digital Signal Processor 1.3 Referenced Documents EchoMAT User Manual (FA292640) September 15, 1999 Page 3 of 13

2 RF signal RF is short for Radio Frequency. In communication engineering, The term RF-signals is used to denote signals containing frequency information in the frequency bands used for radio communication. The term RF has been adopted by the ultrasound industry, where it is used as a standard notation for unprocessed data, where the frequency information is intact. In ultrasound imaging, the received RF signal is the output of the beamformer: Probe elements Analog Gain A/D Delays Weights Summation Up to 128 channels Σ RF- Signal Figure 1. Beamformer of System Five (simplified). Modern ultrasound probes (linear- and phased array transducers) consist of several rectangular elements of piezoelectric material. The piezoelectric elements are capable of converting varying pressure to electrical signals. At receive, the analog signal from each individual probe element is first amplified (Analog Gain) to ensure optimal use of the dynamic range of the Analog to Digital (A/D) converters. The analog gain factor varies with depth to amplify signals from deep regions most (TGC, Time Gain Compensation). The sampled signals are delayed individually to focus the beam to a certain depth and direction. The delayed signals are weighted to obtain the desired apodization and beam profile. Finally, the weighted and delayed signals are summed in phase, and this is the RF signal. The sampling rate of the RF signal at the output of the beamformer is 20 MHz, and the resolution is 20 bits. The sampling rate of the A/D converters is 40 MHz with a resolution of 12 bits. 7 bits are added by summing 128 channels (128=2 7 ) and the last bit is added when the sampling rate is reduced from 40 to 20 MHz. It is also important to note that when acquiring RF-data on the System Five, the Analog Gain and weights applied to the individual channels are not affected by the Gain knob and TGC sliders on the front panel. But the overall gain is adjusted if transmit power is changed. September 15, 1999 Page 4 of 13

3 Sampling of band-pass signals 3.1 Introduction The Nyquist sampling theorem states that to get a unique representation of the frequency content of a signal, the signal must be sampled at a rate twice the frequency of the highest frequency component of the signal. The received RF-signal from an ultrasound transducer is a band-pass signal. The relative bandwidth of the transducer is usually less than 0%, typically 50-70%. The percentage is the ratio of the bandwidth to the center frequency of the transducer. The bandwidth is the frequency range where the sensitivity of the transducer is above a certain level. For one-way response, this level is usually defined as 3 db below the level at the most sensitive frequency. Figure 2 illustrates the frequency spectrum of the received RF signal from a 2.5 MHz probe with bandwidth B less than 0% of the center frequency. The RF signal is real-valued, which means that the spectrum for the negative frequencies is a mirrored replica of the spectrum for the positive frequencies. The sampling frequency (f s ) is 20 MHz, meaning that the signal contain a unique representation of frequencies between 0 and half the sampling rate ( MHz). The upper limit is usually referred to as the Nyquist limit, or the Nyquist frequency. Bandwidth of interest B Nyquist frequency = f s /2 - -2.5 2.5 Figure 2. Band pass signal from an ultrasound transducer 1.25 3.75 In our example, the transducer is sensitive in a band less than 2.5 MHz wide and centered around 2.5 MHz. This means that all frequency content of interest lies between 1.25 and 3.75 MHz. Sampling at 20 MHz (as done in the System Five), will therefore be an overkill in terms of amount of data to be transferred and stored. Without loss of information, the sampling rate could be reduced to about 7.5 MHz. Because the sampling rate in the System Five is fixed in hardware, this is not easy to do. One could decimate the RF-signal by a factor 2, and achieve a sampling frequency of MHz, which would be an improvement, but not optimal. A smarter approach for reducing the amount of data without loosing essential information is to apply a complex base-band modulation technique with bandwidth reduction known as IQdemodulation. Another issue is, that for suppression of quantization noise during analog to digital conversion, it is fortunate to keep the sampling rate as high as possible to obtain a better Signal-to-Noise-Ratio (SNR). September 15, 1999 Page 5 of 13

3.2 IQ-demodulation The IQ-demodulation consists of 3 main steps: Down-mixing Low-pass filtering Decimation The multiplication with the square root of two is included to preserve the energy in the signal (explained in section 3.4.) RF-signal x RF (t) exp(-i2πf d t) sqrt(2) Downmixing LPfilter Decimation IQ-signal x IQ (t) Figure 3. IQ demodulation 3.3 Down-mixing Downmixing - -5 0 Figure 4. Down-mixing The real valued RF-signal is multiplied ( mixed ) with a complex sinusoid signal: x IQ (t)=x RF (t) exp(-i2pf Demod t) where t is the time along the beam. The relationship between time and distance r is: t=2*r/c. c is the velocity of sound in human tissue (1540 m/s). The resulting signal x IQ (t) is complex. Looking at the signal before and after the mixing explains the name down-mixing. The frequency spectrum is actually moved down (to the left) in the frequency plane. After the down mixing, the resulting signal is complex, and the frequency spectrum is no longer symmetric about zero. Because of the relationship between complex exponential functions and sine and cosine functions, exp(-iwt)=cos(-wt)+i sin(-wt)=cos(wt)-i sin(wt) the down-mixing can be thought of as mixing the RF-signal with two sinusoid signals with 90 phase difference: September 15, 1999 Page 6 of 13

cos(2πf d t) RF-signal x(t) Re{x(t)} Im{x(t)} -sin(2πf d t) Figure 5. Quadrature mixing with sinusoid signals If the demodulation had to be done in hardware, this would be the approach to use. But in the System Five, the demodulation is done in software using Digital Signal Processors (DSPs), and the complex exponential is used instead. The down mixing operation multiplies the RF-signal with a complex vector with unit length, and the energy content of the signal is not changed. 3.4 Low-pass filtering After down mixing, the complex signal is low-pass filtered to remove the negative frequency spectrum and noise outside the desired bandwidth: LP-filter - -5-1.5 0 1.5 Figure 6. Low-pass filter The low-pass filter on the complex signal can be thought of as a filter applied to the real and imaginary part separately. With careful choice of low-pass filter, the remaining signal becomes weak for frequencies outside the pass-band for both components. In our example, we chose a low-pass filter with rectangular frequency response and cut-off frequency 1.5 MHz. The rectangular frequency response is approximated by using a FIR filter with Hamming weighted sinc coefficients. The filter removes the frequencies stemming from the negative spectrum of the real RF signal, and the filter removes approximately half of the energy in the signal. In order to preserve the energy in the signal, the complex signal should be multiplied by the square root of 2. 3.5 Decimation The Nyquist theorem then states that the sampling frequency can be reduced to twice the cutoff frequency of the filter without loss of information. Because we have a complex signal, the bandwidth of the signal equals the complex sampling rate (the complex signal doesn t have an ambiguity between positive and negative frequencies). September 15, 1999 Page 7 of 13

Sampling rate reduction [6:1] - -1.7 1.7 Figure 7. Decimation This means that we can reduce the sampling frequency from 20 MHz to 3.33 MHz. 3.33 is the smallest integer fraction of 20 which is larger than twice the filter cut-off frequency. The sampling rate is reduced by a factor 6. In practice, the desired decimation is obtained by keeping every 6 th sample and throwing away the rest. The IQ demodulation preserves the information content in the Band-pass signal, and the original RF-signal can be reconstructed from the IQ-signal. The next chapter explains how to reconstruct the RF-signal from the IQ-signal. The IQ data is written to EchoPAC files with 16 bit signed integer representation of the I and Q components, giving a total of 32 bits for representation of each sample. 4 Reconstruction of RF-data from IQ-data exp(i2πf mix t) IQ-signal RF-signal x IQ (t) (Complex) Interpolation Upmixing sqrt(2)*re{.} x RF (t) (Real) Figure 8. Reconstruction of RF signal from IQ signal The reconstruction of RF-data from IQ-data is straightforward. It is a reversal of the complex demodulation in the previous section. The decimation is reversed by interpolation. The lowpass filter cannot be reversed, but should be chosen without loss of information in the first place. The down mixing is reversed by up mixing. At last, the RF-signal is found by taking the real-value of the complex up-mixed signal. 4.1 Interpolation The first step of the reconstruction, is to increase the sampling rate back to the rate it had prior to the decimation: September 15, 1999 Page 8 of 13

Sampling rate increase [1:6] - -1.7 1.7 Figure 9. Interpolation Most signal processing textbooks cover the topic of interpolation/sampling rate conversion, so the topic will not be covered in deep detail here. The process is divided into two main steps, zero-padding and low-pass filtering. 4.2 Zero-padding Zero padding means inserting zeroes in the signal to increase sampling rate. In our case, we insert 5 zeroes between each signal sample. In the frequency domain, this will be seen as 5 new replicas of the low-pass spectrum, spaced with the original sampling frequency: - -6.7-3.3 0 3.3 6.7 Figure. Zero-padding 4.3 Low-pass filter After the insertion of zeroes, the duplicate spectra must be removed. This is done with lowpass filter. The filter should be chosen with care, as it is important that the filter doesn t change the original data points. A FIR-filter with sinc coefficients serves the purpose. LP-filter - -6.7-3.3 0 3.3 6.7 Figure 11. Interpolation LP filter 4.3.1 Interpolation factor N I The interpolation factor N I depends on the desired output sampling frequency, and the radial sampling frequency of the IQ-signal: N I =round(f S_des /f S_IQ ) September 15, 1999 Page 9 of 13

f S_des f S_IQ = Desired sampling frequency; suggestion 20MHz = Radial sampling frequency of the IQ-signal =c/(2*depthincrement), c=1540m/s The IQ-signal stored from the System Five is decimated from 20MHz by an integer factor (typically 3 or higher), so the fraction f S_des /f S_IQ should always be an integer. However, because of finite numerical representation, the fraction should be rounded off to the nearest integer. B IQ < f S_IQ This means that the I and Q components are band-limited to less than half the sampling frequency: B I < 0.5* f S_IQ and B Q < 0.5* f S_IQ The interpolation filter operates separately on the I and Q components of the IQ-signal. Thus, the cut-off frequency of the interpolation filter should be set >= 0.5 f S_IQ. 4.4 Up-mixing To shift the frequency spectrum from the base-band and back to it s original band, the interpolated signal is up-mixed. 4.3.2 Cut-off frequency The complex IQ-signal stored from the RF applications on the System Five is always bandlimited with a double-sided bandwidth less than the radial sampling frequency of the IQsignal: Upmixing - 0 2.5 Figure 12. Up-mixing Up-mixing is achieved by just multiplying the interpolated IQ-signal by the inverse of the complex exponential used for the down-mixing (note inverted sign in the exponent): IQ up-mix (r) = IQ(r) * exp(i2pf demod *t(r)), Where: t (r)=(startdepth+(r*depthincrement/n I )) / (2*c)) r f demod N I c Sample number in radial direction AFTER interpolation Demodulation frequency Interpolation factor Velocity of sound in human tissue(1540 m/s) September 15, 1999 Page of 13

StartDepth DepthIncrement The distance from the transducer origin to the start of the IQ sector measured in meters. See EchoMAT manual for how to extract parameters from the EchoPAC file. Radial sampling interval measured in meters. StartDepth might be omitted in the expression for t(r) because it only represents a constant phase shift applied to all samples. The factor 2 in the denominator of the fraction refers to the fact that the ultrasound pulse travels back and forth from the transducer to the reflecting target. 4.5 Real value - -2.5 0 2.5 Figure 13. Real value extraction Finally, the RF-signal is found by taking the real value of the up-mixed IQ-signal and multiply it by sqrt(2): RF(r)=sqrt(2)*Re{IQ up-mix (r)} The factor sqrt(2) is included to compensate for the loss of half the energy in the signal when taking the real value of the complex signal (the energy is assumed to be equally distributed between the real and complex parts). The resulting real signal has a symmetric frequency spectrum, as it had in the beginning. 5 IQ-data processing in Matlab Readecho contains a few routines for processing and analysis of RF-data on IQ format. These routines are RECTFREQ, IQ2RF and IQSPECT. These routines require functions from the Matlab Signal Processing Toolbox. This toolbox must be purchased separately from your Matlab reseller. 5.1 Band-pass filtering of IQ data (RECTFREQ) It is not necessary to convert the IQ data to RF data if you want to apply frequency filtering to the data. As an example, assume that we have a set of IQ data taken with the OctaveRF application on the 2.5 MHz Phased Array (FPA) probe. This application transmits at 1.67 MHz, and receives/demodulates a 3.33 MHz wide band centered about 2.5 MHz. This band contains both the fundamental frequency (1.67 MHz) and the second harmonic frequency (3.33 MHz). The frequency spectrum from the OctaveRF application on the FPA 2.5 probe is illustrated in Figure 14. September 15, 1999 Page 11 of 13

Fundamental frequency Harmonic frequency -1.67-0.83 0 0.83 1.67 0.84 1.67 2.5 3.33 4.17 IQ frequency RF frequency Figure 14. Frequency spectrum, OctaveRF on the FPA 2.5 probe In the figure, the spectrum is shown with two frequency axes. The IQ frequency axis indicates the frequencies of the spectrum of the IQ signal. The lower axis indicates the true frequencies from the RF signal. The IQ axis is shifted 2.5 MHz to the left relative to the RF axis. 2.5 MHz equals the demodulation frequency. If we want to filter out the second harmonic frequency band, we first down-mix the IQ signal to get the second harmonic frequency to the zero frequency: Down-mixing -1.67-0.83 0 0.83 1.67 IQ frequency Figure 15. Down mixing Observe that the down-mixing will wrap the lower end of the spectrum into the upper end. Then we apply a low pass filter with cutoff frequency 0.5 MHz, giving a double sided bandwidth of 1 MHz: -1.67-0.5 0 0.5 1.67 IQ frequency Figure 16. Rectangular low pass filter. Finally, the signal is up-mixed to its original position: Up-mixing -1.67-0.83 0 0.83 1.67 IQ frequency Figure 17. Up-mixing. September 15, 1999 Page 12 of 13

The resulting signal becomes a pure harmonic signal. The routine RECTFREQ (in the READECHO library) performs the filtering described in this section, using a rectangular frequency response low pass filter. The rectangular filter is approximated by a FIR filter with Hamming weighted Sinc coefficients. The RECTFREQ routine requires the SINC and HAMMING functions from the Matlab Signal Processing Toolbox. The RECTFREQ function requires specification of filter order. The filter order defines the steepness of the filter at the cut-off frequencies, and the suppression of the stop-band. The filter order should be an even number in order to get a symmetric filter. 5.2 IQ to RF conversion (IQ2RF) If you feel more comfortable working with true RF data than the complex demodulated IQ data, the routine IQ2RF will convert the IQ data to RF data as described in chapter 4. The IQ2RF routine requires the INTERP routine from the Matlab Signal Processing Toolbox. 5.3 Frequency spectrum estimation on IQ data (IQSPECT) It is often desired to get an impression of the frequency content of the signal. The routine IQSPECT returns the power (=magnitude squared) spectrum of the signal. The spectrum is estimated by means of a FFT, and the input IQ data is Hamming weighted and zero-padded to the next length which equals a power of 2. If the input signal contains more than one beam (beams = columns in the input matrix), the FFT spectrum is computed separately for each column and averaged over all columns. The function returns the spectrum on linear or logarithmic (db) scale, with a corresponding frequency axis. IQSPECT requires the function HAMMING from the Signal Processing Toolbox. September 15, 1999 Page 13 of 13