POCPA Conference 20..23 DESY Michele Martino (TE-EPC-HPM) CURRENT MEASUREMENT DIGITAL FILTERING - TUTORIAL - 1 POPCA 2012 FIR or IIR?

Slides:



Advertisements
Similar presentations
Chapter 14 Finite Impulse Response (FIR) Filters.
Advertisements

Digital Coding of Analog Signal Prepared By: Amit Degada Teaching Assistant Electronics Engineering Department, Sardar Vallabhbhai National Institute of.
Husheng Li, UTK-EECS, Fall  An ideal low pass filter can be used to obtain the exact original signal.
A Practical Guide to Troubleshooting LMS Filter Adaptation Prepared by Charles H. Sobey, Chief Scientist ChannelScience.com June 30, 2000.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Decimation Filter A Design Perspective
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 14.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 14.
So far We have introduced the Z transform
Digital signal processing -G Ravi kishore. INTRODUCTION The goal of DSP is usually to measure, filter and/or compress continuous real-world analog signals.
Quasi-Passive Cyclic DAC Gabor C. Temes School of EECS Oregon State University.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Sampling and quantization Seminary 2. Problem 2.1 Typical errors in reconstruction: Leaking and aliasing We have a transmission system with f s =8 kHz.
1 Alireza Mahmoodi and Dileepan Joseph University of Alberta, Canada Optimization of Delta-Sigma ADC.
Introduction to Communications Ref: SMAD Sections – 13 Communications Architecture Introduction to Space Systems and Spacecraft Design Space Systems Design.
Introduction to Analog-to-Digital Converters
STARLight PDR 3 Oct ‘01H.1 Miller STARLight Sensor Signal Processing Ryan Miller STARLight Electrical Engineer (734)
IIR Filters and Equalizers R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
The World Leader in High Performance Signal Processing Solutions Audio ADC/DACs Primer David Hossack.
Copyright (C) 2005 Güner Arslan 351M Digital Signal Processing (Spring 2005) 1 EE 351M Digital Signal Processing Instructor: Güner Arslan Dept. of Electrical.
Sampling of Continuous-Time Signals
Sigma Delta A/D Converter SamplerModulator Decimation Filter x(t) x[n]y[n] Analog Digital fsfs fsfs 2 f o 16 bits e[n] Over Sampling Ratio = 2f o is Nyquist.
Department of Electrical & Computer Engineering 1 ES585a - Computer Based Power System Protection Course by Dr.T.S.Sidhu - Fall 2005 Class discussion presentation.
Digital to Analogue Conversion Natural signals tend to be analogue Need to convert to digital.
Over-Sampling and Multi-Rate DSP Systems
T Digital Signal Processing and Filtering
… Representation of a CT Signal Using Impulse Functions
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.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
Introduction to Adaptive Digital Filters Algorithms
Communication and Signal Processing. Dr. Y.C. Jenq 2. Digital Signal Processing Y. C. Jenq, "A New Implementation Algorithm.
DISP 2003 Lecture 6 – Part 2 Digital Filters 4 Coefficient quantization Zero input limit cycle How about using float? Philippe Baudrenghien, AB-RF.
VADA Lab.SungKyunKwan Univ. 1 L40: Lower Power Equalizer J. W. Kim and J.D.Cho 성균관대학교
A low-noise low-voltage continuous-time  modulator with digital compensation of excess loop delay Dr.S.Mehdi Fakhraie By: Mehrdad Ghobady.
§ 4.1 Instrumentation and Measurement Systems § 4.2 Dynamic Measurement and Calibration § 4.3 Data Preparation and Analysis § 4.4 Practical Considerations.
LIST OF EXPERIMENTS USING TMS320C5X Study of various addressing modes of DSP using simple programming examples Sampling of input signal and display Implementation.
Introduction to Digital Signals
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
EE445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 16 Quadrature Amplitude Modulation (QAM) Receiver Prof. Brian L. Evans Dept. of Electrical.
Technological Educational Institute Of Crete Department Of Applied Informatics and Multimedia Neural Networks Laboratory Slide 1 FOURIER TRANSFORMATION.
Chapter 7. Filter Design Techniques
CSCI1600: Embedded and Real Time Software Lecture 14: Input/Output II Steven Reiss, Fall 2015.
Digital Signal Processing
Software Defined Radio PhD Program on Electrical Engineering Sampling Theory and Quantization José Vieira.
Sampling of Continuous-Time Signals Quote of the Day Optimist: "The glass is half full." Pessimist: "The glass is half empty." Engineer: "That glass is.
Digital Signal Processing
July 23, BSA, a Fast and Accurate Spike Train Encoding Scheme Benjamin Schrauwen.
Lecture 09b Finite Impulse Response (FIR) Filters
EEE4176 Application of Digital Signal Processing
Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
1 Digital Signal Processing (DSP) By: Prof. M.R.Asharif Department of Information Engineering University of the Ryukyus, Okinawa, Japan.
Real-time Digital Signal Processing Digital Filters.
Analog-Digital Conversion. Analog outputs from sensors and analog front- ends (analog signal conditioning) have to be converted into digital signals.
Digital Signal Processor HANYANG UNIVERSITY 학기 Digital Signal Processor 조 성 호 교수님 담당조교 : 임대현
EEE4176 Applications of Digital Signal Processing
EEE4176 Applications of Digital Signal Processing
J McClellan School of Electrical and Computer Engineering
J. W. Kim and J.D.Cho 성균관대학교 Lower Power Equalizer J. W. Kim and J.D.Cho 성균관대학교 SungKyunKwan Univ.
Generating Sinusoidal Signals
Analog to Digital Data Conversion
لجنة الهندسة الكهربائية
Quiz: Introduction to Frequency Domain TIPL TI Precision Labs – ADCs
Chapter 7 Finite Impulse Response(FIR) Filter Design
Fixed-point Analysis of Digital Filters
ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals
Presentation transcript:

POCPA Conference DESY Michele Martino (TE-EPC-HPM) CURRENT MEASUREMENT DIGITAL FILTERING - TUTORIAL - 1 POPCA 2012 FIR or IIR?

CURRENT MEASUREMENT FOR CONTROL 2 voltage/current signal transmission Converter Control Current Transducer Power Circuit ADC Anti Aliasing / Signal Conditioning  Control systems can tolerate some delay in the measurement chain but certainly don’t like it ! Fundamental trade-off of the measurement chain: accuracy vs speed !  Properly designed digital controllers can “easily” handle delays (RST), so what’s the problem?  Delays increase model order (Z transf) → Model mismatch become rapidly critical for stability!

SAMPLING BASICS 3  Ideal Sampling Time DomainFrequency Domain Spectrum of a critically sampled strictly band-limited signal: no alias!!!  Noise is always present so there are no strictly band-limited signals!  Anti-aliasing filtering always needed!

WHY OVERSAMPLING? 4  Standard Nyquist Sampling  Oversampling Analog filter Anti-aliasing can be dealt with only analogically! Digital filter Analog filter Anti-aliasing filtering can be shared between analog and digital! Re-configurability now possible

DECIMATION 5 Replicas still occur due to decimation! SNR not improved due to lack of filtering!

THE NEVER-ENDING DISPUTE: IIR VS FIR 6 Charles M. Rader : The Rise and the Fall of Recursive Digital Filters – IEEE Signal Processing Magazine, Nov 2006 (non-causal)

7  Yes, 1-bit only! It is the digital filter that actually determines the ADC “precision”!

HOW TO SPECIFY DIGITAL FILTERS 8 “alias-free” bandwidth

MINIMUM-PHASE FIR  Actually not if the filter is part of the measurement chain of a control loop!!!

MINIMUM-PHASE FIR DECIMATION

IIR IMPLEMENTATION 11  Implementation on DSP hints  Hints based on Texas Instruments TMS320C28x with CCS  The hints clearly work with floating point DSP such as the TMS320F28335 _IQmpy ↔ *

IIR IMPLEMENTATION 12  Implementation hints on DSP : Break up Structure and Combine Terms

IIR IMPLEMENTATION 13  Implementation hints on DSP : Inline  Inline is automatic with –O3 Optimization mode  Source must be visible to calling file  Make data allocation/definitions visible to calling file  Compiler can make use of Direct Addressing Mode

“INTERACTIVE” SESSION 14

MATLAB FDATOOL 15  Different algorithms are available for minimum-phase design  Generalized Equiripple calculates minimum (even) order filters!  Other algorithms can be successfully used once the filter order is approximately known  What about very long filters?  For filter orders larger than a thousand taps the algorithms fail  But the problem can be decomposed and the FDATOOL let you the “cascade”  You can also quantize coefficients and then create a.coe file

SOME SUBTLE PHENOMENA 16  What can go wrong?

SOME SUBTLE PHENOMENA 17  It looks very nice isn’t it?  It looks very “white” !!!!

SOME SUBTLE PHENOMENA 18  Let’s have a look at the histogram:

SOME SUBTLE PHENOMENA 19  Let’s have a look at the impulse response:

CASE STUDY

 DC performance

CASE STUDY  AC performance

CASE STUDY  AC performance  Making hardware or perform measurements as flat as the digital filter may turn out to be unfeasible or unworthy!

CASE STUDY  Sine-fit Amplitude Estimation

REFERENCES 30   IEEE Std Standard for Terminology and Test Methods for Analog-to-Digital Converters  A. Tessarolo, Getting the Most from Your C Code on the TMS320C28x™ Controller Using Code Composer Studio™  Delta-Sigma Data Converters Theory, Design, and Simulation. Norworthy, Schreier, Temes, IEEE – Wiley-Interscience 1992  K. Steiglitz, T. W. Parks, and J. K. Kaiser, ”METEOR: a constrained-based FIR Filter design program,” IEEE Trans. Signal Proc., vol 40, no. 8, pp , Aug  Digital Filters with MATLAB ® : Ricardo A. Losada, 2009, The MathWorks, Inc.  New class of recursive digital filters for decimation: Horacio G. Martinez and Thomas W. Parks, 1978, Rice University Electrical Engineering Dept. Huston  M. Martino, et al. “Low emission, self-tunable DSP based Stepping Motor Drive for use with arbitrarily long cables,” IFAC Large Scale Systems Symposium, Villeneuve d’Ascq, France, 2010

BACKUP SLIDES 31

MINIMUM PHASE FIR FILTERS 32  Delay is minimized, but there is a lot more overshoot! Is that a problem? 100A 10A

HOW TO SPECIFY DIGITAL FILTERS? 1 33

HOW TO SPECIFY DIGITAL FILTERS? 2 34  From Precision to Filter Specs 1.74 x x x 10 -3

HOW TO SPECIFY DIGITAL FILTERS? 3 35  From Precision to Filter Specs  Now we are done! Or maybe not?

WHY OVERSAMPLING? 1 36  A “bit” of theory  Quantization Process  Quantization is a non linear process - vast and tricky subject  Fortunately an approximated model works very well almost every time!  Ok but what does that mean?

WHY OVERSAMPLING? 2 37 a) b)  Easy analog filter design, reduced delay, re-configurability, Ok!  Is that all? What about PQN power? Sampling FrequencyBandwidth