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.

OPA380: PSPICE FOR TI

Part Number: OPA380
Other Parts Discussed in Thread: TINA-TI

Hi,

I am trying to run a simulation of the OPA380 in PSpice for TI. I downloaded the OPA380 spice model from the TI website (OPA380 PSpice Model (Rev. B)). The spice model also comes with a PSpice project so I opened that and tried to run an AC simulation. I have not modified anything in the project or files. I get the following errors: 

$
ERROR(ORPSIM-16363): Command invalid in subcircuit
----$
ERROR(ORPSIM-16499): Missing .ENDS in .SUBCKT

The .lib file has ".ENDS" at the end of the subcircuit. Not sure how to proceed.

I know that PSpice is working as I've been going through the tutorials without any problem.

Thanks for the help,

Scott Bates

  • Hello Scott,

    I confirmed the two errors appearing in the dialogue box for PSPICE for TI when running the stock AC simulation profile.  However, my simulation was able to run in a short amount of time and product a result.

    Just to coordinate my understanding of the issue, are you able to get a simulation output?  Could you share a screenshot of the output so I can confirm we are viewing the same behavior?  

    Please run the SCHEMATIC1-AC simulation profile again and attach a screen snip of the result if you are able.  Some PSPICE errors are not 'mission critical' to the simulation validity, especially if the errors may be incorrect (the file does have a .ENDS present).

    Best,

    Alec

  • Hi Alec,

    Thanks for looking in to this. It appears that the run has aborted.

  • Hi Scott,

    Thank you for sharing the screenshots; it looks like we are able to see the same thing.  I am digging into what exactly is going wrong with the model.  I did try creating a new simulation, which resulted in similar errors.  I would guess there is either:

    a) An issue linking the real, observed-to-be-correct model to the 'model' used by the simulation profiles

    b) An issue with how the OPA380 model is setup within PSPICE; using TINA-TI I was able to obtain correct results without issue. 

    If you need data and curves ASAP or can afford to use TINA-TI to characterize the device, I would recommend trying that while I narrow down the potential cause.

    Thank you for your patience Scott.

    Best,

    Alec

  • Hello Scott,

    After discussing the potential root causes of the issue with my team, our conclusion is to recommend the TINA-TI model for evaluating the OPA380.  The PSPICE model is fairly old and is not playing nice with PSPICE for TI.  I did find success replacing the final line in the OPA380 model file (.lib); however this only works on a fully licensed version of PSPICE, using the Capture simulation software.  If you would like to try this, you can replace '.ENDS' with '.ENDS OPA380', which should 'modernize' the model enough to run the simulation profiles.

    However, the general recommendation for you and other parties viewing this post is to use the TINA-TI model.  This path removes potential issues with partially modifying one file in an exported set of files, which PSPICE does occasionally show disdain for.

    Best,

    Alec