AND9105/D. Biquad Filters in ON Semiconductor Pre-configured Digital Hybrids APPLICATION NOTE. a 0 = 1. x[n] y[n] a 1. b 1. z 1. a 2.

Similar documents
AND9192/D. Estimating Dark Current from Operating Temperature APPLICATION NOTE

Is Now Part of To learn more about ON Semiconductor, please visit our website at

Figure 1. (Top) top view and (bottom) bottom view of the version 3 ON Semiconductor SMA boards, from left to right 6mm, 3mm and 1mm

1N5221B - 1N5263B Zener Diodes

Prepared by: Gang Chen ON Semiconductor U1 NCP1529 GND SW 5. Figure 1. Typical Simulation Circuit of NCP1529 for DC DC Applications

ESD5381 Series. Transient Voltage Suppressors. Micro Packaged Diodes for ESD Protection

MM5Z2V4 - MM5Z75V Zener Diodes

ESD7451, SZESD7451. ESD Protection Diodes. Micro Packaged Diodes for ESD Protection

AND8319/D. How to Maintain USB Signal Integrity when Adding ESD Protection APPLICATION NOTE

ESD7002, SZESD7002. Transient Voltage Suppressors. Low Capacitance ESD Protection Diode for High Speed Data Line

Is Now Part of. To learn more about ON Semiconductor, please visit our website at

NSVF4015SG4. RF Transistor for Low Noise Amplifier. 12 V, 100 ma, f T = 10 GHz typ.

ESD7421, SZESD7421. ESD Protection Diodes. Micro Packaged Diodes for ESD Protection

AND8335/D. Design Examples of Module-to-Module Dual Supply Voltage Logic Translators. SIM Cards SDIO Cards Display Modules HDMI 1-Wire Sensor Bus

NB7L72MMNGEVB. NB7L72MMNG Evaluation Board User's Manual EVAL BOARD USER S MANUAL

Programming and Evaluation Tool for Serial EEPROMs

BZX85C3V3 - BZX85C56 Zener Diodes

CCD VIDEO PROCESSING CHAIN LPF OP AMP. ADS-93x 16 BIT A/D SAMPLE CLAMP TIMING GENERATOR ALTERA 7000S ISP PLD UNIT INT CLOCK MASTER CLOCK

Is Now Part of To learn more about ON Semiconductor, please visit our website at

NUP4114UCW1T2G. Transient Voltage Suppressors. ESD Protection Diodes with Low Clamping Voltage

NCP370GEVB. NCP370 Over Voltage Protection Controller with Reverse Charge Control Evaluation Board User's Manual EVAL BOARD USER S MANUAL

NCN9252MUGEVB. High-Speed USB 2.0 (480 Mbps) DP3T Switch for USB/UART/Data Multiplexing Evaluation Board User's Manual EVAL BOARD USER S MANUAL

CM DE. 4-Channel LCD and Camera EMI Filter Array with ESD Protection

CM1621. LCD and Camera EMI Filter Array with ESD Protection

Headset/Speaker EMI Filter with ESD Protection CM1416/D. Features. Product Description. Applications. ±30kV ESD protection on each channel per

Is Now Part of To learn more about ON Semiconductor, please visit our website at

NB4N855SMEVB. Evaluation Board User's Manual for NB4N855S EVAL BOARD USER S MANUAL.

CM1409. LCD and Camera EMI Filter Array with ESD Protection

Is Now Part of To learn more about ON Semiconductor, please visit our website at

NUP8011MUTAG. Transient Voltage Suppressors

NUP2114 Series, SNUP2114UCMR6T1G Transient Voltage Suppressors Low Capacitance ESD Protection for High Speed Data

NP0080TA Series. Low Capacitance Protector

CM1219. Low Capacitance Transient Voltage Suppressors / ESD Protectors

LA6584JA. Functions and Applications Single-phase full-wave driver for fan motor. Specitications

Is Now Part of To learn more about ON Semiconductor, please visit our website at

ESD9X3.3ST5G SERIES. Transient Voltage Suppressors Micro Packaged Diodes for ESD Protection

Is Now Part of To learn more about ON Semiconductor, please visit our website at

USB/Charger and Over-Voltage Detection Device

MM3ZxxxT1G Series, SZMM3ZxxxT1G Series. Zener Voltage Regulators. 300 mw SOD 323 Surface Mount

EMI2180 Common Mode Filter with ESD Protection

EMI4184. Common Mode Filter with ESD Protection

ASM5P2308A. 3.3 V Zero-Delay Buffer

CM1461. Praetorian C-L-C LCD and Camera EMI Filter Array with ESD Protection

NZQA5V6AXV5 Series. Transient Voltage Suppressors

MG2040. Transient Voltage Suppressors. Low Capacitance ESD Protection for High Speed Video Interface

LA6584M. Overview. Functions and Applications. Specitications. Monolithic Linear IC BTL Driver Single-Phase Full-Wave Fan Motor Driver

PACSZ1284. IEEE 1284 Parallel Port ESD/EMI/Termination Network

Smart Power Stages with Universal Footprint Address Efficiency

1N5333B Series. 5 Watt Surmetic 40 Zener Voltage Regulators

EMI2121, SZEMI2121. Single Pair Common Mode Filter with ESD Protection

ESD5Z2.5T1G Series, SZESD5Z2.5T1G Series. Transient Voltage Suppressors. Micro Packaged Diodes for ESD Protection

LB1668M. 2 phase Unipolar Brushless Motor Driver. Monolithic Digital IC

NCN1154MUTGEVB. NCN1154 DP3T USB 2.0 High Speed Audio Switch Evaluation Board User's Manual EVAL BOARD USER S MANUAL

AND9032. How to Read Temperature Through I 2 C Bus for NCT75-based Thermostat APPLICATION NOTE

NSPU V Unidirectional ESD and Surge Protection Device

Is Now Part of. To learn more about ON Semiconductor, please visit our website at

Varactor Diode Monolithic dual Varactor Diode for FM Tunin 14V, 50nA, CR=2.3, Q=150, MCPH3

AND9699/D. F143-MINI-X-GEVK Quick Start Guide APPLICATION NOTE

CM1293A-04SO. 4-Channel Low Capacitance ESD Protection Array

EMI4172. Common Mode Filter with ESD Protection

NMFAAAA. Product Preview USB Clamps, RS232 and General Purpose Data Line Filters with ESD Protection; Optional Internal Switch

ESD7104. Transient Voltage Suppressors. Low Capacitance ESD Protection for High Speed Data

LB1868. Specifications Absolute Maximum Ratings at Ta = 25 C. Monolithic Digital IC 2-phase Brushless Fan Motor Driver. Ordering number : EN6202A

Is Now Part of To learn more about ON Semiconductor, please visit our website at

NB3H83905CDGEVB. NB3H83905CDGEVB Evaluation Board User's Manual EVAL BOARD USER S MANUAL

ESD7004, SZESD7004. Transient Voltage Suppressors. Low Capacitance ESD Protection Diode for High Speed Data Line

AND8359/D. Timing Considerations with the Dual-CAN Transceiver

LB1863M, LB1869M. Two Phase Brushless Motor Driver. Monolithic Digital IC

MM3ZxxxST1G Series, SZMM3ZxxxST1G Series. Zener Voltage Regulators. 300 mw SOD 323 Surface Mount Tight Tolerance Portfolio

= CSPEMI201AG. 2 Channel Headset Speaker EMI Filter with ESD Protection

NB2308A. 3.3 V Zero Delay Clock Buffer

ESD7008 Transient Voltage Suppressors Low Capacitance ESD Protection for High Speed Data

CS MARKING DIAGRAM ORDERING INFORMATION. Figure 1. Block Diagram TO 220 FIVE LEAD TQ SUFFIX CASE 314D

Upgrade the Solution With No Changes 2 Upgrade the Solution With No Changes If a Codebase does not contain updates to its properties, it is possible t

CM LP. LCD and Camera EMI Filter Array with ESD Protection

2005: 0.5 PQ-MDS-PCIEXP

LB1868M. Specifications Absolute Maximum Ratings at Ta = 25 C. Monolithic Digital IC 2-phase Brushless Fan Motor Driver. Ordering number : EN6203A

EMI4162MUTAG. Common Mode Filter with ESD Protection

Is Now Part of To learn more about ON Semiconductor, please visit our website at

CM Channel ESD/EMI Filter Array Plus 4-Channel ESD Array for USB

ESD8451, SZESD8451. ESD Protection Diodes. Low Capacitance ESD Protection Diode for High Speed Data Line

Is Now Part of To learn more about ON Semiconductor, please visit our website at

MCH3007. RF Transistor 12V, 30mA, ft=8ghz, NPN Single MCPH3. Features. Specifications

Is Now Part of To learn more about ON Semiconductor, please visit our website at

Features µp Compatible Inputs Adjustable Current Limit Thresholds External Sense Resistor Flag Signal to Indicate Output Status.

N25S830HAT22IT. 256 kb Low Power Serial SRAMs. 32 k x 8 Bit Organization

Is Now Part of To learn more about ON Semiconductor, please visit our website at

Is Now Part of To learn more about ON Semiconductor, please visit our website at

NUF2221W1T2. USB Upstream Terminator with ESD Protection

Is Now Part of To learn more about ON Semiconductor, please visit our website at

AND8386/D. Bootloading BelaSigna 250 Using the I 2 C Interface APPLICATION NOTE

NB4L339MNGEVB. NB4L339MNGEVB Evaluation Board User's Manual EVAL BOARD USER S MANUAL

AND9081/D. NCV7381 FlexRay Bus Driver Application Note APPLICATION NOTE

AND8384/D. Using Block Floating-Point in the WOLA Filterbank Coprocessor APPLICATION NOTE

NB2304A. 3.3V Zero Delay Clock Buffer

PCB Layout Guidelines for the MC1321x

2Mb Ultra-Low Power Asynchronous CMOS SRAM. Features. Power Supply (Vcc)

LA6583MC. Monolithic Linear IC Fan Motor Driver BTL Driver Single-Phase Full-Wave. Ordering number : ENA

CM6200. Advance Information EMI Filters with ESD Protection for Microphone Interface

Mechanical Differences Between the 196-pin MAP-BGA and 196-pin PBGA Packages

Transcription:

Biquad Filters in ONSemiconductor Pre-configured Digital Hybrids Introduction Pre-configured products offered by ON Semiconductor offer great flexibility in adjusting input/output characteristics as well as shaping of the system s frequency response. The input/output characteristics of the system can be adjusted by algorithms such as WDRC compression, AGC-O, peak clipping and low level expansion (squelch) blocks. The system s frequency response can be controlled by adjusting individual channel s gain and the crossover frequencies between channels. Also, the system s frequency response can be controlled using biquadratic (biquad) filters. ON Semiconductor pre-configured products often include eight biquad filters: four pre-emphasis and four post-emphasis. The pre-emphasis and post-emphasis filters are located before and after the filter bank respectively. These filters can be configured through ARKonline to be parametric filters with assignable frequency, amplitude, and Q. Certain filters can also be assigned as low-cut or high-cut filters with adjustable corner frequency and filter order. Please refer to ARKonline for further details on filter configuration. Additionally, each filter can be configured as generic biquad filters where the coefficients are directly exposed and can be assigned at a later time. Generic biquads offer the most flexibility and can accommodate various filter types. This application note is intended to provide a brief tutorial on how to construct generic biquad filter values which can be directly imported into the Interactive Data Sheet (IDS). Once imported and enabled, the filter will impact the overall frequency response of the product. NOTE: It is also possible to construct filter coefficients automatically using the Filter Designer Plus (FDP) application which is included in the ARKbase distribution package. The FDP allows for a variety of different filter types to be constructed via the graphical user interface and also supports automatic transferring of coefficients to the IDS. Further information on the FDP can be found in the ARK User s Guide. Biquad Filter Structure All generic biquad filters implemented on ON Semiconductor pre-configured products are IIR (Infinite Impulse Response) in Direct Form 1 structure (see Figure 1). x[n] b 1 b b 0 APPLICATION NOTE Σ a 0 = 1 a 1 a Figure 1. Direct Form 1 IIR Structure Block Diagram y[n] The transfer function of each of the biquad filter can be expressed as follows: H(z) b 0 b z b z a z a z NOTE: The coefficient a 0 is hard wired to always be 1 (see Figure 1). The coefficients are each 16 bits in length and include one sign bit, one bit to the left of the decimal point, and 1 bits to the right of the decimal point, thus having the format 1s1i1f. Before quantization, the floating point coefficients must be in the range.0 x <.0 and quantized with the function: round(x 1 ) All multiplications and additions are done with a single multiplier-accumulator (MAC), and therefore the following rules should be considered for the biquad filter to function properly: All coefficients {b0, b1, b, a1, a} must be in the range [-,+). The calculated filter s output signal level should not exceed the full scale representation in the filter. For example, if the input signal to the biquad is -10 dbfs (10 db below Full Scale), therefore the biquad has only 10 db of headroom before it starts overflowing. NOTE: When transferring coefficients to the IDS, the underlying code in the product components automatically checks all of the filters in the system for stability (i.e., the poles have to be Semiconductor Components Industries, LLC, 01 November, 01 Rev. 1 Publication Order Number: AND9105/D

within the unit circle) before updating the graphs on the screen when the filter is enabled or programming the coefficients into the hybrid. If the IDS receives an exception from the underlying stability checking code, it will automatically disable the biquad being modified and display a warning message. When the filter is made stable again, it can be re enabled. Digital System Limitations When designing and implementing an IIR filter, it is important to consider the limitations of any DSP system. The limitations described here can cause the IIR filter to become noisy, distorting or even unstable. In that case, it may be necessary to adjust some of the filter s parameters so it will perform as expected. When the signal is converted from analog to digital form, the precision is limited by the number of bits available. The signals are not only subject to limited precision, filter coefficients follow the same rule they are also subject to limited precision of digital systems. The limited precision of all digital systems leads to quantization errors. Those errors due to limited precision are nonlinear and signal dependent. The nonlinearity can eventually lead to instability, particularly with IIR filters. There is no method that can eliminate quantization errors. However those errors can be minimized by keeping values large so that the maximum number of bits is used to represent them. However, there is a limit to how large the numbers can be. There is also another potential source of error in DSP systems, particularly in IIR filters. It is possible for a result of IIR filter processing to exceed the maximum allowable size. When that happens, the hardware may saturate or overflow. To avoid the overflow or saturation, the input signal and/or filter coefficients should be scaled down. Digital IIR Filter Design The following examples illustrate different types of IIR filter designs. Each filter is first designed as an analog filter and the filter s characteristics (i.e., order, corner frequency, passband gain) are translated into an analog transfer function. Poles and zeros of the analog transfer function are matched to the poles and zeros of the digital filter s transfer function using bilinear transformation and then quantized to integer values which can be entered in the generic biquad section of the IDS. Those examples require some knowledge of complex math and s and z operators used in analog and digital transfer functions. Example 1: 1 st order low pass filter with khz corner frequency and 0 db gain: c s c where c = f c, f c is 3 db corner frequency in Hz, = 3.115935 The transfer function has pole s p1 at - c and zero s z1 at. The bilinear transformation is used to convert the analog transfer function to a digital transfer function. The pole and the zero of the digital transfer function are matched to the pole and zero of the analog transfer function according to the following formula: T s BT(s) T s where T is the stamping period, T = 1/f s, and f s is the sampling frequency. The corner frequency of the analog filter f c = 000 Hz, therefore c = 513. The transfer function of this analog low pass filter is: 513 s 513, the pole s p1 = 513, the zero s z1 = f s = 3000 Hz: (513) (513) 0.36060, z z1 The transfer function of the first order digital filter is: H(z) G z z z1 z z p1 has unity gain at DC: H(z) G z z1 1, thusg z p1 z p1 BT(0) 1 G = 0.819698 H(z) 0.819698 z 1 z 0.36060 0.819698 z 0.819698 z 0.36060 The filter s coefficients have to be quantized to 1s1i1f format before being entered in the IDS. The conversion is done by multiplying the real coefficients of the transfer function by 1 and rounding the results to the nearest integer value. The rounded integers can then be entered into one of the generic biquad sections in the IDS for the selected product. The resulting values are given in the table below: b0 0.819698 60 b1 0.819698 60 b 0 0 a1-0.36060-71 a 0 0

Example : 1 st order high pass filter with 500 Hz The transfer function of the 1st order analog high pass filter with 0 db gain: s s c where c = f c, f c is 3 db corner frequency in Hz, = 3.115935 The transfer function has pole s p1 at - c and zero s z1 at 0. The bilinear transformation is used to convert the analog transfer function to a digital transfer function. The pole and the zero of the digital transfer function are matched to the pole and zero of the analog transfer function according to the following formula: T s z T s where T is stamping period, T = 1/f s, and f s is the sampling frequency. The corner frequency of the analog high pass filter f c = 500 Hz, therefore c = 311. The transfer function of this analog low pass filter is: s s 311 s p -311, s z 0 f s = 3000 Hz: (311) (311) The transfer function of the first order digital filter is: H(z) G z z z1 z z p1 has unity gain at infinite frequency: H(z) G z z1 1, thusg z p1 z p1 BT( ) 1 G = 0.95309 H(z) 0.95309 z 1 z 0.906189 0.95309 z 0.95309 z 0.906189 b0 0.95309 15617 b1 0.95309 15617 b 0 0 a1 0.906189 1851 a 0 0 0.906189, z z 1 3

Example 3: nd order low pass filter with 3000 Hz The transfer function of a nd order analog low pass filter with 0 db gain: c s c s c = damping ratio (0 to 1) c = f c, f c = corner frequency The transfer function has two poles located at: s p1,p c j c and two zeros s z1 = s z at The corner frequency of the nd order analog filter f c = 3000 Hz, therefore c = 18850. For the nd order filter to have 3 db at the corner frequency the damping ratio should be set to: 0.7071068 The transfer function of the analog low pass filter: 3.553 10 8 s.6657 10 s 3.553 10 8 the poles s p1,p 1339 j 1339, the zeros s z1 = s z = f s = 3000 Hz: 1339j1339 1339j1339 0.607517 j0.770771 The second order digital filter transfer function: H(z) G (zz z1) (zz z ) (zz p1 ) (zz p ) H(z) G z z 1 z 1.15093 z 0.5858 has unity gain at DC: H(z) G (1z z1) (1z z ) (1z p1 ) (1z p ) 1 BT(0) 1 thus G (1z p1) (1z p ) G = 0.057701 H(z) 0.057701z 0.11508z 0.057701 z 1.15093 z 0.5858 b0 0.057701 95 b1 0.11508 1891 b 0.057701 95 a1 1.15093 19907 a 0.5858 7305 z p 1339j1339 1339j1339 z p 0.607517 j0.770771 z z z z 1

Example : nd order high pass filter with 1000 Hz The transfer function of a nd order analog high pass filter with 0 db gain: s s c s c = damping ratio (0 to 1) c = f c, f c = corner frequency The transfer function has two poles located at s p1,p c j c and two zeros s z1 = s z at 0. The corner frequency of the nd order analog filter f c = 1000 Hz, therefore c = 683. For the nd order filter to have 3 db at the corner frequency the damping ratio should be set to: 0.7071068 The transfer function of the analog low pass filter: s s 8.8858 10 3 s 3.978 10 7 the poles s p1,p 3 j 3, the zeros s z1 = s z = 0 f s = 3000 Hz: 3j3 3j3 0.86350 j 0.108905 The second order digital filter transfer function: H(z) G (zz z1) (zz z ) (zz p1 ) (zz p ) H(z) G z z 1 z 1.7650 z 0.758191 has unity gain at infinity: H(z) G (1z z1) (1z z ) (1z p1 ) (1z p ) 1 BT( ) 1 thus G (1z p1) (1z p ) G = 0.8707173 H(z) 0.8707173 z 1.7136 z 0.8707173 z 1.7650 z 0.758191 b0 0.8707173 166 b1 1.7136 853 b 0.8707173 166 a1 1.7650 857 a 0.758191 13 3j3 z p 3j3 z p 0.86350 j 0.108905 z z z z 1 ARKbase is a trademark of Semiconductor Components Industries, LLC (SCILLC). ON Semiconductor and are registered trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC owns the rights to a number of patents, trademarks, copyrights, trade secrets, and other intellectual property. A listing of SCILLC s product/patent coverage may be accessed at www.onsemi.com/site/pdf/patent Marking.pdf. SCILLC reserves the right to make changes without further notice to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does SCILLC assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages. Typical parameters which may be provided in SCILLC data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including Typicals must be validated for each customer application by customer s technical experts. SCILLC does not convey any license under its patent rights nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where personal injury or death may occur. Should Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that SCILLC was negligent regarding the design or manufacture of the part. SCILLC is an Equal Opportunity/Affirmative Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner. PUBLICATION ORDERING INFORMATION LITERATURE FULFILLMENT: Literature Distribution Center for ON Semiconductor P.O. Box 5163, Denver, Colorado 8017 USA Phone: 303 675 175 or 800 3 3860 Toll Free USA/Canada Fax: 303 675 176 or 800 3 3867 Toll Free USA/Canada Email: orderlit@onsemi.com N. American Technical Support: 800 8 9855 Toll Free USA/Canada Europe, Middle East and Africa Technical Support: Phone: 1 33 790 910 Japan Customer Focus Center Phone: 81 3 5817 1050 5 ON Semiconductor Website: www.onsemi.com Order Literature: http://www.onsemi.com/orderlit For additional information, please contact your local Sales Representative AND9105/D