有uc3842 spice model 奉献!
小弟在ni的主页上搞到一个uc3842的model,但不知如何导入multisim10,提供给大家并请大家告知小弟如何使用.
全部回复(3)
正序查看
倒序查看
现在还没有回复呢,说说你的想法
model如下:
.subckt UC3842 comp VFB isens RAC 0 out vcc ref1
.ic v(RAC)=0
azener1 0 vcc zener1
vlow vlow1 0 dc 10
vhigh vhigh1 0 dc 16
xuvlol vlow1 vcc uvsa1 op1
xuvloh vcc vhigh1 uvra1 op1
aadc1 [uvsa1] [uvs1] ADC1
aadc2 [uvra1] [uvr1] ADC1
xuvff uvs1 uvr1 uvq1 uvqb1 srff1
adacref [uvqb1] [uvqb2] DAC1
ruvqb uvqb2 0 1meg
eref REFV 0 uvqb2 0 1
rref REFV 0 1
aadcref [REFV] [ref11] ADC2
gcur vcc 0 REFV 0 0.0022
vref ref1 0 dc 5
idc em1 0 5.1814m
didc 0 em1 dmod
eosl1 osh1 0 ref1 0 0.56
eosh1 osl1 0 ref1 0 0.24
xosl1 RAC osh1 osr1 op1
xosh1 osl1 RAC oss1 op1
aosadc1 [osr1] [osr2] ADC1
aossdc2 [oss1] [oss2] ADC1
xosff1 oss2 osr2 osq1 osqb1 srff1
aosdac1 [osqb1] [gdc2] DAC1
egdc1 gdc1 0 gdc2 0 1
src1 RAC em1 gdc1 0 sw1
ainv1 uvqb1 uvqb10 inv1
aref12 ref11 ref12 inv1
aor1 [ref12 osqb1] logout1 or1
Vvref 3 0 dc 5
rR2 2 0 1e+006
rR1 3 2 1e+006
xU1 2 VFB comp 7 6 OP4
vV4 0 6 dc 15
vV3 7 0 dc 15
d1 comp 131 dmod
d2 131 132 dmod
r132 132 133 20k
rR4 133 0 10k
azener2 0 133 zener2
xcmod1 isens 133 cmod1 op1
rcmod1 cmod1 0 1meg
acmodadc [cmod1] [cout1] ADC1
xoutsrff osqb1 cout1 out1q1 out1qb1 srff1
aoutor1 [ref12 out1qb1] out1qb2 or1
aoutor2 [out1qb2 logout1] out1 or1
aoutinv1 out1 out2 inv1
aoutdac [out2] [out] DACOUT
rout out 0 1k
.model zener2 zener(v_breakdown=1.0)
.model dmod d(n=1.05)
.SUBCKT op4 3 2 6 7 4
* 3 2 6 7 4
* +in -in out Vcc Vee
Rc1 7 11 5.305e+003
Rc2 7 12 5.305e+003
Re1 13 15 4.594e+003
Re2 14 15 4.594e+003
RE 15 0 1.319e+007
IEE 15 4 1.516e-005
Rp 7 4 1.816e+004
VC 7 16 1.080e+001
VE 17 4 1.230e+001
D4 17 6 dmod34
D3 6 16 dmod34
R01 18 6 3.213e+001
R02 18 0 4.287e+001
RC 19 0 1.369e-004
C1 11 12 9.741e-012
Ce 15 0 1.000e-012
C2 18 20 3.000e-011
R2 0 20 1.000e+005
D1 18 19 dmod12
D2 19 18 dmod12
Ga 20 0 11 12 1.885e-004
Gcm 0 20 15 0 5.961e-009
Gb 18 0 20 0 3.913e+001
Gc 0 19 18 0 7.304e+003
.MODEL dmod12 D(IS=1.877e-012)
.MODEL dmod34 D(IS=8.000e-016)
Q1 11 2 13 QMOD1
Q2 12 3 14 QMOD2
.MODEL QMOD1 NPN(IS=8.0e-16 BF=8.333e+001 VAF=200)
.MODEL QMOD2 NPN(IS=8.0e-16 BF=1.071e+002 VAF=200)
.ends
.model sw1 sw(vt=4 vh=0.5 ron=1e-6 roff=1e12)
.model or1 d_or()
.model inv1 d_inverter()
*.model inv2 d_inverter(rise_delay=50n fall_delay=50n)
.model zener1 zener(v_breakdown=34)
.model dmod d(n=0.001)
.model ADC1 adc_bridge(in_low=0.3 in_high=3)
.model ADC2 adc_bridge(in_low=3 in_high=4)
.model DAC1 dac_bridge(out_low=0 out_high=5)
.model DACOUT dac_bridge(out_low=0.1 out_high=13.5)
.subckt srff1 1 2 3 4
as1 1 11 inv1
ar1 2 21 inv1
anand1 [11 4] 3 nand1
anand2 [21 3] 4 nand1
.model nand1 d_nand()
.model inv1 d_inverter()
.ends srff1
.SUBCKT OP1 1 2 3
* 1->in+, 2->in-, 3->out
Vos 4 1 DC 0V
Ib1 4 0 0A
Ib2 2 0 0A
G1 0 5 4 2 0.1
G2 0 6 5 0 100
G3 0 31 6 0 100
RR 31 0 1
alimit 31 3 limit1
.model limit1 limit(out_lower_limit=-5 out_upper_limit=5)
Ri 4 2 1e+010ohm
R1 5 0 1000ohm
R2 6 0 1ohm
R3 3 0 1ohm
C1 5 0 1.59155e-010
C2 6 0 1.59155e-033
.ENDS
.ends
.subckt UC3842 comp VFB isens RAC 0 out vcc ref1
.ic v(RAC)=0
azener1 0 vcc zener1
vlow vlow1 0 dc 10
vhigh vhigh1 0 dc 16
xuvlol vlow1 vcc uvsa1 op1
xuvloh vcc vhigh1 uvra1 op1
aadc1 [uvsa1] [uvs1] ADC1
aadc2 [uvra1] [uvr1] ADC1
xuvff uvs1 uvr1 uvq1 uvqb1 srff1
adacref [uvqb1] [uvqb2] DAC1
ruvqb uvqb2 0 1meg
eref REFV 0 uvqb2 0 1
rref REFV 0 1
aadcref [REFV] [ref11] ADC2
gcur vcc 0 REFV 0 0.0022
vref ref1 0 dc 5
idc em1 0 5.1814m
didc 0 em1 dmod
eosl1 osh1 0 ref1 0 0.56
eosh1 osl1 0 ref1 0 0.24
xosl1 RAC osh1 osr1 op1
xosh1 osl1 RAC oss1 op1
aosadc1 [osr1] [osr2] ADC1
aossdc2 [oss1] [oss2] ADC1
xosff1 oss2 osr2 osq1 osqb1 srff1
aosdac1 [osqb1] [gdc2] DAC1
egdc1 gdc1 0 gdc2 0 1
src1 RAC em1 gdc1 0 sw1
ainv1 uvqb1 uvqb10 inv1
aref12 ref11 ref12 inv1
aor1 [ref12 osqb1] logout1 or1
Vvref 3 0 dc 5
rR2 2 0 1e+006
rR1 3 2 1e+006
xU1 2 VFB comp 7 6 OP4
vV4 0 6 dc 15
vV3 7 0 dc 15
d1 comp 131 dmod
d2 131 132 dmod
r132 132 133 20k
rR4 133 0 10k
azener2 0 133 zener2
xcmod1 isens 133 cmod1 op1
rcmod1 cmod1 0 1meg
acmodadc [cmod1] [cout1] ADC1
xoutsrff osqb1 cout1 out1q1 out1qb1 srff1
aoutor1 [ref12 out1qb1] out1qb2 or1
aoutor2 [out1qb2 logout1] out1 or1
aoutinv1 out1 out2 inv1
aoutdac [out2] [out] DACOUT
rout out 0 1k
.model zener2 zener(v_breakdown=1.0)
.model dmod d(n=1.05)
.SUBCKT op4 3 2 6 7 4
* 3 2 6 7 4
* +in -in out Vcc Vee
Rc1 7 11 5.305e+003
Rc2 7 12 5.305e+003
Re1 13 15 4.594e+003
Re2 14 15 4.594e+003
RE 15 0 1.319e+007
IEE 15 4 1.516e-005
Rp 7 4 1.816e+004
VC 7 16 1.080e+001
VE 17 4 1.230e+001
D4 17 6 dmod34
D3 6 16 dmod34
R01 18 6 3.213e+001
R02 18 0 4.287e+001
RC 19 0 1.369e-004
C1 11 12 9.741e-012
Ce 15 0 1.000e-012
C2 18 20 3.000e-011
R2 0 20 1.000e+005
D1 18 19 dmod12
D2 19 18 dmod12
Ga 20 0 11 12 1.885e-004
Gcm 0 20 15 0 5.961e-009
Gb 18 0 20 0 3.913e+001
Gc 0 19 18 0 7.304e+003
.MODEL dmod12 D(IS=1.877e-012)
.MODEL dmod34 D(IS=8.000e-016)
Q1 11 2 13 QMOD1
Q2 12 3 14 QMOD2
.MODEL QMOD1 NPN(IS=8.0e-16 BF=8.333e+001 VAF=200)
.MODEL QMOD2 NPN(IS=8.0e-16 BF=1.071e+002 VAF=200)
.ends
.model sw1 sw(vt=4 vh=0.5 ron=1e-6 roff=1e12)
.model or1 d_or()
.model inv1 d_inverter()
*.model inv2 d_inverter(rise_delay=50n fall_delay=50n)
.model zener1 zener(v_breakdown=34)
.model dmod d(n=0.001)
.model ADC1 adc_bridge(in_low=0.3 in_high=3)
.model ADC2 adc_bridge(in_low=3 in_high=4)
.model DAC1 dac_bridge(out_low=0 out_high=5)
.model DACOUT dac_bridge(out_low=0.1 out_high=13.5)
.subckt srff1 1 2 3 4
as1 1 11 inv1
ar1 2 21 inv1
anand1 [11 4] 3 nand1
anand2 [21 3] 4 nand1
.model nand1 d_nand()
.model inv1 d_inverter()
.ends srff1
.SUBCKT OP1 1 2 3
* 1->in+, 2->in-, 3->out
Vos 4 1 DC 0V
Ib1 4 0 0A
Ib2 2 0 0A
G1 0 5 4 2 0.1
G2 0 6 5 0 100
G3 0 31 6 0 100
RR 31 0 1
alimit 31 3 limit1
.model limit1 limit(out_lower_limit=-5 out_upper_limit=5)
Ri 4 2 1e+010ohm
R1 5 0 1000ohm
R2 6 0 1ohm
R3 3 0 1ohm
C1 5 0 1.59155e-010
C2 6 0 1.59155e-033
.ENDS
.ends
0
回复
提示
@e-man
model如下:.subcktUC3842compVFBisensRAC0outvccref1.icv(RAC)=0azener10vcczener1vlowvlow10dc10vhighvhigh10dc16xuvlolvlow1vccuvsa1op1xuvlohvccvhigh1uvra1op1aadc1[uvsa1][uvs1]ADC1aadc2[uvra1][uvr1]ADC1xuvffuvs1uvr1uvq1uvqb1srff1adacref[uvqb1][uvqb2]DAC1ruvqbuvqb201megerefREFV0uvqb201rrefREFV01aadcref[REFV][ref11]ADC2gcurvcc0REFV00.0022vrefref10dc5idcem105.1814mdidc0em1dmodeosl1osh10ref10 0.56eosh1osl10ref10 0.24xosl1RACosh1osr1op1xosh1osl1RACoss1op1aosadc1[osr1][osr2]ADC1aossdc2[oss1][oss2]ADC1xosff1oss2osr2osq1osqb1srff1aosdac1[osqb1][gdc2]DAC1egdc1gdc10gdc201src1RACem1gdc10sw1ainv1uvqb1uvqb10inv1aref12ref11ref12inv1aor1[ref12osqb1]logout1or1Vvref30dc5rR220 1e+006rR132 1e+006xU12VFBcomp76OP4vV406dc15vV370dc15d1comp131dmodd2131132dmodr13213213320krR41330 10kazener20133zener2xcmod1isens133cmod1op1rcmod1cmod101meg acmodadc[cmod1][cout1]ADC1xoutsrffosqb1cout1out1q1out1qb1srff1aoutor1[ref12out1qb1]out1qb2or1aoutor2[out1qb2logout1]out1or1aoutinv1out1out2inv1aoutdac[out2][out]DACOUTroutout01k.modelzener2zener(v_breakdown=1.0).modeldmodd(n=1.05).SUBCKT op432674*3 2 6 7 4*+in -in out Vcc VeeRc17115.305e+003Rc27125.305e+003Re113154.594e+003Re214154.594e+003RE1501.319e+007IEE1541.516e-005Rp741.816e+004VC7161.080e+001VE1741.230e+001D4176dmod34D3616dmod34R011863.213e+001R021804.287e+001RC1901.369e-004C111129.741e-012Ce1501.000e-012C218203.000e-011R20201.000e+005D11819dmod12D21918dmod12Ga20011121.885e-004Gcm0201505.961e-009Gb1802003.913e+001Gc0191807.304e+003.MODELdmod12D(IS=1.877e-012).MODELdmod34D(IS=8.000e-016)Q111213QMOD1Q212314QMOD2.MODELQMOD1NPN(IS=8.0e-16BF=8.333e+001VAF=200).MODELQMOD2NPN(IS=8.0e-16BF=1.071e+002VAF=200).ends.modelsw1sw(vt=4vh=0.5ron=1e-6roff=1e12).modelor1d_or().modelinv1d_inverter()*.modelinv2d_inverter(rise_delay=50nfall_delay=50n).modelzener1zener(v_breakdown=34).modeldmodd(n=0.001).modelADC1adc_bridge(in_low=0.3in_high=3).modelADC2adc_bridge(in_low=3in_high=4).modelDAC1dac_bridge(out_low=0 out_high=5).modelDACOUTdac_bridge(out_low=0.1 out_high=13.5).subcktsrff11234as1111inv1ar1221inv1anand1[114]3nand1anand2[213]4nand1.modelnand1d_nand().modelinv1d_inverter().endssrff1.SUBCKTOP1 123*1->in+,2->in-,3->out Vos41DC0V Ib1400A Ib2200A G105420.1 G20650100 G303160100 RR3101 alimit313limit1 .modellimit1limit(out_lower_limit=-5out_upper_limit=5) Ri421e+010ohm R1501000ohm R2601ohm R3301ohm C1501.59155e-010 C2601.59155e-033.ENDS.ends
论坛里没人用multisim的吗?
0
回复
提示