¿ªÔÆÌåÓý

Re: Third party model usage - please help


 

--- In LTspice@..., "Helmut Sennewald"
<helmutsennewald@y...> wrote:
--- In LTspice@..., "kaplounovski" <kaplounovski@y...>
wrote:
--- In LTspice@..., Jim Stockton <mstech@p...> wrote:
kaplounovski wrote:

Hello,
I'm trying to use the National LMC6484A opamp model in
LTSpice.
I've downloaded their model and placed it
into ..&#92;LTC&#92;SWCADIII&#92;lib&#92;sub directory under the name
LMC6484A.sub.
Then I created a simple test schematic where I used opamp2
symbol
with
Prefix = X, Spice Model = LMC6484A.sub, Value = LMC6484A.sub
properties.
I've also added the .inc LMC6484A.sub directive to the
netlist.

Running the simulation produces the following error message:
Error: Unknown subckt called in: xu1 ...... lmc6484a.sub lmc
6484a.sub

What am I doing wrong?

Thanks,
Eugene.


To unsubscribe from this group, send an email to:
LTspice-unsubscribe@...



Your use of Yahoo! Groups is subject to


Try leaving model blank and using value = lmc6484a without
the .sub
Good Luck
Jim Stockton
Thank you, Jim.
I tried that, with the same outcome. This is how it was done in
the
old DOS-based PSpice, it worked there. I'm almost sure it's
something
really simple, like missing path or something, but what? Could it
be
that the op-amp's subcircuit in turn includes some models, namely
MOSFET, that LTSpice could not find?
Regards,
Eugene

Hello Eugene,
this is one of the two chances to include your moddel.
You can see the other one in the thread about the OPA336.
Sorry for my short explanations. I must immediately leave my home
to
go work.

Put the symbol file into the LTSPICE lib&#92;sym&#92;opamp directory.
Put the model file National.lib into LTSPICE lib&#92;sub directory.

Best Regards
Helmut


Test circuit file

Version 4
SHEET 1 1372 1316
WIRE 320 320 320 352
WIRE 320 256 320 224
WIRE -16 368 -16 304
WIRE -16 96 80 96
WIRE 80 304 -16 304
WIRE 160 304 240 304
WIRE 160 96 240 96
WIRE 288 272 240 272
WIRE 240 272 240 96
WIRE 464 96 512 96
WIRE 512 96 512 288
WIRE 512 288 352 288
WIRE -16 480 -16 448
WIRE 240 480 240 512
WIRE 384 480 384 512
WIRE 240 592 240 624
WIRE 384 592 384 624
WIRE 512 288 544 288
WIRE 240 96 384 96
WIRE 240 304 288 304
WIRE 320 976 320 1008
WIRE 320 912 320 880
WIRE -16 752 96 752
WIRE 80 960 -16 960
WIRE 160 960 240 960
WIRE 160 752 240 752
WIRE 288 928 240 928
WIRE 240 928 240 752
WIRE 464 752 512 752
WIRE 512 752 512 944
WIRE 512 944 352 944
WIRE 512 944 544 944
WIRE 240 752 384 752
WIRE 240 960 288 960
WIRE -16 1024 -16 960
WIRE -16 1136 -16 1104
FLAG 320 224 Vcc
FLAG 240 480 Vcc
FLAG 384 480 Vss
FLAG 320 352 Vss
FLAG -16 480 0
FLAG 240 624 0
FLAG 384 624 0
FLAG 544 288 out
FLAG 240 96 in-
FLAG 240 304 in+
FLAG -16 96 0
FLAG 320 880 Vcc
FLAG 320 1008 Vss
FLAG 544 944 out1
FLAG 240 752 in1-
FLAG 240 960 in1+
FLAG -16 752 0
FLAG -16 304 in
FLAG -16 1136 0
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;voltage 240 496 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;voltage 384 496 R0
SYMATTR InstName V2
SYMATTR Value -5
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;voltage -16 352 R0
WINDOW 123 24 132 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value2 AC 1
SYMATTR InstName V3
SYMATTR Value 1
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;res 368 112 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R1
SYMATTR Value 1MEG
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;res 64 320 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R2
SYMATTR Value 1MEG
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;res 64 112 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R3
SYMATTR Value 1MEG
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;res 368 768 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R4
SYMATTR Value 1MEG
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;res 64 976 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R5
SYMATTR Value 1
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;cap 96 768 R270
WINDOW 0 32 32 VTop 0
WINDOW 3 0 32 VBottom 0
SYMATTR InstName C1
SYMATTR Value 1
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;voltage -16 1008 R0
WINDOW 123 24 132 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value2 AC 1
SYMATTR InstName V4
SYMATTR Value 0
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;Opamps&#92;LMC6484A 320 224 R0
SYMATTR InstName U1
SYMBOL F:&#92;PROGRAMME&#92;LTC&#92;SWCADIII&#92;lib&#92;sym&#92;Opamps&#92;LMC6484A 320 880 R0
SYMATTR InstName U2
TEXT -432 40 Left 0 ;.op
TEXT -440 -160 Left 0 !.AC DEC 100 1 100MEG
TEXT -432 -40 Left 0 ;.nodeset V(out)=2 V(in-)=1 V(in+)=1
TEXT -432 -8 Left 0 ;.nodeset V(out1)=0 V(in1-)=0 V(in1+)=0
TEXT -432 -88 Left 0 ;.OPTIONS gmin=1e-10 noopiter=1


Symbol file LMC6484AA.asy

Version 4
SymbolType CELL
LINE Normal -32 32 32 64
LINE Normal -32 96 32 64
LINE Normal -32 32 -32 96
LINE Normal -28 48 -20 48
LINE Normal -28 80 -20 80
LINE Normal -24 84 -24 76
LINE Normal 0 32 0 48
LINE Normal 0 96 0 80
LINE Normal 4 44 12 44
LINE Normal 8 40 8 48
LINE Normal 4 84 12 84
WINDOW 0 16 32 Left 0
WINDOW 3 16 96 Left 0
SYMATTR Value LMC6484A/NS
SYMATTR Prefix X
SYMATTR SpiceModel National.lib
SYMATTR Value2 LMC6484A/NS
SYMATTR Description CMOS Operational Amplifier
PIN -32 80 NONE 0
PINATTR PinName In+
PINATTR SpiceOrder 1
PIN -32 48 NONE 0
PINATTR PinName In-
PINATTR SpiceOrder 2
PIN 0 32 NONE 0
PINATTR PinName V+
PINATTR SpiceOrder 3
PIN 0 96 NONE 0
PINATTR PinName V-
PINATTR SpiceOrder 4
PIN 32 64 NONE 0
PINATTR PinName OUT
PINATTR SpiceOrder 5




File national.lib

* National Semiconductor, Inc.

*/////////////////////////////////////////////////////////////////////
* Legal Notice: This material is intended for free software support.
* The file may be copied, and distributed; however, reselling the
* material is illegal

*////////////////////////////////////////////////////////////////////
* For ordering or technical information on these models, contact:
* National Semiconductor's Customer Response Center
* 7:00 A.M.--7:00 P.M. U.S. Central Time
* (800) 272-9959
* For Applications support, contact the Internet address:
* amps-apps@g...

*//////////////////////////////////////////////////////////
*LMC6484A CMOS Quad OP-AMP MACRO-MODEL
*//////////////////////////////////////////////////////////
*
* connections: non-inverting input
* | inverting input
* | | positive power supply
* | | | negative power supply
* | | | | output
* | | | | |
* | | | | |
.SUBCKT LMC6484A/NS 1 2 99 50 40
* CAUTION: SET .OPTIONS GMIN=1E-16 TO CORRECTLY MODEL INPUT BIAS
CURRENT.
*
*Features:
*Operates from single or dual supplies
*Rail-to-rail input and output swing
*Ultra low input current = 10fA
*Slew rate = 1.2V/uS
*
*NOTE: Model is for single device only and simulated
* supply current is 1/4 of total device current.
* Noise is not modeled.
* Asymmetrical gain is not modeled.
*
**INPUT STAGE****
*
I1 99 4 17U
M1 5 2 4 99 MOSFET
R3 5 50 5.651K
M2 6 7 4 99 MOSFET
R4 6 50 5.651K
*Fp2=5.9 MHz
C4 5 6 2.3868P
G0 98 9 6 5 4.4165E-2
R0 98 9 1K
DP1 1 99 DA
DP2 50 1 DB
DP3 2 99 DB
DP4 50 2 DA
*For accurate Ib , set GMIN<=1E-16 on .OPTIONS line.
*
*COMMON MODE EFFECT*
*
I2 99 50 420.5U
*^Quiescent current
EOS 7 1 POLY(1) 16 49 .75E-3 1
*Offset voltage..........^
R8 99 49 40K
R9 49 50 40K
*
POLE STAGE
*
*Fp=13.3 MHz
G3 98 15 9 49 1E-3
R12 98 15 1K
C5 98 15 11.967P
*
**POLE/ZERO STAGE***
*
*Fp=600 KHz, Fz= 1.4MHz
G5 98 18 15 49 1E-3
R14 98 18 1K
R15 98 19 750
C6 19 18 151.58P
*
****COMMON-MODE ZERO STAGE****
*
*Fpcm=20 KHz
G4 98 16 POLY(2) 1 49 2 49 0 2.812E-8 2.812E-8
L2 98 17 7.958M
R13 17 16 1K
*
****SECOND STAGE****
*
EH 99 98 99 49 1
G1 98 29 18 49 5.6667E-6
R5 98 29 100.37MEG
V2 99 8 1.56
D1 29 8 DX
D2 10 29 DX
V3 10 50 1.56
*
****OUTPUT STAGE****
*
F6 99 50 VA7 1
*^Dynamic supply current
F5 99 35 VA8 1
D3 36 35 DX
VA7 99 36 0
D4 35 99 DX
E1 99 37 99 49 1
VA8 37 38 0
G6 38 40 49 29 16.667E-3
R16 38 40 2.3886K
V4 30 40 .77
D5 30 99 DX
V5 40 31 .77
D6 50 31 DX
*Fp1=2.343 Hz
C3 29 39 17P
R6 39 40 1K
*
MODELS USED****
*
.MODEL DA D(IS=2E-14)
.MODEL DB D(IS=1E-14)
.MODEL DX D(IS=1E-14)
.MODEL MOSFET PMOS(VTO=0 KP=1.842E-3)
.ENDS
*$
Thank you Helmut!
It works now, although when I used your model, I got the "Too few
nodes: current" message. I did not use your example file because of
the different file structure (paths) on my computer. All worked well
though with the model I downloaded from the National site yesterday.
Now I guess I know where my error was - I tried to use a ready symbol
from the library whereas I should have created my own for each 'new'
part I want to use.
Best regards,
Eugene

Join [email protected] to automatically receive all group messages.