start learning LTspice, and facing error

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Hello,

I am now start learning LTSPICE
and I got a .SUBCKT data of 2sc3601 from another thread.

there is no problem for usual .model
but using this .subckt I face the problem as in the captured screen.

What is the exact problem?
or the .subckt has problem?

Thanks a lot. :)

attachment.php
 

Attachments

  • sim.JPG
    sim.JPG
    102.5 KB · Views: 276
You can't use the symbol "npn" with a subckt. You can add a npn symbol to the same directory/folder where you schematic (.asc) file(s) are located. When you go to choose a symbol, click on the "Top Directory" drop down box and choose the symbol that you've added.

Attached is a .asy file you can use. Remove the ".txt" extension at the end of the file name.
 

Attachments

  • xnpn2.asy.txt
    554 bytes · Views: 36
i post the .subckt here, maybe there is error

.subckt Q2SC3601 C B E
+ params:
+ IC_VBE=1.10250E-36
+ IC_VCE=1.10250E-36
+ STATE=1
+ TEMP=0
+ AREA=1.0
+ STATE_FACTOR=0
+ IS=20.9E-15
+ BF=95
+ NF=1
+ VAF=80
+ IKF=0.2
+ ISE=0.0
+ NE=1.5
+ BR=0.2138
+ NR=1
+ VAR=20
+ IKR=0.5
+ ISC=0
+ NC=1.0
+ RB=4.0
+ RBM=4.0
+ RE=0.4
+ RC=3
+ CJE=5.84E-12
+ VJE=0.5
+ MJE=0.3083
+ TF=340E-12
+ XTF=1
+ VTF=10.0
+ ITF=0.2
+ PTF=0
+ CJC=5.32E-12
+ VJC=0.5
+ MJC=0.3271
+ XCJC=0.5
+ TR=10E-9
+ CJS=0
+ VJS=1.3
+ MJS=0.5
+ XTB=2.3
+ EG=1.11
+ XTI=3.0
+ KF=0
+ AF=1.0
+ FC=0.5

.END
 
The .MODEL statement is missing and .END should be .ENDS
I've commented out the 'unknown parameters', that which LTspice does not use and dropped the 'Q' so the subckt name and the file name will be the same. You can add the 'Q' back if you like.
Code:
.SUBCKT 2SC3601 1 2 3
Q1 1 2 3 2SC3601
.MODEL 2SC3601 NPN (
*+ IC_VBE=1.10250E-36
*+ IC_VCE=1.10250E-36
*+ STATE=1
*+ TEMP=0
*+ AREA=1.0
*+ STATE_FACTOR=0
+ IS=20.9E-15
+ BF=95
+ NF=1
+ VAF=80
+ IKF=0.2
+ ISE=0.0
+ NE=1.5
+ BR=0.2138
+ NR=1
+ VAR=20
+ IKR=0.5
+ ISC=0
+ NC=1.0
+ RB=4.0
+ RBM=4.0
+ RE=0.4
+ RC=3
+ CJE=5.84E-12
+ VJE=0.5
+ MJE=0.3083
+ TF=340E-12
+ XTF=1
+ VTF=10.0
+ ITF=0.2
+ PTF=0
+ CJC=5.32E-12
+ VJC=0.5
+ MJC=0.3271
+ XCJC=0.5
+ TR=10E-9
+ CJS=0
+ VJS=1.3
+ MJS=0.5
+ XTB=2.3
+ EG=1.11
+ XTI=3.0
+ KF=0
+ AF=1.0
+ FC=0.5)

.ENDS
With this model below you can use the default npn symbol as I see no need to use a subckt with it. That is unless you would want to use a drop-down menu. That would be a diiferent topic for a different time. ;)
Code:
.MODEL 2SC3601 NPN (
+ IS=20.9E-15
+ BF=95
+ NF=1
+ VAF=80
+ IKF=0.2
+ ISE=0.0
+ NE=1.5
+ BR=0.2138
+ NR=1
+ VAR=20
+ IKR=0.5
+ ISC=0
+ NC=1.0
+ RB=4.0
+ RBM=4.0
+ RE=0.4
+ RC=3
+ CJE=5.84E-12
+ VJE=0.5
+ MJE=0.3083
+ TF=340E-12
+ XTF=1
+ VTF=10.0
+ ITF=0.2
+ PTF=0
+ CJC=5.32E-12
+ VJC=0.5
+ MJC=0.3271
+ XCJC=0.5
+ TR=10E-9
+ CJS=0
+ VJS=1.3
+ MJS=0.5
+ XTB=2.3
+ EG=1.11
+ XTI=3.0
+ KF=0
+ AF=1.0
+ FC=0.5)
 
Last edited:
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.