.SUBCKT LM339 1 2 3 4 5 * F1 9 3 V1 1 IEE 3 7 DC 100.0E-6 VI1 21 1 DC .75 VI2 22 2 DC .75 Q1 9 21 7 QIN Q2 8 22 7 QIN Q3 9 8 4 QMO Q4 8 8 4 QMI .MODEL QIN PNP(IS=800.0E-18 BF=2.000E3) .MODEL QMI NPN(IS=800.0E-18 BF=1002) .MODEL QMO NPN(IS=800.0E-18 BF=1000 CJC=1E-15 TR=807.4E-9) E1 10 4 9 4 1 V1 10 11 DC 0 Q5 5 11 4 QOC .MODEL QOC NPN(IS=800.0E-18 BF=20.29E3 CJC=1E-15 TF=942.6E-12 TR=543.8E-9) DP 4 3 DX RP 3 4 46.3E3 .MODEL DX D(IS=800.0E-18) * .ENDS .SUBCKT IRLZ44N 1 2 3 M1 9 7 8 8 MM L=100u W=100u .MODEL MM NMOS LEVEL=1 IS=1e-32 +VTO=2 LAMBDA=0 KP=68 +CGSO=1.6e-05 CGDO=3.0e-08 RS 8 3 0.005 RDS 3 1 2e+06 RD 9 1 0.005 RG 2 7 10 D1 3 1 MD .MODEL MD D IS=4.4574e-09 RS=0.007 N=1.4 BV=50 +IBV=0.00025 EG=1.14011 XTI=3.0 TT=0 +CJO=9e-10 VJ=4.95 M=0.76 FC=0.5 .ENDS .SUBCKT IRFZ44N 1 2 3 M1 9 7 8 8 MM L=100u W=100u .MODEL MM NMOS LEVEL=1 IS=1e-32 +VTO=4.0 LAMBDA=0 KP=70 +CGSO=1.3e-05 CGDO=3.0e-08 RS 8 3 0.005 RDS 3 1 2e+06 RD 9 1 0.005 RG 2 7 10 D1 3 1 MD .MODEL MD D IS=1.3e-13 RS=0.001 N=0.91 BV=55 +IBV=0.00025 EG=1.2 XTI=2.20 TT=1e-07 +CJO=4.5e-10 VJ=4.47 M=0.71 FC=0.5 .ENDS .SUBCKT IRF4905 1 2 3 M1 9 7 8 8 MM L=100u W=100u .MODEL MM PMOS LEVEL=1 IS=1e-32 +VTO=-3.53713 LAMBDA=0.00549383 KP=23.3701 +CGSO=2.84439e-05 CGDO=1e-11 RS 8 3 0.005 RDS 3 1 2e+06 RD 9 1 0.005 RG 2 7 10 D1 1 3 MD .MODEL MD D IS=1.29014e-08 RS=0.00297795 N=1.46717 BV=55 +IBV=0.00025 EG=1.2 XTI=4 TT=0 +CJO=3.56968e-09 VJ=1.17553 M=0.500933 FC=0.5 .ENDS .SUBCKT SI2305 4 1 2 M1 3 1 2 2 PMOS W=0.36 L=0.5u R1 4 3 190E-4 CGS 1 2 640E-12 DBD 4 2 DBD ************************************************************************** .MODEL PMOS PMOS ( LEVEL = 3 TOX = 1.7E-8 + RS = 100E-4 RD = 0 NSUB = 0.38E16 + kp = 2.5E-5 UO = 400 + VMAX = 0 XJ = 0.5E-6 KAPPA = 3E-3 + ETA = 1E-4 TPG = -1 + IS = 0 LD = 0 + CGSO = 0 CGDO = 0 CGBO = 0 + NFS = 0.8E12 DELTA = 0.1) ************************************************************************* .MODEL DBD D (CJO=380E-12 VJ=0.38 M=0.34 +RS=0.1 FC=0.5 IS=1E-12 TT=10E-8 N=1 BV=30) .ENDS .SUBCKT SI2302 4 1 2 M1 3 1 2 2 NMOS W=0.36 L=0.25u R1 4 3 9E-3 CGS 1 2 200E-12 DBD 2 4 DBD ************************************************************** .MODEL NMOS NMOS (LEVEL = 3 TOX = 3E-8 + RS = 22E-3 RD = 0 NSUB = 1.95E17 + KP = 2.3E-5 UO = 650 + VMAX = 0 XJ = 5E-7 KAPPA = 5E-2 + ETA = 1E-4 TPG = 1 + IS = 0 LD = 0 + CGSO = 0 CGDO = 0 CGBO = 0 + NFS = 0.8E12 DELTA = 0.1) *************************************************************** .MODEL DBD D (CJO=90E-12 VJ=0.38 M=0.20 +RS=0.1 FC=0.5 IS=1E-12 TT=5E-8 N=1 BV=20.3) .ENDS .SUBCKT CD4007P 1 2 3 RDS 3 1 1e+07 M1 4 5 6 6 PCH L=10U W=90U PD=90U PS=90U RD 1 4 0.01 RG 2 5 100 RS 3 6 0.01 .MODEL PCH PMOS (LEVEL=7 CAPMOD=2 MOBMOD=1 TOX=5E-8 + XJ=2.26E-7 NCH=1E15 NSUB=8E14 XT=8.66E-8 VTH0=-2 U0= 400 WINT=1.0E-6 LINT=1E-6 + NGATE=5E20 RSH=1347 JS=3.51E-8 JSW=3.51E-8 CJ=5.28E-8 MJ=0.5 PB=0.94 + CJSW=1.19E-10 MJSW=0.5 PBSW=0.94 PCLM=5 CGSO=4.5E-10 CGDO=4.5E-10 + CGBO=5.75E-10) .ENDS .SUBCKT CD4007N 1 2 3 RDS 3 1 1e+07 M1 4 5 6 6 NCH L=10U W=25U PD=25U PS=25U RD 1 4 0.01 RG 2 5 100 RS 3 6 0.01 .MODEL NCH NMOS (LEVEL=7 CAPMOD=2 MOBMOD=1 TOX=4E-8 XJ=2.9E-7 + NCH=4E15 NSUB=5.33E15 XT=8.66E-8 VTH0=1.5 U0= 1300 WINT=2.0E-7 LINT=1E-7 + NGATE=5E20 RSH=300 JS=3.23E-8 JSW=3.23E-8 CJ=6.8E-8 MJ=0.5 PB=0.95 + CJSW=1.26E-10 MJSW=0.5 PBSW=0.95 PCLM=5 CGSO=3.4E-10 CGDO=3.4E-10 CGBO=5.75E-10) .ENDS *** From file C:\MC12\library\DIODE.LIB .MODEL 15SQ045 D (BV=45 CJO=1.7E-9 EG=0.7 IKF=3.42 IS=4.3E-6 ISR=2.3E-6 + M=0.55 N=1.017 RS=6.2E-3 TT=10E-9 VJ=0435 XTI=2) .MODEL 1N5817 D (BV=20 CJO=222.598P EG=690M IBV=100P IS=6.321U M=1.367 N=1.096 + RS=82.062M VJ=11.74 XTI=2)