LTspice Initial Conditions Erro

Thread Starter

dfink07

Joined Jun 27, 2017
5
Hi,

I'm trying to use the LM5160 spice file I downloaded directly from the TI website, but I keep getting an error that says "Trouble parsing initial condition value for V(SS)", where SS is one of the inputs to the LM5160. I tried adding initial conditions to this node, but it didn't fix anything. How do I solve this error? Attached are my schematic and the spice model.
 

Attachments

crutschow

Joined Mar 14, 2008
38,325
Then it would appear there's a problem with the model.
What is SS connected to?
I don't have the symbol for the LM5160 so can't see the connection from your .asc file.
 

Alec_t

Joined Sep 17, 2013
15,104
The model is a Pspice one, but LTspice throws a lot of errors when running it. I tried editing it, but failed to resolve all the issues.
 

eetech00

Joined Jun 8, 2013
4,704
Hi

I've attached a zip file containing a fixed version of the LM5160.LIB file.
A fixed test circuit and a symbol file is also included.

Copy the file to a folder, unzip the file, then open the .asc file with LTspice, then click "run".

Graphics of the circuit and output waveform is also attached.

have fun...
 

Attachments

Last edited:

eetech00

Joined Jun 8, 2013
4,704
So what was wrong with the original file?
While LTspice is compatible with PSpice format, the model wasn't written to be completely compatible with other spice programs (including LTspice). As a result, numerous errors regarding "curly brackets" occurred and prevented different parts of the model code from executing.
This is not unusual with models from different vendors and I've run into it numerous times before.
The errors are too numerous to go over. You can perform a file comparison between the old an new files and review the differences.
I will mention though that I modified the file to be compatible with LTspice by making numerous E and G device substitutions for B devices.

Regarding the schematic, I changed the capacitors for capacitors with parasitics, and corrected the coupling, inductances, and DCR of the transformer windings.


eT
 
Last edited:
Top