Part Number: INA151
Other Parts Discussed in Thread: LMV321A
Hi Team,
A customer reported an issue with the spice models of INA151 found in the E2E thread below.
Here are details of the issue.
I have found an anomaly in the INA151C file, well, it has 8 more lines than the INA151A file, which shouldn't be true for a gain change:
C35 in+a REF 250F IC=0
C34 in-a OUT 250F IC=0
EVCVS7 24 0 VS- 0 2
EVCVS6 25 0 VS+ 0 2
EVCVS5 26 0 VS+ 0 2
EVCVS4 27 0 VS- 0 2
EVCVS3 28 0 VS+ 0 2
EVCVS2 29 0 VS- 0 2
Both the OrCAD and SCHEMATICS (SCHEMATICS is the schematic capture tool inherited by OrCAD when it purchased Microsim, the creators of PSPICE. I prefer SCHEMATICS because all the files are text, but...) netlist in the order the components are encountered. So, if the schematic is edited, even just to change component value, the resultant netlist is different. Because of this, the INA151A and INA151C files, you sent me, are ordered differently, and I had to put them into the same order to reveal the 8 additional lines.
I tried to send these to you as text and in a zip file, but your server rejects them. If TI would like to see the files, with matching order (and extraneous spaces removed, proper capitalization, i.e. "k" vs "K", and etc.) I'll be happy to send them. I will need the runic incantation for sending them, so your server doesn't throw a (another) fit.
C35 & C34 appear to be convergence aids. The stock TI GWL model has at least three topology induced convergence problems, especially since PSPICE behavioral models change state in one step. This means that as the Newton-Raphson or Gear integration methods try to reduce step size to achieve convergence the stiffness *increases*, giving the algorithm a good view of its own tail. I have fixed all these convergence issues. Also, using a billion, and one, 1m resistors to connect the various pieces of the model, increases the matrix size considerably (and reduces it's sparseness, upsetting Nagel), stiffening an already stiff simulation.
Besides the changes I make to the stock GWL model, to improve convergence, the *four* models (INA151A,B,C,D) should be able to share a single base model, with wrappers that pass the gain of each version as a parameter to a single actual model. Much easier to maintain...
Regards,
Danilo