IIR Filter. Dmitry Teytelman and Dan Van Winkle. Student name: RF and Digital Signal Processing US Particle Accelerator School June, 2009

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

Frequency Response of Filters

Understanding Poles and Zeros

Impedance 50 (75 connectors via adapters)

The Calculation of G rms

Lab 1: The Digital Oscilloscope

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Experiment 7: Familiarization with the Network Analyzer

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

Em bedded DSP : I ntroduction to Digital Filters

Lab #9: AC Steady State Analysis

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson

AC : MEASUREMENT OF OP-AMP PARAMETERS USING VEC- TOR SIGNAL ANALYZERS IN UNDERGRADUATE LINEAR CIRCUITS LABORATORY

RF Network Analyzer Basics

AN-837 APPLICATION NOTE

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

EE 186 LAB 2 FALL Network Analyzer Fundamentals and Two Tone Linearity

Frequency response: Resonance, Bandwidth, Q factor

SECTION 6 DIGITAL FILTERS

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 46 Per-pin Signal Generator

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Positive Feedback and Oscillators

Sophomore Physics Laboratory (PH005/105)

MEASUREMENT UNCERTAINTY IN VECTOR NETWORK ANALYZER

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

RLC Resonant Circuits

See Horenstein 4.3 and 4.4

A wave lab inside a coaxial cable

Design of a TL431-Based Controller for a Flyback Converter

DAC Digital To Analog Converter

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

One Port Network Analyzer

Controller Design in Frequency Domain

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

PCM Encoding and Decoding:

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

Time series analysis Matlab tutorial. Joachim Gross

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

Optimizing IP3 and ACPR Measurements

AN Application Note: FCC Regulations for ISM Band Devices: MHz. FCC Regulations for ISM Band Devices: MHz

The Z transform (3) 1

Frequency Response of FIR Filters

Laboratory 4: Feedback and Compensation

ECE 435 INTRODUCTION TO THE MICROWAVE NETWORK ANALYZER

Lecture 1-6: Noise and Filters

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

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Switch Mode Power Supply Topologies

Designing Stable Compensation Networks for Single Phase Voltage Mode Buck Regulators

Engineering Sciences 22 Systems Summer 2004

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

HYBRID FIR-IIR FILTERS By John F. Ehlers

Performing Amplifier Measurements with the Vector Network Analyzer ZVB

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

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

Chapter 9: Controller design

DEVELOPMENT OF DEVICES AND METHODS FOR PHASE AND AC LINEARITY MEASUREMENTS IN DIGITIZERS

PLL frequency synthesizer

Dithering in Analog-to-digital Conversion

Analog and Digital Signals, Time and Frequency Representation of Signals

FREQUENCY RESPONSE ANALYZERS

= V peak 2 = 0.707V peak

Taking the Mystery out of the Infamous Formula, "SNR = 6.02N dB," and Why You Should Care. by Walt Kester

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

RF Measurements Using a Modular Digitizer

Agilent AN 1316 Optimizing Spectrum Analyzer Amplitude Accuracy

isim ACTIVE FILTER DESIGNER NEW, VERY CAPABLE, MULTI-STAGE ACTIVE FILTER DESIGN TOOL

Basic Op Amp Circuits

Fast and Accurate Test of Mobile Phone Boards

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

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

ELECTRON SPIN RESONANCE Last Revised: July 2007

Experiments with the DG8SAQ VNWA

b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output

Reading: HH Sections , (pgs , )

Digital Signal Processing IIR Filter Design via Impulse Invariance

Software Defined Radio

Experiment 5. Lasers and laser mode structure

Power Amplifier Gain Compression Measurements

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

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

Input and Output Capacitor Selection

Introduction to the Z-transform

Keysight Technologies Understanding the Fundamental Principles of Vector Network Analysis. Application Note

AC CIRCUITS - CAPACITORS AND INDUCTORS

Digital Baseband Modulation

Power supply output voltages are dropping with each

The Phase Modulator In NBFM Voice Communication Systems

Analog Filters. A common instrumentation filter application is the attenuation of high frequencies to avoid frequency aliasing in the sampled data.

Revision of Lecture Eighteen

GnuRadio CONTACT INFORMATION: phone: fax: web:

Lab 9: The Acousto-Optic Effect

HD Radio FM Transmission System Specifications Rev. F August 24, 2011

Understanding CIC Compensation Filters

Lecture - 4 Diode Rectifier Circuits

2.161 Signal Processing: Continuous and Discrete Fall 2008

Electrical Resonance

VCO Phase noise. Characterizing Phase Noise

APSYN420A/B Specification GHz Low Phase Noise Synthesizer

EE362L, Power Electronics Triac Light Dimmer

Transcription:

Dmitry Teytelman and Dan Van Winkle Student name: RF and Digital Signal Processing US Particle Accelerator School 15 19 June, 2009 June 17, 2009

Contents 1 Introduction 2 2 IIR Coefficients 2 3 Exercises 4 3.1 Measuring Through Response.................. 4 3.2 Resonant Response........................ 5 3.3 Negative Group Delay...................... 6 3.4 Extra Credit............................ 6 4 Glossary 7 1 of 7

1 Introduction Yesterday you have got some experience operating the LLRF4 board, looking at the analog-to-digital converter (ADC) signals and generating some synthesized output waveforms. Today we will connect the ADC to the digitalto-analog converter (DAC) via a digital filter. The filter implemented in the LLRF4 board for this class is a second-order infinite impulse response (IIR) design (biquad). More information on the IIR filter and its implementation can be found in Section 5 of the LLRF4 lab reference manual. 2 IIR Coefficients In this section you will find a short discussion of the relationship between the coefficients of the second-order polynomial and the roots. Let s consider the denominator polynomial of the second-order IIR filter as shown in Eq. 1 D(z) = z 2 + a 1 z + a 2 (1) As you well know, this polynomial has two roots. They can be either both real or both complex. If the roots are complex, then p 1 = p 2, that is one root is the complex conjugate of the other. We will limit our discussion to the case of complex roots. In polar coordinates the roots can be expressed as: p 1,2 = re ±iθ (2) For a stable IIR filter radius r has to be smaller than 1. Let s rewrite the polynomial D(z) as D(z) = (z p 1 )(z p 2 ) = z 2 p 1 z p 2 z + p 1 p 2 (3) Substituting root expressions from Equation 2 into Eq. 3 we get: D(z) = z 2 2r cos θz + r 2 This expression allows one to obtain coefficients a 1 and a 2 from the polar coordinates of the roots. Recall that the frequency response is evaluated at z = e iω, where ω = 2πf/f s is the normalized frequency. When ω = θ the magnitude of the polynomial is minimal, so IIR denominator becomes small, 2 of 7

0.8 0.6 0.4 Impulse response 0.2 0 0.2 0.4 0.6 0 5 10 15 20 25 30 35 40 Sample number Figure 1: IIR filter impulse response. signifying a gain peak. Pole radius defines the magnitude of the peak for r = 0.9 we expect a gain of 10 (given by 1/ D(z) 1/0.1. Also, the radius is directly related to the damping time of the filter response. Impulse response of an IIR filter with transfer function 1 is given by a sequence H(z) = r sin θz z 2 2r cos θz + r 2 (4) h[n] = r n sin θnu[n] (5) 1 To obtain such a response from LLRF4, set b 1 = r sin θ, a 1 = 2r cos θ, a 2 = r 2 3 of 7

where u[n] is a unit step sequence, defined as 0 for n < 0, 1 otherwise. Such response for r = 0.9A and θ = π/3 is plotted in Figure 1 The damping time constant of such impulse response can be expressed as: τ = T s ln r (6) 3 Exercises 3.1 Measuring Through Response Our first measurement is very basic and will help you verify that everything is connected correctly and is operational. Connect the network analyzer stimulus port to ADC0. Connect the response port to DAC1. Set stimulus power level (under Sweep Setup) to +9 dbm. At this point you should be familiar with starting the experimental physics and industrial control system (EPICS) interface and making sure the board was operational. Turn on ADC0 and turn off the other three channels. Turn on the DACs. Select DAC1 signal as IIR. On the IIR coefficient panel, set b 0 and g 0 to 1, all other coefficients to 0. The frequency response of the filter, plotted in the window, should have 0 db gain and zero phase shift we are just passing through the signal. Set up the network analyzer to sweep from 40 to 56 MHz the response band of the ADC input filter. Your magnitude response should show the shape of that filter now. Record peak gain and measure the bandwidth of the filter: 4 of 7

3.2 Resonant Response Now configure the filter coefficients for peak response at 48 MHz and the damping time of 75 ns 2. Note, that numerator coefficient b 1 could be considered as an arbitrary gain, so there is no need to compute r sin θ. The resulting filter has a gain of 10 at the peak, so it will probably saturate. Reduce gain G0 to 0.1 or lower to avoid saturation. Record peak gain and measure the bandwidth of this digital filter 3 : Now adjust coefficients to the damping time of 8 µs. Remember to reduce the gain if saturation occurs. At this point you might have to reduce the IF bandwidth on the network analyzer to get the accurate sweep. Record peak gain and measure the bandwidth and quality factor of this digital filter: 2 Hint: use Equations 4 and 6. 3 In all of these measurements, feel free to re-center the network analyzer sweep on the peak and to zoom in for a closer look. Use 1601 points in a sweep for better peak definition. 5 of 7

3.3 Negative Group Delay In this exercise we will configure the LLRF4 board for a response with negative group delay. Set the denominator coefficients a 1 and a 2 to 0. Set the gain to 1. Now compute the polynomial coefficients with the roots at the radius of 0.99 and the angle corresponding to 48 MHz. We need to configure the numerator (b 0, b 1, and b 3 ) to this polynomial. However these coefficients cannot exceed 1 and you probably have a value for b 1 larger than one. Scale all three coefficients by 0.5, so that b 0 = 0.5 and so on. Enter the values and observe the response. You should see a notch in S 21 at 48 MHz. Add a trace on the network analyzer displaying the group delay. Measure the minimum group delay observed 4. Change trace format to phase. Does the phase plot look similar to what you see on the EPICS panel? 3.4 Extra Credit Try to adjust IIR filter parameters to generate as sharp a response as possible 5. You will have to reduce the gain as you narrow the response down. At some point severe quantization effects in the filter structure will prevent you from going any further. Measure and record the center frequency, peak gain, bandwidth, and Q: 4 Use averaging and set IF bandwidth to 7 khz or less 5 Hint: get r closer to 1 6 of 7

4 Glossary Glossary analog-to-digital converter (ADC) An electronic circuit that converts continuous analog signals to discrete digital numbers. 2, 4 digital-to-analog converter (DAC) A hardware device to convert a sequence of digital codes to corresponding analog voltages or currents. 2, 4 experimental physics and industrial control system (EPICS) A set of software tools and applications used to develop distributed soft real-time control systems. 4, 6 finite impulse response (FIR) A discrete-time filter, output of which only depends on a finite number of previous input samples. 7 infinite impulse response (IIR) A discrete-time filter, output of which depends on an infinite number of previous input samples. Unlike finite impulse response (FIR) filters, IIR structures involve internal feedback. 2, 4, 6 7 of 7