Microchip Active Filter Design
Microchip Active Filter Design
Microchip Active Filter Design
DS51666B
Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet. Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchips Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchips code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyers risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.
Trademarks The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, rfPIC, SmartShunt and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM, PICDEM.net, PICtail, PIC32 logo, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. 2008, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper.
Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Companys quality system processes and procedures are for its PIC MCUs and dsPIC DSCs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchips quality system for the design and manufacture of development systems is ISO 9001:2000 certified.
DS51666B-page ii
Chapter 1. Overview
1.1 Introduction ..................................................................................................... 5 1.2 Accessing Mindi .......................................................................................... 6 1.3 Active Filter Design ........................................................................................ 9
Chapter 6. Analyze
6.1 Introduction ................................................................................................... 43 6.2 Interactive Schematic ................................................................................... 43 6.3 Reset Design ................................................................................................ 57 6.4 Design Summary .......................................................................................... 57 6.5 Downloads, Samples and More ................................................................... 58
DS51666B-page iii
DS51666B-page iv
INTRODUCTION
This chapter contains general information that will be useful to know before using the Mindi Active Filter Designer & Simulator. Items discussed in this chapter include: Document Layout Conventions Used in this Guide The Microchip Web Site Customer Support Document Revision History
DS51666B-page 1
DS51666B-page 2
Preface
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS
Description Arial font: Italic characters Initial caps Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path A dialog button A tab A number in verilog format, where N is the total number of digits, R is the radix and n is a digit. A key on the keyboard Sample source code Filenames File paths Keywords Command-line options Bit values Constants A variable argument Optional arguments Choice of mutually exclusive arguments; an OR selection Replaces repeated text Represents code supplied by user Examples MPLAB IDE Users Guide ...is the only compiler... the Output window the Settings dialog select Enable Programmer Save project before build File>Save Click OK Click the Power tab 4b0010, 2hF1
Quotes Underlined, italic text with right angle bracket Bold characters NRnnnn
Text in angle brackets < > Courier New font: Plain Courier New
Press <Enter>, <F1> #define START autoexec.bat c:\mcc18\h _asm, _endasm, static -Opa+, -Opa0, 1 0xFF, A file.o, where file can be any valid filename mcc18 [options] file [options] errorlevel {0|1} var_name [, var_name...] void main (void) { ... }
Italic Courier New Square brackets [ ] Curly brackets and pipe character: { | } Ellipses...
DS51666B-page 3
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels: Distributor or Representative Local Sales Office Field Application Engineer (FAE) Technical Support
Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com.
DS51666B-page 4
DS51666B-page 5
FIGURE 1-1:
DS51666B-page 6
Overview
The Mindi Home Page is shown in Figure 1-2. To enter the Mindi Circuit Designer & Simulator, click the Click Here to Start button in the window.
Once users log onto Mindi, the home page is displayed, indicating the application circuits that are available for design and simulation, as shown in Figure 1-3. The Active Filters button is indicated in the upper-left corner of the web page. Click on it to enter the active filter online design and simulation test environment. The first time Active Filters accessed, users will be prompted to provide some basic registration informatio, as shown in Figure 1-4. Once registered, an account is created on the Host Server and users will be able to generate and analyze designs on the Mindi Circuit Designer & Simulator web page. Custom designs can also be saved to users PC, where they can be accessed for future reference. Note: If a Pop-Up Blocker is enabled on the users browser, there may be a problem with the registration process. Please be sure to disable this feature when registering on Mindi. On Internet Explorer, this is done by selecting the Pop-Up Blocker window under the Tools pull-down menu.
DS51666B-page 7
FIGURE 1-3:
Application Circuit.
FIGURE 1-4:
DS51666B-page 8
Overview
1.3 ACTIVE FILTER DESIGN
The Mindi Active Filter Designer & Simulator has five filter design tabs which include Application Circuit, Filter Requirement, Advanced Options, Op Amp Selection, Analyze, as shown on the Tab bar on the top of the tool page in Figure 1-5. These tabs enable the user to move through the design steps of specifying performance requirements. An overview of the Mindi Active Filter Designer & Simulator is given in the following sections.
1.3.1
The active filter design starts from the Application Circuit tab (see Figure 1-3). Select Active Filters button to enter the online simulation test environment.
1.3.2
Click the Filter Requirements tab and set desired parameters for the filter. (This tab is discussed in more detail in Chapter 3. Filter Requirements.)
FIGURE 1-5:
Filter Requirements.
DS51666B-page 9
FIGURE 1-6:
Advanced Options.
DS51666B-page 10
Overview
1.3.4 Op Amp Selection Tab
Click the Op Amp Selection tab, choose an op amp to be used in the filter and click the corresponding Analyze link to start the next phase of the design. (This tab is discussed in more detail in Chapter 5. Op Amp Selection).
FIGURE 1-7:
Op Amp Selection.
DS51666B-page 11
Analyze Tab
There are four buttons associated with the Analyze tab: Interactive Schematic Reset Design Design Summary Downloads, Samples and More
The Mindi Active Filter Designer & Simulator generates the filter circuit schematic on this tab. For maximum design flexibility, changes in resistor and capacitor values can be implemented to fit the demands of the application. To run a simulation, choose a mode from the Select drop-down menu and click the Run button to simulate the schematic. Once the simulation is complete, waveforms will be available via the Waveforms drop-down menu. A single-page design summary can be generated by clicking Design Summary button. Moreover, the schematic, BOM, filter SPICE model and MindiTM offline version can be downloaded. (This tab is discussed in more detail in Chapter 6. Analyze).
FIGURE 1-8:
Analyze.
DS51666B-page 12
MINDI ACTIVE FILTER DESIGNER USERS GUIDE Chapter 2. Filter Design Tutorial
2.1 INTRODUCTION
This chapter steps users through the design of an example active filter circuit.
2.2
Transition Band
HM AS BW fS
Stop-band
Frequency (Hz)
FIGURE 2-1:
DS51666B-page 13
FIGURE 2-2:
Active Filters.
DS51666B-page 14
FIGURE 2-3:
Filter Requirements.
DS51666B-page 15
FIGURE 2-4:
Advanced Options.
DS51666B-page 16
FIGURE 2-5:
Op Amp Selection.
DS51666B-page 17
FIGURE 2-6:
DS51666B-page 18
FIGURE 2-7:
FIGURE 2-8:
DS51666B-page 19
FIGURE 2-9:
Simulation Complete.
FIGURE 2-10:
DS51666B-page 20
FIGURE 2-11:
FIGURE 2-12:
DS51666B-page 21
FIGURE 2-13:
Step Response.
FIGURE 2-14:
Design Summary.
DS51666B-page 22
FIGURE 2-15:
DS51666B-page 23
DS51666B-page 24
3.2
FILTER SELECTIVITY
The Selectivity drop-down menu enables the user to specify a filter type as Low-pass, High-pass and Band-pass.
FIGURE 3-1:
Filter Selectivity.
3.3
FILTER DESCRIPTION
The Description table below the Selectivity pull-down menu describes the specified filter, as indicated in Figures 3-2 thru 3-4.
FIGURE 3-2:
DS51666B-page 25
FIGURE 3-3:
FIGURE 3-4:
DS51666B-page 26
Filter Requirements
3.4 FILTER RESPONSE
1. Move the mouse to the filter response graph and click on it to enlarge.
FIGURE 3-5:
Figure 3-6 thru Figure 3-8 provide a simplified representation of the filter responses and specification parameters. For all selectivities, AP and AS represent the pass-band and stop-band attenuations. HM represents the maximum transfer function magnitude. A detailed discussion is provided in Appendix A. Filter Magnitude Templates.
3.4.1
Low-Pass Filter
Magnitude (dB)
Pass Band Transition Band
Stop Band
Frequency (Hz)
FIGURE 3-6: Selectivity. Filter Response and Parameter Definitions for Low-pass
DS51666B-page 27
Stop Band
Frequency (Hz)
3.4.3
Band-Pass Filter
fPL = Lower Pass-band Frequency; fPU = Upper Pass-band Frequency fSL = Lower Stop-band Frequency; fSU = Upper Stop-band Frequency BWL = Lower -3 dB Bandwidth; BWU = Upper -3 dB Bandwidth
Magnitude (dB)
Stop Band
Stop Band
Frequency (Hz)
DS51666B-page 28
Filter Requirements
3.5 FILTER CHARACTERISTICS
The Filter Characteristics dialog enables users to specify the Approximation type, Filter Order, Overall Filter Gain, Pass-band characteristics and Stop-band characteristics.
3.5.1
Approximation
The Approximation drop-down menu specifies three most commonly used filter approximations: Butterworth, Bessel and Chebyshev. A detailed discussion about the differences between these approximations is provided in Appendix B. Low-Pass Filter Approximations. Note: Bessel is available only when Low-pass is selected.
FIGURE 3-9:
Filter Approximation.
3.5.2
For a Butterworth, Bessel and some Chebyshev approximations, the overall filter gain (G) is set as HM as shown in Figure 3-6 through Figure 3-8. This setting is reflected in Figure 3-10 and Figure 3-11. For other Chebychev Approximation: Low-pass of even order, High-pass of even order and Band-pass of orders 4 and 8, the overall filter gain (G) is set as HM - AP as shown in Figure 3-6 through Figure 3-8. This setting is reflected in Figure 3-12 and Figure 3-13. The allowable range of overall filter gain is 1 V/V to 10 V/V.
FIGURE 3-10:
.
FIGURE 3-11:
DS51666B-page 29
FIGURE 3-12:
FIGURE 3-13:
DS51666B-page 30
Filter Requirements
3.5.3 Filter Order
The Filter Order drop-down menu allows users to specify the filter order, if desired. By default, the Force checkbox is unselected, and users only need to specify the characteristics of Pass-band and Stop-band. The Mindi Active Filter Designer will automatically calculate the best filter order according to the characteristics of pass-band and stop-band specified by users. The calculated filter order will be the minimum order that meets or exceeds the required stop-band attenuation. When the Force checkbox is selected, the Stop-band characteristics text boxes will be disabled. In this case, users only need to specify the filter order and Pass-band characteristics. Band-pass selectivity only permits an even filter order. Therefore, the order will increment by two when the Band-pass selectivity is selected.
FIGURE 3-14:
Filter Order.
FIGURE 3-15:
DS51666B-page 31
Bessel approximations only support forced filter orders. When the Bessel approximation is selected, the Force checkbox will be selected and disabled.
DS51666B-page 32
Filter Requirements
3.5.4 Pass-band and Stop-band Characteristics
The Pass-band and Stop-band characteristics text boxes allow users to modify the filter circuit parameters. For all selectivities, AP represents the Pass-band attenuations and AS represents the Stop-band attenuations. For Low-pass selectivities, fP represents the Pass-band frequencies and High-pass selectivities, fS represent the Stop-band frequencies. Note: The current version of Mindi requires negative values for the attenuations (e.g., AP and AS). For example, AP = 3 dB is entered as -3 in the Attenuation text boxes; AS = 80 dB is entered as -80 in the Attenuation text box.
For Band-pass selectivity, fPU and fPL represent the Pass-band upper and lower frequencies, while fSU and fSL represent the Stop-band upper and lower frequencies.
FIGURE 3-18:
DS51666B-page 33
3.5.4.2
The Stop-band attenuation is the minimum reduction in magnitude of the frequencies in the Stop-band relative to the pass-band. The Stop-band attenuation for each selectivity is shown in Figure 3-6 thru Figure 3-8. The allowable range is -10 dB to -100 dB. 3.5.4.3 PASS-BAND FREQUENCY
The Pass-band frequency is the starting point of the Pass-band, as shown in Figure 3-6 thru Figure 3-8. The allowable range is 0.1 Hz to 1 MHz. For a Low-pass filter, the Pass-band frequency must be lower than the Stop-band frequency for Low-pass selectivity. For a High-pass filter, the Pass-band frequency must be greater than the Stop-band frequency for High-pass selectivity. For a Band-pass filter, the lower Pass-band frequency must be lower than the upper Pass-band frequency and both Stop-band frequencies for Band-pass selectivity. 3.5.4.4 STOP-BAND FREQUENCY
The Stop-band frequency is the starting point of the Stop-band, as shown from Figure 3-6 thru Figure 3-8. The allowable range is 0.1 Hz to 1 MHz. For a Low-pass filter, the Stop-band frequency must be greater than the Pass-band frequency for Low-pass selectivity. For a High-pass filter, the Pass-band frequency must be greater than the Stop-band frequency for High-pass selectivity. For a Band-pass filter, the lower Pass-band frequency must be lower than the upper Pass-band frequency and both Stop-band frequencies for Band-pass selectivity.
3.5.5
Reset
The Reset button on the lower left of the window allows the user to reset any changes made to the Filter Characteristics text boxes to their initial settings.
3.5.6
Advanced Options
After setting the desired parameters for the filter, click on the Advanced Options button to configure the topologies, specify component tolerances, and set the Op Amp constraints.
DS51666B-page 34
4.2
TOPOLOGY SELECTION
The circuit topologies supported are the Sallen Key and Multiple Feedback (MFB). The Low-pass filters can use either the Sallen Key or MFB, the Band-pass filter is available with the MFB and the High-pass filter uses the Sallen Key. The choice of circuit topology for Low-pass filter depends on performance requirements. The MFB has low sensitivity to component variations and superior high-frequency behavior. The Sallen Key inherently has the superior gain accuracy at unity gain because its gain is not dependent on component values. For more information, refer to the filter textbooks listed in Appendix E. Selected References. Note: For Low-pass filters, changing the topology only affects the selected stage.
FIGURE 4-1:
Topologies Selection.
DS51666B-page 35
FIGURE 4-2:
4.4
CAPACITOR SELECTION
The Capacitor Selection allows users to select the tolerance of the capacitors used in the filter circuit or use the exact calculated value. Changing the Capacitor Selection affects all stages of the filter circuit. The capacitor selection defaults to E12 allowing off-the-shelf components to be specified in the filter circuit solution. Note: E12 is a preferred number series specified in IEC 60063. The number following the E indicates how many standardized (commercially) available values exist in each decade (e.g., between 10 and 100, or between 100 and 1000). So, capacitors conforming to E12 have 12 distinct values between 10 and 100.
FIGURE 4-3:
DS51666B-page 36
Advanced Options
4.5 OP AMP CONSTRAINTS
The Op Amp Constraints text boxes allow users to specify the values for: Power Supply Voltage (VDD) VDD is the filters nominal single supply voltage with a range of 1.4V to 5.5V and dual supply voltages need to be converted to an equivalent single supply value. Maximum Output Voltage Swing (Vswing) Vswing is the maximum expected voltage swing at any filter op amps output with a range of 0 V to VDD. THD Ceiling THD Ceiling is the maximum harmonic (non-linear) distortion allowed in the application with a range of -100 dBc to -40 dBc.
.
FIGURE 4-4:
Op Amp Constraints.
After configuring the desired topology and setting the specifications for the components, click the Op Amp Selection tab to select the op amp to be used in this filter.
DS51666B-page 37
DS51666B-page 38
5.2
RECOMMENDED OP AMPS
Five tables are provided in this tab as indicated in Figure 5-1: 1. The Filter Characteristics table lists the key filter design information as a reference. 2. The Op Amp Design Constraints and Recommended Op Amp Parameters tables show the recommended op amp specifications for the filter design. 3. The Recommended Op Amps table lists those op amps that come close to the recommended op amp specifications. The ideal op amp list at the top is included for comparing simulation results to textbook filter responses. 4. The Other Op Amps table lists other op amps that are not as close to the recommended op amp specifications. The specifications that do not meet recommendations are indicated in red. Once the op amp has been selected, click the corresponding Analyze link, the Mindi Active Filter Designer & Simulator can generate and simulate the schematic of the filter circuit.
DS51666B-page 39
FIGURE 5-1:
Op Amp Selection.
5.3
OP AMP SPECIFICATIONS
The following specificitions are shown to help the designer choose the right op amp. 1. Gain Bandwidth Product: The product of op amp open-loop gain times the frequency at any point where the amplifier response is attenuating at a rate of -20 dB/decade of frequency. 2. Slew Rate: The maximum rate of change at the output of an op amp. Basically, says how fast the output can follow the input. 3. Power Supply Voltage: The acceptable supply voltage which allows the linear operation of an op amp. 4. Quiescent Current (Iq): The amount of current consumed by op amp when it is not performing any work (idle).
DS51666B-page 40
Op Amp Selection
5. Rail-to-Rail Input/Output: The op amp will operate correctly when its input/output is closely driven to either power rail under defined operating conditions. (N means No and Y means Yes). A detailed discussion of the op amp selection algorithms and criteria are provided in Appendix C. Op Amp Selection.
DS51666B-page 41
DS51666B-page 42
6.2
INTERACTIVE SCHEMATIC
6.2.1 Schematic Viewer
The Mindi Active Filter Designer & Simulator automatically generates the full schematic view of the filter circuit with recommended component values. The individual components of the schematic can be modified, allowing users to further evaluate the design solution. Various Simulation operations can also be selected in order to analyze and evaluate the performance of the filter circuit. Detailed help on using the Schematic Viewer can be accessed via the Help button.
FIGURE 6-1:
Schematic Viewer.
DS51666B-page 43
.
Note:
DS51666B-page 44
Analyze
FIGURE 6-2:
FIGURE 6-3:
DS51666B-page 45
FIGURE 6-4:
FIGURE 6-5:
DS51666B-page 46
Analyze
6.2.3 Edit Op Amp
The type of op amp can also be changed. Changing the type of op amp only affects the op amp that is selected as shown in Figure 6-6. To change the op amp, move the mouse the appropriate op amp, then left-click the mouse. A dialog box will appear and the user can select the type of op amp and click OK. Note: It is users responsibility to ensure the proper filter behavior when the op amp is changed.
FIGURE 6-6:
Edit Op Amp.
DS51666B-page 47
FIGURE 6-7:
Select AC Analysis.
DS51666B-page 48
Analyze
6.2.4.1.1 Configure Simulation The Configure Simulation text box allows users to set up the start frequency, stop frequency and resolution for AC Analysis. The allowable range of start and stop frequencies: 0.001 Hz to 100 MHz The allowable range of resolution: 1 point/decade to 10000 points/decade
RUN SIMULATION
Click the Run button to start the simulation. A Simulation Complete dialog box pops up when the simulation is complete. Click the OK button to view the waveforms. (See Figure 6-9 and Figure 6-10).
FIGURE 6-9:
Run Simulation.
DS51666B-page 49
Simulation Complete.
VIEW WAVEFORMS
The Waveforms drop-down menu includes two kinds of waveforms: Magnitude - Group Delay Magnitude - Phase Note 1: Group Delay is a measure of frequency domain response of the active filter. It focuses on the relative time delay among sine waves of nearly equal frequency. Magnitude means the magnitude response of the filter transfer function, which is the overall filter gain. Phase means the phase response of the filter transfer function, which is the overall filter phase shift.
2: 3:
DS51666B-page 50
Analyze
View Waveforms.
Magnitude - Group Delay can be chosen in the View Waveforms drop-down menu. The y-axes display the magnitude of the overall filter gain function and the group delay of the filter. The x-axis displays the frequency. Two sets of simulation data are shown: the response using an ideal op amp model, and the response using the selected op amps model.
FIGURE 6-12:
DS51666B-page 51
Magnitude - Phase
Magnitude - Phase can be chosen in the Waveforms drop-down menu. The y-axes displays the magnitude of overall filter gain and the phase shift between VOUT and VIN. The x-axis displays the frequency. Two sets of simulation data are shown: the response using an ideal op amp model, and the response using the selected op amps model.
DS51666B-page 52
Analyze
FIGURE 6-14:
Magnitude - Phase waveform has the same user interface as Magnitude - Group Delay waveform. (Section 6.2.4.3.1)
DS51666B-page 53
Transient Analysis.
CONFIGURE SIMULATION
The Configure Simulation text boxes allows the user to set up the start time and stop time for the Transient Analysis. The allowable range of Stop Time: 1 us to 100s.
FIGURE 6-16:
DS51666B-page 54
Analyze
6.2.4.6 RUN SIMULATION Click the Run button to start the simulation. A Simulation Complete dialog pops up when the simulation is complete. Click the OK button to view the waveforms.
FIGURE 6-17:
Run imulation.
FIGURE 6-18:
Simulation Complete.
DS51666B-page 55
Waveforms.
Step Response
The y-axis displays the voltage of the step response. The x-axis displays the time.
FIGURE 6-20:
Step Response.
Step Response waveform has the same user interface as Magnitude-Group Delay waveform. For more information, refer to Section 6.2.4.3.1.
DS51666B-page 56
Analyze
6.3 RESET DESIGN
Click the Reset Design button to restore schematic to the original application circuit that was generated from the users inputs on the Input Requirements page. This action will reset all component values back to their default values.
FIGURE 6-21:
Reset Design.
6.4
DESIGN SUMMARY
Click the Design Summary button to display or print a single page summary of the application circuit solution, including Input Requirements, Schematic, Simulation Waveforms and Bill of materials (BOM).
FIGURE 6-22:
Design Summary.
DS51666B-page 57
FIGURE 6-23:
DS51666B-page 58
MINDI ACTIVE FILTER DESIGNER USERS GUIDE Appendix A. Filter Magnitude Templates
A.1 INTRODUCTION
This chapter provides additional information on the Low-pass, Band-pass, and High-pass filter templates used in the Mindi Active Filter Designer & Simulator.
A.2
Magnitude (dB)
Pass Band Transition Band
Stop Band
Frequency (Hz)
FIGURE A-1:
The nominal filter response is required to stay within the three regions: Pass-band, Transition band and Stop-band. The relevant parameters for the three regions and the controlling inequalities are: Pass-band 0 f fP 0 A AP Where: HM A AP * fP * BW = = = = = Maximum Transfer Function Magnitude (dB) Attenuation (relative to HM) (dB) Pass-band Ripple/Max. Attenuation (dB) Pass-band Frequency (Hz) -3 dB Bandwidth
DS51666B-page 59
The gain parameter (G) in the Mindi Active Filter Designer & Simulator corresponds to the DC gain (for good sensitivity performance). Thus: G G = = HM; Bessel, Butterworth and Chebychev (n = 1, 3, 5, 7) HM - AP; Chebychev (n = 2, 4, 6, 8)
The limits that Mindi Active Filter Designer & Simulator enforces on these Low-pass parameters are: 0.1 Hz fP < fS 1.0 MHz AP = 3.0 dB, Bessel Filters 0.01 dB AP 3.0 dB, Butterworth and Chebychev 10 dB AS 100 dB 1 V/V G 10 V/V, (0 dB to 20 dB) Note: The current version of Mindi requires negative values for the attenuations (e.g., AP and AS). For example, AP = 3 dB is entered as -3 in the Attenuation text box. AS = 80 dB is entered as -80 in the Attenuation text box.
DS51666B-page 60
Magnitude (dB)
Stop Band
Stop Band
Frequency (Hz)
FIGURE A-2:
The nominal filter response is required to stay within the five regions shown (Pass-band, two transition bands and two Stop-bands). The relevant parameters for the three regions and the controlling inequalities are: Lower Stop-band f fSL AS A Where: fSL AS A HM fSL < f < fPL AP < A < AS Where: = fSL = fPL * AP A AS = = = = = = = Lower Stop-band Edge Frequency (Hz) Minimum Stop-band Attenuation (dB) Attenuation (relative to HM) (dB) Maximum Transfer Function Magnitude (dB)
Lower Stop-band Edge Frequency (Hz) Lower Pass-band Frequency (Hz) Pass-band Ripple/Max. Attenuation (dB) Attenuation (relative to HM) (dB) Minimum Stop-band Attenuation (dB)
DS51666B-page 61
Lower Pass-band Frequency (Hz) Upper Pass-band Frequency (Hz) Attenuation (relative to HM) (dB) Pass-band Ripple/Max. Attenuation (dB)
= AP * * sometimes referred to as cut-off Upper Transition Band fPU < f < fSU AP < A < AS Where: = fPU * = fSU AP * =
Upper Pass-band Frequency (Hz) Upper Stop-band Edge Frequency (Hz) Pass-band Ripple/Max. Attenuation (dB)
= Min. Stop-band Attenuation (dB) AS * sometimes referred to as cut-off Upper Stop-Band fSU f AS A Where: fSU AS
= =
The gain parameter (G) in the Mindi Active Filter Designer & Simulator corresponds to the mid-band gain (for ease of implementation), where: f0 Thus, G G = = HM ; HM - A P ; Bessel, Butterworth and Chebychev (n = 2, 6) Chebychev (n = 4, 8) = = Mid-band Frequency (fPL fPU)1/2
The limits that Mindi Active Filter Designer & Simulator enforces on these band-pass parameters are: 0.1 Hz fSL < fPL < fPU < fSU 1.0 MHz 1.2210 fPU/fPL 5.8284 0.01 dB AP 3.0 dB 10 dB AS 100 dB 1 V/V G 10 V/V, (0 dB to 20 dB) The current version of Mindi requires negative values for the attenuations (e.g., AP and AS). For example, AP = 3 dB is entered as -3 in the Attenuation text box. AS = 80 dB is entered as -80 in the Attenuation text box.
DS51666B-page 62
Magnitude (dB)
Stop Band
Frequency (Hz)
FIGURE A-3:
The nominal filter response is required to stay within the three regions shown (Pass-band, Transition Band and Stop-band). The relevant parameters for the three regions and the controlling inequalities are: Pass-band fP f 0 A AP Where: fP * BW HM A
= = = =
Pass-band Frequency (Hz) -3 dB Bandwidth Maximum Transfer Function Magnitude (dB) Attenuation (relative to HM) (dB) Pass-band Ripple/Max. Attenuation (dB)
= AP * * sometimes referred to as cutoff Transition Band fS < f < fP AP < A < AS Where: = fS = fP * AP * A = =
Stop-band Edge Frequency (Hz) Pass-band Frequency (Hz) Pass-band Ripple/Max. Attenuation (dB)
Attenuation (relative to HM) (dB) = Minimum Stop-band Attenuation (dB) AS * sometimes referred to as cutoff
DS51666B-page 63
= = =
Stop-band Edge Frequency (Hz) Minimum Stop-band Attenuation (dB) Attenuation (relative to HM) (dB)
The gain parameter (G) in the Mindi Active Filter Designer & Simulator corresponds to the high frequency gain (at "infinity" for good sensitivity performance). Thus: G G = = HM ; HM - A P ; Bessel, Butterworth and Chebychev (n = 1, 3, 5, 7) Chebychev (n = 2, 4, 6, 8)
The limits that the Mindi Active Filter Designer & Simulator enforces on these High-pass parameters are: 0.1 Hz fS < fP 1.0 MHz 0.01 dB AP 3.0 dB 10 dB AS 100 dB 1 V/V G 10 V/V, (0 dB to 20 dB) Note: The current version of Mindi requires negative values for the attenuations (e.g., AP and AS). For example, AP = 3 dB is entered as -3 in the Attenuation text box. AS = 80 dB is entered as -80 in the Attenuation text box.
DS51666B-page 64
MINDI ACTIVE FILTER DESIGNER USERS GUIDE Appendix B. Low-Pass Filter Approximations
B.1 INTRODUCTION
The Mindi Active Filter Designer & Simulator supports three most commonly used filter approximations: Butterworth, Bessel and Chebyshev. The tool allows the design of Low-pass filters with Chebychev, Bessel or Butterworth. It also allows design Band-pass and High-pass filters with Chebychev and Butterworth responses. Lets choose the Low-pass filter with 6th order as an example and discuss the difference between these approximations.
B.1.1
It has the following characteristics: Maximally-flat-magnitude-response filters, optimized for gain flatness in the Pass-band. Above the pass-band frequency the attenuation is -20 dB/decade/order (Figure B-1) Moderate group delay response (Figure B-2) Moderate overshoot and ringing in the step response (Figure B-3) The magnitude - phase response of the 6th order Low-pass filters with Butterworth approximation is shown in Figure B-1.
FIGURE B-1:
The magnitude - group delay response of the 6th order Low-pass filters with Butterworth approximation is shown in Figure B-2.
DS51666B-page 65
FIGURE B-2:
The step response of the 6th order Low-pass filters with Butterworth approximation is shown in Figure B-3.
FIGURE B-3:
Step Response.
DS51666B-page 66
FIGURE B-4:
The magnitude - phase response of the 6th order Low-pass filters with Bessel approximation is shown in Figure B-5.
DS51666B-page 67
FIGURE B-5:
The step response of the 6th order Low-pass filters with Bessel approximation is shown in Figure B-6.
FIGURE B-6:
DS51666B-page 68
FIGURE B-7:
The magnitude - group response of the 6th order Low-pass filters with Chebyshev approximation is shown in Figure B-8.
DS51666B-page 69
The step response of the 6th order Low-pass filters with Chebyshev approximation is shown in Figure B-9.
FIGURE B-9:
DS51666B-page 70
Approximations
Gain Flatness in Group Delay Flatness Pass-band in Pass-band Moderate Good Poor Good Moderate Poor
Bessel approximation only supports Low-pass filter. Overshoot is the amount which output voltage exceeds its target value. Ringing is an unwanted oscillation of a voltage or current.
DS51666B-page 71
DS51666B-page 72
Where: HM fP fPU Q
fmax
Try op amps with different GBWPs to see what you require. Small signal frequency response (typically VOUT < 100 mVP-P) starts to peak as the GBWP goes too low. Harmonic distortion also grows as the GBWP goes lower.
C.1.2
The op amps also need to handle large signals. The SR (Slew Rate) specified in the op amp data sheets is related to the full-power bandwidth as follows. fFPBW Where: VOUT_P-P SR fFPBW = = = = SR/(VOUT_P-P) (Hz) Filter section's maximum output voltage swing (VP-P) < VDD VSS Slew rate (V/s); data sheets usually give units of V/s (1 V/s = 1,000,000 V/s) op amp full-power bandwidth (Hz)
Sine waves faster than fFPBW will not be faithfully reproduced because their derivative (slew rate) is too high.
DS51666B-page 73
= =
THDSR
C.1.3
Choose the resistance values in your filter so that the op amp is not overloaded. A compromise among loading, noise and parasitic RC time constants needs to be made. To scale the resistor values, change the capacitor values in the Filter Circuit Schematic within the Mindi.
C.1.4
MINIMUM GAIN
Most op amps are unity gain stable (G +1 V/V). A few op amps need to be set at higher gains to remain stable (e.g., G +10 V/V for the MCP6141). If you need gain in your filter, this kind of part can give you the bandwidth and the gain you need with less quiescent current. Note that inverting gains, used in Multiple Feedback (MFB) sections, have an equivalent "noise gain" that is used to determine stability. It is calculated as: 1 + |G| (e.g., a signal gain of -1 V/V gives a noise gain of +2 V/V).
DS51666B-page 74
An equivalent definition, when frequency is in Hz and phase is in degrees, is: f (f) gd(f)
Figure D-1 and Figure D-2 illustrate phase and group delay.
360 jump
(0)
fP
fS
DS51666B-page 75
gd(0)
fP
fS
Some reasons that group delay has been traditionally used for filter work are: It is easier to manipulate mathematically (no arc-tangent functions) Group delay is easier to optimize: - Its jump discontinuities are only at transmission zeros on the j-axis (gain is zero) - It is a non-negative function for Low-pass filters It applies directly to AM modulated signals: - The information is delayed by the group delay (also known as envelope delay) - It maps directly to group delay at baseband - The carrier is delayed by a different time (total phase shift divided by carrier frequency) It is a good indicator of Low-pass step response quality: - Constant group delay in the pass-band, and well into the Transition band (A < 10 dB to 20 dB), indicates a very good step response - Group delay with peaking (usually near fP) indicates overshoot and ringing
DS51666B-page 76
E.1.2
APPLICATION NOTES
[1] Bonnie Baker, Anti-Aliasing, Analog Filters for Data Acquisition Systems, Application Note 699, DS00699, Microchip Technology Inc., 1999.
DS51666B-page 77
ASIA/PACIFIC
Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon Hong Kong Tel: 852-2401-1200 Fax: 852-2401-3431 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China - Beijing Tel: 86-10-8528-2100 Fax: 86-10-8528-2104 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 China - Hong Kong SAR Tel: 852-2401-1200 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China - Shenzhen Tel: 86-755-8203-2660 Fax: 86-755-8203-1760 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049
ASIA/PACIFIC
India - Bangalore Tel: 91-80-4182-8400 Fax: 91-80-4182-8422 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-2566-1512 Fax: 91-20-2566-1513 Japan - Yokohama Tel: 81-45-471- 6166 Fax: 81-45-471-6122 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-572-9526 Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350
EUROPE
Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 UK - Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820
01/02/08
DS51666B-page 78