This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TINA/Spice/LP324-N: Filter Designer Tool vs Tina-TI

Part Number: LP324-N
Other Parts Discussed in Thread: TINA-TI, , LM324, LMV612, OPA4187, OPA187

Tool/software: TINA-TI or Spice Models

Hello

i have a question regarding new Filter Designer Tool. First of all i would like to say that it is a major and good improvement from the previous Filter Designar Tool.

My questions is this. I defined a notch filter with 60Hz notch, and 6Hz BW. The tool suggests a Bainter topology with LP324-N opamp. The tool shows a magnitude graph where the notch is really deep and narrow. When i export to tina-ti it informs me that LP324-N does not exist so an ideal opamp will be used. Here is my concern. Is the graph from the tool (filter designer) based on a LP324-N that you do not want to share (and i understand that) or is the magnitude graph based on ideal opamp simulation?

Thank you       

  • Hi Mirza,

    the tool doesn't work for me at all! Are you using Firefox browser?

    Kai
  • I use google chrome ... but flash needs to be enabled.

    Did you try to understand the results you get?

  • Hi Mirza,

    I have enabled the flash. Still doesn't work properly for me. All seems to work until I push the button "create design". Then nothing happens at all...

    Can you give me your TINA-TI file? Then I will see what I can do for you.

    Kai
  • webench_design_3569784_41.tscHi,

    The problem is not with Tina-TI. My issue is with this. Is the magnitude response from Filter Desginer Tool based on assumption that OPAMP is ideal or does Filter Designer Tool use LP324-N spice model that TI is not willing to share. I dont really mind if the LP324-N is not shared i just want to be sure that results are realistic. I am asking because in Tina-TI there is a LPV324, LMV324N, LM324 and if use those in Tina-TI the results are not even close to what Filter Designer Tool does.

    So if someone from TI can tell me when i do export design in Filter Designer Tool and i get ideal opamp will be used, does that mean that also Filter Designer is using ideal opamp?

    Thank you

  • Former Member
    0 Former Member in reply to Mirza Pasovic85

    Hello Mirza,

    Unfortunately, because the tool is so new it has some limitations which we are aware of and working to resolve.

    To answer your question, the tool uses an idealized op amp and not a spice model of a real part.  After the simulation, the tool determines which part would work based upon the part's specifications.  The TINA spice simulation should help you to verify the results of the webench tool using the part's actual model.

    However, there is no model of the LP324-N, neither public nor private.  This brings up a shortcoming of the tool.  It does not have a complete listing of all the parts available.  The consequence of this is that it may suggest older parts, which are less likely to have TINA models...such as the LP324-N.

    The good news is that the web bench tool will provide accurate results with the assumption of an idealized op amp.  So, the real issue here is to determine how much performance you need out of your part.

    I would suggest you consider two key specifications when selecting an op amp:  bandwidth and slew rate.

    If you need help determining the minimum bandwidth required, you can use our FilterPro 3.1 tool to help.  This tool works very similarly to the webench tool.  Once you've completed your design using this tool, it will give you the minimum gain bandwidth product required of the part.

    To determine the minimum slew rate required, you need to determine the maximum output voltage amplitude at your highest frequency of interest.  Then use the full power bandwidth formula to determine the minimum slew rate needed from your part.  For more information on this and the formula, see the final slide in this Precision Labs slide deck.

    This should give you enough information to select your op amp.  You can use our Product Selection Guide for Op Amps to quickly search our product portfolio for the part(s) that will work best for your filter.

    Please let me know if you have any further questions.

    Daniel

  • Hi Mirza,

    here comes a TINA-TI file which works:

    mirza1.TSC

    Kai

  • Thank you for a very detailed answer. I understand now much more.

    I am building something that is has power supply 0 to 3.3V. I see that even when i choose the opamp based on BWD, slew-rate and that it can work for 1.8-5 power supply, if i set power supply 3.3V the results in Tina-TI are not correct. Only after setting power to 5V i get something. Is this Tina-TI limitation or model limitation?

    Mirza 

  • Hi Kai

    Thank you for the sim. Now can i ask you to choose an opamp that you know works for low power supply form 1.8-5 (on positive supply), then tie all negative power supply pins to GND and all positive power supply pins to 3.3V and run the simulation again.

    What do you get?

  • Hi Mirza,

    if you want to power the OPAmp by a single supply voltage, you will need to generate a midsupply bias voltage.

    Kai
  • Former Member
    0 Former Member in reply to Mirza Pasovic85
    Hello Mirza,

    If Kai's suggestion did not alleviate your issue, you can send me your TSC file and I can take a look at it.

    I'm not sure which topology you are referring to or which op amp you are using right now.

    Regards,
    Daniel
  • Like this, for instance:

    mirza2.TSC

    Kai

  • Hi Kai and Daniel

    thank you very much for the support. 

    I am attaching a design from filter designer tool. I set fc=60, BW=1 Att = -40dB and under design i set ideal values for resistors and capacitors. When i ask for export i am informed that an ideal OPAMP will be used. I run the simulation and i get nice results (which is nice). Even the filter tool sets Vcc=3.3V and Vee=0, so it is a single ended supply. I looked on TI web page for op amp with single ended supply and i found LMV612. When i insert in the design the LMV612 i do not get the results even close enough. 

    Can you suggest or try to explain what is happening

    Thank you

    NotchFilter_FilterDesignerTool.TSC

  • Hi Mirza,

    as Daniel mentioned, the web bench tool does not work properly right now, but makes mistakes. So, I would not trust it. TI should explain the user in detail which feature of the web bench tool is working and which is not.

    Anyway, what is wrong with the schematic I gave you? Have you understood why a midsupply bias voltage is necessary, when the circuit is powered by a single supply voltage? Please go into my "mirza2" simulation and do some "DC Analysis" by using the tool "Calculate nodal voltages". Then you will see, how all the signal nodes are biased at midsupply. Also note the necessity of cap C5.

    Kai

  • Hi Kai,

    i see you are very frustrated with this. I can understand you very well.

    I do not want to go into what is wrong or right, i just want to get a sense of what are the Filter Designer Tool limitations and how i should interpret results. I am a PCB designer who has to sometimes sign off on a few 100k projects. I need to understand the results sims are giving me.

    I understand now a bit better.

    I will still congratulate TI on the effort. There is a realistic need for a Filter Tool in our community. I hope you will continue to expand and develop the tool

    Mirza
  • Hi Mirza,

    sorry, sometimes I'm a bit impulsive... :-)

    Please don't hesitate to ask me, if you have any question about the circuit.

    Kai

  • Hi Mirza,

    I have had a closer look at your last web bench tool simulation. One important point of critcism is, that the web bench tool gives you much too small feedback resistors: R3_S1 = R4_S1 = R3_S2 = R4_S2 = 30 Ohm is totally unrealistic! The consequence would be huge signal currents which the OPAmp cannot deliver at all. Probably the web bench tool has dictated a filter capacitance of 1µF and calculated from this the feedback resistances. In my "mirza2" simulation I have corrected this and have increased the feedback resistances and decreased the filter capacitance, so that the product of both and by this the corner frequency remains the same.

    Another important issue is, that these kind of circuits react very sensitively to manufacturing tolerances of components. In the following simulation I have assumed realistic manufacturing tolerances of about 1% for some of the resistors and 5% for some of the filtering capacitors:

    So, it's very important to use very precise resistors and filtering capacitors which should also show only very little long term drift and temperature drift. Polystyrene caps should be preferred, if possible providing 1% (< 5%) manufacturing tolerances. Additionally, it's a good idea to make some of the resistors trimmable. By this the influence of manufacturing tolerances can be furtherly reduced. In my simulation are these R5 and R11, for instance.

    Kai

  • Former Member
    0 Former Member in reply to Mirza Pasovic85
    Hello Mirza,

    First, I would like to thank you for your patience with this issue.

    I have dug into your simulations and have been able to recreate your results. My findings are as follows:

    When simulating your "NotchFilter_FilterDesignerTool.TSC" file, the tool claims to be using ideal op amps. However, upon opening the file I actually find OPA4187 parts. These are high performance parts that do not have models available online, which is odd. Furthermore, the macros are encrypted. The simulations wiith these parts run fine. However, when I run the simulation with ideal op amps I get the same result. So, I am not sure what is going on with these OPA4187 parts.

    As for why the LMV612 will not work, I cannot point to one specific reason. It could be one of many (biasing, stability, etc.). However, I would say this is not shocking as the specifications of a high performance part such as the OPA4187 or an ideal op amp are quite different from those of a LMV612.

    I am trying to get the assistance of those that were more involved in the creation of this tool and might have a better idea of what is going on. In the meantime, perhaps Kai's help will be of use to you. I think he has certainly brought up some valid points.

    Thanks for your patience in the meantime. I will get back to you with this issue.

    Regards,
    Daniel
  • Former Member
    0 Former Member in reply to kai klaas69
    Kai,

    Thanks for your help on this subject and your patience.

    I understand your frustration with this issue. It is frustrating for us too as we learn to work with this new tool. Your concerns are valid points and I will be discussing them with those that are more closely involved in the creation of this tool.

    I appreciate your support for Mirza and his specific application in the meatime. An update on this issue will be provided soon.

    Regards,
    Daniel
  • Hi Mirza,

    this simulation here works with the LMV612:

    mirza3.TSC

    I had to import the Spice model of LMV612 with the "New Macro Wizard", though.

    Kai

  • Former Member
    0 Former Member in reply to Mirza Pasovic85

    Hello Mirza,

    For the latest schematic that you generated with the webench online tool, the schematic entitled "NotchFilter_FilterDesignTool.TSC," I looked into the OPA4187 model that is used in the schematic and I am almost 100% sure that the tool placed ideal op amps into your TINA TI schematic.  They were probably labeled OPA4187 because that is the part that the tool picked for you.  As is turns out, the 1-channel variant of the OPA4187, the OPA187, does in fact have a model which produces a notch filter when simulated.

    I think the takeaway from this is that the online tool does generate accurate component values for your filter.  The limitation is that the tool will use ideal op amps.  When you export your design into TINA, the tool should inform you that ideal op amps are being used, as occurred in this case.

    My suggestion moving forward would be to use the filter design tool to come up with some initial component values, export the design into TINA, choose an op amp that fits the design specifications, and then model the design in TINA using the actual op amp's model.  When in doubt, the TINA simulations with the part models will provide you your most accurate results.

    If you need help selecting an op amp for this particular design or any future design, we can assist you in quickly finding a cost-effective solution provided you have an idea of the supply voltage, output voltage, channel count, and bandwidth needed.  One aspect of the new filter design tool that I was not aware of previously is that it will suggest what the minimum op amp bandwidth should be for your design (see example boxed in red in image below).  This can help you determine the minimum bandwidth required of the op amp.

    If you have any further questions, please let us know.  We will take note of cases such as this one to make suggestions for improvements to the tool going forward.

    Thanks for your patience,

    Daniel

  • Former Member
    0 Former Member in reply to Mirza Pasovic85
    Mirza,

    I wanted to let you know that the development team responsible for the tool has examined your case and has confirmed my suspicions. The tool generated a design with an OPA4187. When it exported the design into TINA, it could not find a corresponding model for the OPA4187. Consequently, it left the part named OPA4187 and modeled the design using ideal op amps. The result is a potentially confusing schematic, where the schematic op amp name and simulation model do not match.

    I have been told by the development team that they are working to fix this for the next release.

    Regards,
    Daniel
  • Hi Daniel,

    thank you for the clarification!

    Kai
  • Thank you.

    Now things a bit more clear.