ASN Filter Designer Professional/Lite Getting Started Guide

Similar documents
ASN Filter Designer Filter designer GUI user's guide

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

Rapid Design of FIR Filters in the SDR- 500 Software Defined Radio Evaluation System using the ASN Filter Designer

ASN Filter Designer v4.x Filter designer GUI user's guide

SCUBA-2. Low Pass Filtering

Digital Signal Processing

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Problem Point Value Your score Topic 1 28 Filter Analysis 2 24 Filter Implementation 3 24 Filter Design 4 24 Potpourri Total 100

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

EE 470 Signals and Systems

Electrical & Computer Engineering Technology

1 PeZ: Introduction. 1.1 Controls for PeZ using pezdemo. Lab 15b: FIR Filter Design and PeZ: The z, n, and O! Domains

Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Improving Signal Quality 3 24 Filter Bank Design 4 24 Potpourri Total 100

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Digital Filter Designer

Signal Processing Toolbox

EECS 452 Midterm Exam Winter 2012

F I R Filter (Finite Impulse Response)

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

4. Design of Discrete-Time Filters

Moku:Lab. Specifications INSTRUMENTS. Moku:Lab, rev

Digital Filtering: Realization

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

DSP Filter Design for Flexible Alternating Current Transmission Systems


EECS 452 Midterm Closed book part Winter 2013

Lab 4 An FPGA Based Digital System Design ReadMeFirst

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

GUJARAT TECHNOLOGICAL UNIVERSITY

LECTURER NOTE SMJE3163 DSP

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

Experiment 2 Effects of Filtering

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

Lab 1B LabVIEW Filter Signal

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

DIGITAL SIGNAL PROCESSING TOOLS VERSION 4.0

Signal processing preliminaries

Moku:Lab. Specifications. Revision Last updated 15 th April, 2018.

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

Understanding Digital Signal Processing

Signals. Continuous valued or discrete valued Can the signal take any value or only discrete values?

ELEC3104: Digital Signal Processing Session 1, 2013

ECE 429 / 529 Digital Signal Processing

Filters. Phani Chavali

Final Exam Solutions June 14, 2006

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters

Multirate DSP, part 1: Upsampling and downsampling

Advanced Digital Signal Processing Part 5: Digital Filters

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Aparna Tiwari, Vandana Thakre, Karuna Markam Deptt. Of ECE,M.I.T.S. Gwalior, M.P, India

Lowpass A low pass filter allows low frequencies to pass through and attenuates high frequencies.

Digital Filters FIR and IIR Systems

ISDS210A ISDS210B. Multi VirAnalyzer. InstruStar Electronic Technology

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

Digital Signal Processing. VO Embedded Systems Engineering Armin Wasicek WS 2009/10

Decoding a Signal in Noise

UNIVERSITY OF SWAZILAND

ELEC3104: Digital Signal Processing Session 1, 2013 LABORATORY 3: IMPULSE RESPONSE, FREQUENCY RESPONSE AND POLES/ZEROS OF SYSTEMS

Copyright S. K. Mitra

Analog Lowpass Filter Specifications

DFT: Discrete Fourier Transform & Linear Signal Processing

Instruction Manual DFP2 Digital Filter Package

Chapter 9. Chapter 9 275

EECS 452 Midterm Exam (solns) Fall 2012

Introduction to Simulink

Multirate DSP, part 3: ADC oversampling

McGraw-Hill Irwin DIGITAL SIGNAL PROCESSING. A Computer-Based Approach. Second Edition. Sanjit K. Mitra

Design of FIR Filters

Octave Functions for Filters. Young Won Lim 2/19/18

AutoBench 1.1. software benchmark data book.

CS3291: Digital Signal Processing

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

LLRF4 Evaluation Board

RTTY: an FSK decoder program for Linux. Jesús Arias (EB1DIX)

Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Upconversion 3 30 Filter Design 4 18 Potpourri Total 100

Module 9: Multirate Digital Signal Processing Prof. Eliathamby Ambikairajah Dr. Tharmarajah Thiruvaran School of Electrical Engineering &

EE25266 ASIC/FPGA Chip Design. Designing a FIR Filter, FPGA in the Loop, Ethernet

ECE 5650/4650 Exam II November 20, 2018 Name:

FIR window method: A comparative Analysis

Design of FIR Filter on FPGAs using IP cores

Adaptive Filters Application of Linear Prediction

Corso di DATI e SEGNALI BIOMEDICI 1. Carmelina Ruggiero Laboratorio MedInfo

Digital Filters Using the TMS320C6000

Design IIR Filters Using Cascaded Biquads

EECS 452 Practice Midterm Exam Solutions Fall 2014

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

EE 422G - Signals and Systems Laboratory

Optimized Digital Filtering for the MSP430

4.5 Fractional Delay Operations with Allpass Filters

FX Basics. Filtering STOMPBOX DESIGN WORKSHOP. Esteban Maestre. CCRMA - Stanford University August 2013

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

Transcription:

ASN Filter Designer Professional/Lite Getting Started Guide December, 2011 ASN11-DOC007, Rev. 2 For public release

Legal notices All material presented in this document is protected by copyright under international copyright laws. Unless otherwise stated in this paragraph, no portion of this document may be distributed, stored in a retrieval system, or reproduced by any means, in any form without Advanced Solutions Nederland prior written consent, with the following exception: any person is hereby authorized to store documentation on a single computer for personal use only and to print copies for personal use provided that the documentation contains Advanced Solutions Nederland copyright notice. No licenses, expressed or implied are granted with respect to any of the technology described in this document. Advanced Solutions Nederland retains all intellectual property rights (IPR) associated with the technology described within this document. The information presented in this document is given in good faith and although every effort has been made to ensure that it is accurate, Advanced Solutions Nederland accepts no liability for any typographical errors. In no event will Advanced Solutions Nederland be liable for any damages resulting from any defects or inaccuracies in this document, even if advised that such damages may occur. Advanced Solutions Nederland Lipperkerkstraat 146 7511DD Enschede The Netherlands www.advsolned.com support@advsolned.com Technical documentation feedback If you would like to make a suggestion or report an error in our documentation, please feel free to contact us. You are kindly requested to provide as much information as possible, including a full description of the error or suggestion, the page number and the document number/description. All suggestions or errors may be sent to our technical documentation department at: documentation@advsolned.com Document Status: Public release Page: 2

1. Introduction Thank you for your interest in the ASN Filter Designer. This product is available in two flavours, as summarised below: Professional Lite Maximum IIR filter order: 4 4 Maximum FIR filter order: 248 64 Maximum Frequency: 1 GHz 10KHz Maximum zoom depth: 15 5 Licence: Commercial use Evaluation/non-commercial use Price: 125 + VAT Free Please contact us at support@advsolned.com if you would like to buy a licence for the professional edition. We also offer academic and group licensing discounts, so please ask! 1.1. Getting started The ASN filter designer has been designed around Microsoft's.NET technology, and as such requires.net framework 4 to be installed before installation of the ASN Filter designer can continue. Where, the currently supported operating systems are: Windows 7, Windows 7 Service Pack 1, Windows Server 2003 Service Pack 2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 SP1, Windows Vista Service Pack 1, Windows XP Service Pack 3. After downloading the '.zip' archive from ASN's website, please double click on 'setup.exe' in order begin the installation procedure. Setup.exe will automatically check to see if.net framework 4 needs to be downloaded, and will then continue with the installation. It is important that the latest updates to the.net framework 4 are installed, so please run Windows update after the install wizard has completed. Document Status: Public release Page: 3

1.2. Types of Filters The ASN Filter designer implements both IIR (infinite impulse response) and FIR (finite impulse response) type filters. Unlike other filter design packages, the ASN Filter Designer aims to simplify the task of digital filter design by limiting the number of options to the bare essential. A common problem experienced by many engineers is, "what parameters do I need to enter?" Although the cut-off frequency, sampling frequency and the type of filter may be clear, extra details, such as passband ripple, stopband attenuation, filter order require much more understanding. We hope that the ASN Filter Designer's simplified GUI addresses these issues, by providing users with a simple and intuitive design tool. 1.2.1. IIR Filters All IIR filters are implemented as biquad filters (i.e. two poles and two zeros), where you may choose either a 2nd or 4th order implementation. The biquad implementation is particularly useful for fixed point implementations, as the effects of quantization and numerical stability are of no great concern. However, the overall success of any biquad implementation is dependent upon the available number precision, which must be sufficient enough in order to ensure that the quantized poles are always inside the unit circle. x(n) d(n) b 0 y(n) z -1 -a 1 d(n-1) b 1 y( z) b0 b z X ( z) 1 a 1 1 1 1z b z a 2 2 2 2z z -1 d(n-2) -a 2 b 2 Figure 1 Direct form II (biquad) IIR filter realization. Analysing Figure 1, it can be seen that the biquad structure is comprised of two feedback paths (scaled by a 1 and a 2 ) and two feed forward paths (scaled by b 1 andb 2 ). The filtering operation of Figure 1 can be summarized by the following set of recursive equations: d n) x( n) a d( n 1) a d( n 2) (1) ( 1 2 y n) b d( n) b d( n 1) b d( n 2) (2) ( 0 1 2 Document Status: Public release Page: 4

Analyzing Eqns. (1) and (2) notice that the biquad implementation only requires four additions and five multiplications, which can be easily accommodated on any modern micro-controller/dsp. Also, implementing the direct form realization into two steps, i.e., Eqns. (1) and (2) significantly reduces the filter s sensitivity to quantization error. Please visit our website for more details about fixed point filter implementation. The following analogue prototypes (transformed using the Bilinear transform) are available: Butterworth Chebyshev Type I (passband ripple 0.1dB) Chebyshev Type II Elliptic (passband ripple 0.1dB) You may choose a stopband attenuation of either 20 or 40dB. 1.2.1.1. Sine/Cosine Oscillators The GUI facilitates the design and analysis of simple sine and cosine oscillators by virtue of placing a conjugate pole pair directly onto the unit circle. You may choose either a Sine or Cosine waveform from the Type menu, as shown below: The GUI will automatically set the filter order to 2. Care should be exercised when performing analysis on the phase delay and group delay plots when using double precision, as the extra detail may (in some case) result in misleading results. We therefore advocate using single precision for floating point analysis. Document Status: Public release Page: 5

1.2.2. FIR Filters FIR (finite impulse response) filters are useful for a variety of signal processing applications, including audio signal processing and noise cancellation. Although several practical implementations for FIRs exist, the direct form I structure is perhaps the most commonly used, and as such all designed filter coefficients are intended for implementation in a Direct form I structure. x(n) z -1 x(n-1) x(n-2) x(n-k) z -1 z -1 h 0 h 1 h 2 h k y(n) Figure 2 Direct form I FIR filter realization. k y( n) hm x( n m) for n 0,1,2,3... N 1 (3) m 0 All standard FIR filters (lowpass, highpass, bandpass and bandstop) are designed based on the Window method. However, the Multiband filters are based on the frequency sampling method. The following window functions are available: Blackman Blackman Harris Hamming Hanning Chebyshev FlatTop Gaussian ( = 2.5) Lanczos A filter order of up to 248 may be implemented in the professional edition, whereas this is limited to 64 in the Lite edition. Document Status: Public release Page: 6

2. The GUI The ASN Filter designer can design both IIR and FIR filters, and as seen below has very simple to use user interface. At start-up, a default 4th order IIR Butterworth filter is designed and its frequency response plotted. Figure 3 - The default GUI. The GUI automatically checks for invalid entries as the user types, and as such a green check mark is shown for a valid entry or alternatively red cross is shown for any invalid entries. Pressing on the Design button will design the filter for the entered specifications. Document Status: Public release Page: 7

2.1. Valid Frequencies The professional edition of the product allows you to enter sampling frequencies from 1Hz to up to 1GHz - whereas, the Lite version is limited to a maximum frequency of 10KHz. As seen above, three frequency ranges are available: Hz, KHz and MHz. You may enter a sampling frequency in the range 1-1000, including fractional sampling frequencies up to 3 decimal places. As an example, a sampling frequency of 1248Hz, should be entered as: In all cases, the program will validate the user input and in the event of an invalid entry, a pop up text box will provide hints and tips. 2.1.1. Cut-off Frequencies/Stop band frequencies All cut-off frequencies as standard should be entered in ascending frequency pairs, i.e. start frequency and stop frequency. Where, the two frequencies must be delimitated (separated) by a ',' or ';'. For example: 100,250 and/or 100;250 are valid entries, whereas: 100 250 or 250,100 are not. Example: Speech filter Fs = 8KHz Lower frequency = 300Hz Upper frequency = 3.3KHz NB. Multiple cut-off frequencies used in Multiband filters require at least two pairs of cut-off frequencies. However, it is important to realize that lowpass and highpass filters only require one cut-off frequency, and as such are a special case of the standard rule. Document Status: Public release Page: 8

2.2. Data analysis Data analysis is performed with the mouse. Where, moving the mouse over the graph will automatically produce the data cursor and the data point's details, as seen below: Data cursor you may swap between the Magnitude spectrum, phase spectrum, Group delay, phase delay, Impulse response or step response via the Analysis menu. The current plot may be copied to the clipboard by selecting the Copy to Clipboard option. The resulting image may then be pasted into a third party application. Document Status: Public release Page: 9

2.3. Advanced frequency zoom The GUI implements an advanced frequency zoom feature by virtue of a specialized implementation of the DFT (discrete Fourier transform). This allows for detailed frequency analysis with very little computational power, resulting a fast responsive GUI. Frequency Range MHz KHz Hz Maximum Zoom Resolution 1KHz 1Hz 10mHz Table 1 - Maximum zoom resolutions. The advanced zoom feature allows users to quickly and simply obtain detailed frequency response information even when the sampling frequency is several hundred MHz (professional edition only)! 2.3.1. Zooming In De-pressing the left mouse button on the plot and dragging the mouse either left or right will highlight the region to be zoomed and also produce a zoom summary box, as shown below: Region to be zoomed Summary of zoom. Where, the maximum zoom resolution is given in Table 1.. Document Status: Public release Page: 10

2.3.2. Zooming out Right clicking on the plot will produce a zoom menu. A check mark indentifies the current level of zoom and resolution. A maximum of fifteen levels of zoom can be accommodated for professional edition, whereas only five levels can be accommodated for the Lite edition. Zoom menu Current zoom Document Status: Public release Page: 11

2.4. Multiband Filters In order to implement an arbitrary frequency response, you may use either the Multiband or Inverse multiband filter. The Multiband filter begins with an all stop frequency response whereas the Inverse Multiband filter begins with an all-pass frequency response. You may enter up to a maximum of five pairs of start and stop frequencies. The example shown below demonstrates two pairs of start and stop frequencies with a Blackman Harris window for a 248th order FIR filter (double precision arithmetic). -6dB or -3dB (IIR filters) Minimum stopband gain Document Status: Public release Page: 12

2.5. The File Menu All file related commands, such as export, printing, opening and saving the project are available via the File menu. 2.5.1. Exporting Data You may export all plot data (at the current level of frequency domain zoom) to an ASCII text file via the Export to File -> All plots menu option. Please note, that all 250 points of time domain data are exported regardless of the time domain zoom. You may also export the filter summary and coefficients to a ASCII text file or a SensorPro 1 filter configuration file via the Filter Coefficients sub menu option. 2.6. The Filter Menu All filter related operations, such as Arithmetic/quantization used in the computation may be accessed via the Filter menu. 2.6.1. Filter Arithmetic The ASN filter designer allows you to quickly and easily analyse the effects of quantization on the designed filter via the Arithmetic menu option. By default, 'Double precision' arithmetic is used for the calculation of all filter coefficients and their subsequent impulse and step responses. However, you may perform fixed point analysis by selecting Fixed Point from the Arithmetic menu (see left) and choosing the required Word Length and Fraction length that you require. All plots will display the results based on the quantization/arithmetic settings. The Smart Scaling option is designed for IIR design in order to ensure that no internal overflow occurs in the designed Biquads and that all filter coefficients can be correctly represented. This is especially useful for cases when there is no integer component, e.g. Q15 (16 bit word length and a fraction length of 15 bits). You may enable or disable Smart Scaling via the check box (see left) if you wish to assess the performance of your filter without any scaling. 2.6.2. View current filter summary and filter coefficients A summary of the designed filter is always available via the View Current Summary menu option. This function is handy in situations where the GUI parameters have been altered after designing a filter, and the user has forgotten what settings were used for the designed filter. 1 SensorPro is Advanced Solutions Nederland's advanced real-time data acquisition and analysis module. Please contact us for more information. Document Status: Public release Page: 13

The filter summary also displays results of the quantization procedure. If Fixed Point arithmetic is selected the resulting filter summary will display both the quantized filtered coefficients in float and Hex format, as shown below. The Hex format coefficients may be directly implemented in any DSP/micro-controller. Fixed point filter coefficients (float format) Fixed point filter coefficients (Hex format) Document Revision Status Rev. Description Date 1 Document released. 17/11/2011 2 Document updated for oscillators 12/12/2011 Document Status: Public release Page: 14