LT Spice problem

Jun 01, 2011 21 Replies

I'm trying to add the models of a couple of N-FETs I use to LTSpice. I'm getting a simulation-time error that I can't resolve. Any ideas? Thanks.



The error:



|M1: Only a level 9 B3SOI can have 6 nodes



It thinks I have six terminals on my transistor and only SOI models have that many? Looks like only three to me.


The circuit:



Version 4 SHEET 1 880 680 WIRE 144 -80 16 -80 WIRE 288 -80 144 -80 WIRE 16 -32 16 -80 WIRE 144 0 144 -80 WIRE 288 16 288 -80 WIRE 16 80 16 48 WIRE 288 112 288 80 WIRE 144 192 144 80 WIRE 240 192 144 192 WIRE 144 240 144 192 WIRE 288 288 288 208 WIRE 288 288 208 288 WIRE 288 320 288 288 WIRE 144 448 144 336 WIRE 224 448 144 448 WIRE 288 448 288 400 WIRE 288 448 224 448 WIRE 224 496 224 448 FLAG 224 496 0 FLAG 16 80 0 SYMBOL LED 272 16 R0 SYMATTR InstName D1 SYMBOL npn 208 240 M0 SYMATTR InstName Q1 SYMBOL res 272 304 R0 WINDOW 0 -7 51 Left 0 SYMATTR InstName R1 SYMATTR Value 100 SYMATTR SpiceLine tol=1 pwr=0.1 SYMBOL res 128 -16 R0 SYMATTR InstName R2 SYMATTR Value 10K SYMATTR SpiceLine tol=1 pwr=0.1 SYMBOL voltage 16 -48 R0 SYMATTR InstName V1 SYMBOL DiodesInc\ Models\\DMG1012T 240 112 R0 SYMATTR InstName M1 TEXT -18 520 Left 0 !.op


The model:


*SYM=POWMOSN .SUBCKT DMG1012T D=10 G=20 S=30
  • TERMINALS: D G S M1 1 20 3 3 NMOS L=0.6U W=47.66m RD 10 1 220m RS 30 3 80m CGS 20 3 57p EGD 12 0 20 1 1 VFB 14 0 0 FFB 20 1 VFB 1 CGD 13 14 27p R1 13 0 1.00 D1 12 13 DLIM DDG 15 14 DCGD R2 12 15 1.00 D2 15 0 DLIM DSD 3 10 DSUB .MODEL NMOS NMOS LEVEL=3 U0=500 VMAX=80k
  • ETA=0.1m VTO=0.99 TOX=16.8n NSUB=4.57e16 .MODEL DCGD D CJO=27p VJ=80m M=0.320 .MODEL DSUB D IS=36.1n N=1.50 RS=21.8m BV=20
  • CJO=14p VJ=0.800 M=0.420 .MODEL DLIM D IS=100U .ENDS

Another model with the same problem:



.SUBCKT irlml6402 1 2 3



**************************************
  • Model Generated by MODPEX *

*Copyright(c) Symmetry Design Systems*
  • All Rights Reserved *
  • UNPUBLISHED LICENSED SOFTWARE *
  • Contains Proprietary Information *
  • Which is The Property of *
  • SYMMETRY OR ITS LICENSORS *

*Commercial Use or Resale Restricted *
  • by Symmetry License Agreement *

**************************************
  • Model generated on Sep 25, 06
  • MODEL FORMAT: SPICE3
  • Symmetry POWER MOS Model (Version 1.0)
  • External Node Designations
  • Node 1 -> Drain
  • Node 2 -> Gate
  • Node 3 -> Source M1 9 7 8 8 MM L=100u W=100u .MODEL MM PMOS LEVEL=1 IS=1e-32

+VTO=-1 LAMBDA=0.0111358 KP=12.788
+CGSO=5.36099e-06 CGDO=5.54234e-08 RS 8 3 0.0246704 D1 1 3 MD .MODEL MD D IS=2.03395e-08 RS=0.0432758 N=1.5 BV=20
+IBV=0.00025 EG=1 XTI=4 TT=1e-07
+CJO=1.11974e-10 VJ=0.5 M=0.3 FC=0.5 RDS 3 1 5e+07 RD 9 1 0.0001 RG 2 7 29.2227 D2 5 4 MD1
  • Default values used in MD1:
  • RS=0 EG=1.11 XTI=3.0 TT=0
  • BV=infinite IBV=1mA .MODEL MD1 D IS=1e-32 N=50

+CJO=1.68841e-10 VJ=1.50027 M=0.3 FC=1e-08 D3 5 0 MD2
  • Default values used in MD2:
  • EG=1.11 XTI=3.0 TT=0 CJO=0
  • BV=infinite IBV=1mA .MODEL MD2 D IS=1e-10 N=0.4 RS=3e-06 RL 5 10 1 FI2 7 9 VFI2 -1 VFI2 4 0 0 EV16 10 0 9 7 1 CAP 11 10 9.68769e-10 FI1 7 9 VFI1 -1 VFI1 11 6 0 RCAP 6 10 1 D4 6 0 MD3
  • Default values used in MD3:
  • EG=1.11 XTI=3.0 TT=0 CJO=0
  • RS=0 BV=infinite IBV=1mA .MODEL MD3 D IS=1e-10 N=0.4 .ENDS irlml6402

I don't have your symbol so can't run the subcircuit. But when I use just your NMOS model it runs. You have to give V1 a voltage and the LED still needs a model as well.

[...]
Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

Model...you mean the one with the long skirt and fancy hat?

No, no, the one with the bikini :-)

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

schrieb im Newsbeitrag news: snipped-for-privacy@4ax.com...

Hello krw,

I don't have your Mosfet-symbol, but I have been able to get it working.

  1. The subcircuit definition was wrong. Below is the corrected line.

  • D=10 G=20 S=30 .SUBCKT DMG1012T 10 20 30

  1. Most of th models for power-Mosfets are subcircuits. Therefore you can use the normal symbol "nmos" or "pmos" with a very small modification.

Place a symbol "nmos" on the schematic. Ctrl-right-mouse-click on the placed symbol. A dialog will pop-up. Change Prefix:MN to Prefix:X OK.

The attached example has bias point data flags on the nets to better show the operating point.

Best regards, Helmut

begin 666 DMG1012T.lib M*E-933U03U=-3U-.#0HJ($0],3 @1STR,"!3/3,P#0HN4U5"0TM4($1-1S$P M,3)4(" @,3 @,C @,S -"BH@(" @(%1%4DU)3D%,4SH@($0@($

It seemed to do something here at home. I didn't have time to look at it today. Maybe tomorrow they'll leave me alone so I can get back after it.

Just use the model alone. Package parasitics don't matter unless the LED has to also send out GHz pulses ;-)

You can enter a ramp for the voltage source, then you can always see where it loses steam.

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

Thanks, Helmut. I still have something messed up. It can't find the model. I should have time to work on it tomorrow.

that

Check out my website for simple ways to include a subcircuit of a part for which you have no symbol.

...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

that

Well it is in a GHz field, but I don't think I care about buzz.

It's not getting that far. I must have something messed up with the installation. It can't find anything now.

that

Oh-oh, you crashed LTSpice? I though that wasn't possible. Might have to re-install, it is fairly painless. I have to do that once in a while because the LTSpice updater doesn't work.

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

formatting link

Cheers! Rich

that

Not crashed, just edited or changed something I shouldn't have, perhaps.

Really? It wanted to update my home copy but I didn't let it.

that

Not surprising. When it comes to software you have a black thumb.

I can't remember when I first installed LTspice. The Updater always works. ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

Thanks.

that

Unless you literally mucked with files in the LTSpice install directory it's nearly impossible to break.

It always freezes up for me but it might be related to security settings.

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

Thanks.

that

Probably related to security settings. But it doesn't matter, this software is literally bug-free (unlike others ...) and I only need to update if a new must-have feature appear. Then it's rather quick and easy. Uninstall, re-install .. get coffee .. hop back into seat.

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

I'm

Thanks.

have that

I don't run a firewall... that's what a good router is for.

Go to

formatting link
and run Shields Up and see what you get. I get a 100% Stealth Rating. ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

I'm

Thanks.

have that

Thanks, but I don't want to re-install half of my computer stuff here. I get no viruses or any of that and if this is why the LTSpice updater doesn't work it's ok. As I said, install by hand is painless. It is so fast that I don't even have time to snatch a cookie out of the fridge (although I'd like to).

Regards, Joerg http://www.analogconsultants.com/ "gmail" domain blocked because of excessive spam. Use another domain or send PM.

[snip]

Did you run Shields Up? ...Jim Thompson

| James E.Thompson, CTO | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | Phoenix, Arizona 85048 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required