Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: Simulate LM5035C in Altium 13

$
0
0

Hi,

I have imported your Pspice model for LM5035C, using import wizard of Altium 13. I have asigned all the simulation models to the components and I have changed the components that create problems in Altium. After that the simulation doesn't work.

It gives the same error all time no matter I change the parameters of the simulator.

[Error] LM5035 XSpice doAnalyses: Timestep too small 17:45:01 11/03/2014 17

The model is:

.SUBCKT LM5035C RAMP UVLO OVP COMP RT CS SS DLY RES HB HS HO LO VCC SR2 SR1 REF VIN

VVCC VCC4 VCC5 0

Rram3_discharge 0 RAM2 1k

Rres6 RES9 RES11 500

Cresdum1 RES 0 3p IC=0

Rcomp1 REF COMPX 5k

Ccs6 ILIM 0 100p IC=0

Rdr5 DRVHISIG DR5 500

Cvcc4 VCC6 0 3p IC=0

Ecs4 CS7 0 VALUE { if(V(RAMPINT)>3.5 | V(CLK)>2.5 | V(PWMout)>2.5,5,0) }

Cotr7 OTR10 0 3p IC=0

Rovdummy 0 OVP 10Meg

Guvihys1 UVLO 0 VALUE { if(V(NSB)>2.5, 0, 23E-6) }

Rram2 RAM2 RAM3 500

Eosc1 OSC1 0 VALUE { if(V(OSC2)>cos(2*3.14*35E-9/(2/(6.25E9*I(VRT))+110E-9)),5,0) }

Cres6 RES9 0 3p IC=0

Xuvr1 UVR2 VREFLOW VREFuv uvr1 rsff5k PARAMS:

Rcs3 CS5 CS7 500

Cotr8 OTR11 0 3p IC=5

Tleb LEB1 0 LEB2 0 Z0=1 TD=50n

Cuvi1 SD 0 3p IC=0

Ess1 SSRESET 0 VALUE { if(V(DRIVERSoff)>2.5 | V(CLtimerout)>2.5 | V(SD)>2.5,5,0) }

Edff4 DFF7 0 VALUE { if(V(CLK)>2.5,V(DFF5),0) }

V1 V5V 0 5

Rdlydummy DLY 0 10E6

Ruvb3 UVB2 UVB3 500

Rdr7 SR1SIG DR7 500

Rotr1 OTR1 OUTPUTTIMERRESET 500

Cosc1 CLK 0 5p IC=5

Rcs4 CS6 CS8 500

Cres5 RES8 0 3p IC=0

Cdlo1 ENHOLO 0 3p IC=0

Edff3 DFF6 0 VALUE { if(V(CLK)>2.5,V(DFF4),0) }

Rcomp2 COMP2 0 200

V1V RAMPINT RAMP 1

Cuvc3 UVC2 0 3p IC=0

Xdff1 DFF2 DFF3 DFF4 DFF5 rsff5k PARAMS:

Rosc1 CLK OSC1 500

Evref2 VREF2 0 VALUE { if(V(VCCuv)>2.5 | V(VCClow)>2.5 | V(SD)>2.5,0,V(VREF1)) }

Euvc1 UVC3 0 VALUE { if(V(VCC)>7.4,5,0) }

Rleb1 LEB1 0 1

Cotr1 OUTPUTTIMERRESET 0 3p IC=0

Cuvb1 UVB2 0 3p IC=0

Css7 SS2 0 300p IC=0

Euvi2 UVI2 0 VALUE { if(V(UVLO)>1.25,5,0) }

Cvref1 VREF3 0 3p IC=0

Rcomp3 COMP3 0 200

Cvcc2 VCC4 0 3p IC=0

Rdr6 DRVLOSIG DR6 500

Cdr11 SR1 0 3p IC=0

Gss2 SS 0 VALUE { if(V(VCCuv)<=2.5 & V(VREFuv)<=2.5,if(V(nSB)<=2.5,110E-6,0),0) }

Cvcc5 VCC7 0 3p IC=0

Ruvc3 UVC2 UVC3 500

Cmon1 MON2 0 10p IC=0

Cmon2 MON1 0 20p IC=0

Cmon3 MON3 0 3p IC=0

Eosc2 OSC3 0 VALUE { if(V(VREFuv)<=2.5,sin(2*3.141592*TIME/(2/(6.25E9*I(VRT))+110E-9)),0) }

Rosc2 OSC2 OSC3 500

Cosc2 OSC2 0 3p IC=0

Eleb2 LEB2 0 LEB3 0 1

Cuvr1 UVR2 0 3p IC=0

Ccs3 CS5 0 3p IC=0

Eotr1 OTR1 0 VALUE { if(V(DRIVERSOFF)>2.5 | V(SSRESTART)>2.5,5,0) }

Cvcc3 VCC5 0 3p IC=0

Cdl1 DRVLATCH 0 400p IC=0

Cuvc4 VCCLOW 0 3p IC=0

Edrv5 DRVHISIG 0 VALUE { if(V(ENholo)<=2.5,0,if(V(DRVHI)>2.5 & V(DELAYDRVHI)>2.5 & V(VCClow)<=2.5 & V(UVb)>2.5,5,0)) }

Cuvb2 UVB4 0 3p IC=0

Rdlo2 PENSR1SR2 ENSR1SR2 500

Euvr1 UVR3 0 VALUE { if(V(REF)>4,5,0) }

Ruvi2 NSB UVI2 500

Eov1 OV1 0 VALUE { if(V(OVP)>1.25,5,0) }

Ccs4 CS6 0 3p IC=0

VDLY VDLY1 DLY 0

Xres_sub1 RES5 RES6 RESLATCH res4 rsff5k PARAMS:

Euvi1 UVI1 0 VALUE { if(V(UVLO)>0.35,0,5) }

Rmon2 MON3 MON4 500

Cdr8 DR8 0 3p IC=0

Xdff2 DFF6 DFF7 SELECTHILO DFF1 rsff5k PARAMS:

Ggateloss VIN 0 VALUE { I(VVCC) }

Ecomp1 COMP4 0 VALUE { V(SS) }

Xuvb1 UVB2 UVB4 uvb1 UVb rsff5k PARAMS:

Rdl1 DRVLATCH DL1 2

Rvcc4 VCC7 VCC 1

Eleb1 CS8 0 VALUE { if(V(LEB1)>2.5 & V(LEB4)>2.5,5,0) }

Ruvr1 UVR2 UVR3 500

Rov1 OVPSIG OV1 500

Eotr2 OTR6 0 VALUE { if(V(DRVHI)>2.5 | V(DRIVERSOFF)>2.5,5,0) }

Rpwm3 PWMOUT PWM5 50

Evcc1 VCC1 0 TABLE { V(VIN) } ( (0,0)(4.5,0)(4.6,0.7)(12,7.6) )

Edrv7 SR1SIG 0 VALUE { if(V(ENsr1sr2)<=2.5,0,if(V(DRVHI)>2.5 | V(DELAYDRVHI)>2.5,0,if(V(VCClow)<=2.5,5,0))) }

Cuvi2 NSB 0 3p IC=0

Eres_sub1 RES5 0 VALUE { if(V(CLK)>2.5,V(RES7),0) }

Eres_sub2 RES6 0 VALUE { if(V(CLK)>2.5,V(ILIMLATCH),0) }

Rotr4 OTR5 OTR6 500

Emon1 MON4 0 VALUE { if(V(RAMPint)>3.5,5,0) }

Rleb2 LEB3 LEB4 500

Evdly1 VDLY1 0 TABLE { V(REF,0) } ( (0,0) (2.5,2.5) )

Cuvr2 VREFLOW 0 3p IC=0

Rss7 SS1 SS 32

Cdd1 DELAYDRVHI 0 40p IC=0

Cdlo2 ENSR1SR2 0 3p IC=0

Rvccint1 VCC6 VCCINT 100m

Euvc2 UVC5 0 VALUE { if(V(VCC)<6.2,5,0) }

Cvref2 REF 0 3p IC=0

Givcc1 VCC7 0 TABLE { V(VCC) } ( (0,0) (7.5,0.004) )

Cdr10 LO 0 3p IC=0

Cleb1 LEB3 0 3p IC=0

Cov1 OVPSIG 0 3p IC=0

Rdrvhi1 DRVHI PDRVHI 500

Cotr4 OTR5 0 10p IC=0

Rres1 RES1 RES 32

Rmon1 MON2 MON3 200

Xcs1 CS5 CS6 cs4 CSBLANK rsff5k PARAMS:

Ruvc4 VCCLOW UVC5 500

Cdrvhi1 DRVHI 0 10p IC=0

Xotr2 OTR10 OTR11 CLTIMEROUT otr9 rsff5k PARAMS:

Epwm1 PWM5 0 VALUE { if((V(RAMPINT)>V(COMPX)) | V(maxONlatch)>2.5 | V(ILIMlatch)>2.5 | V(DRIVERSoff)>2.5 | V(SSreset)>2.5,5,0) }

Ruvb2 UVB4 UVB5 500

Eosc3 NCLK 0 VALUE { {5-V(CLK)} }

Eleb3 LEB4 0 VALUE { if(V(DRVLOSIG)>2.5 | V(DRVHISIG)>2.5,5,0) }

Tresd1 DCLK 0 RESD2 0 Z0=1 TD=80n

Qcomp2 COMPX COMP COMP3 NOMNPN

Rdr8 SR2SIG DR8 500

Rvcc3 0 VCC4 5k

Euvr2 UVR5 0 VALUE { if(V(REF)<3,5,0) }

Eres1 RES3 0 VALUE { if(V(CLTIMEROUT)>2.5,5,0) }

Xpwm1 PWMOUT PWM2 PWMOUT2 pwm1 rsff5k PARAMS:

Evref1 VREF1 0 TABLE { V(VCC) } ( (0,0) (6,5) )

Ecs2 CS9 0 VALUE { if(V(CLK)>0.1,0,if(V(CS1)>0.25 & V(PWMOUT2)>2.5,5,0)) }

Cdl2 MAXONLATCH 0 500p IC=0

Rdrvoff1 PDRIVERSOFF DRIVERSOFF 500

Rram1 RAM1 RAMP 10

Edff1 DFF2 0 VALUE { if(V(NCLK)>2.5,V(DFF1),0) }

RdumRT RT 0 10E6

Ruvr2 VREFLOW UVR5 500

Rvindummy1 VIN 0 1.28Meg

Rresd1 DCLK 0 1

Rdrvlo1 DRVLO PDRVLO 500

Rcs5 CS CS1 2k

Edrv8 SR2SIG 0 VALUE { if(V(ENsr1sr2)<=2.5,0,if(V(DRVLO)>2.5 | V(DELAYDRVLO)>2.5,0,if(V(VCClow)<=2.5,5,0))) }

Cdrvoff1 DRIVERSOFF 0 3p IC=0

Xotr1 OTR5 CLTIMEROUT SSRESTART otr4 rsff5k PARAMS:

Epwm2 PWM4 0 VALUE { if(V(CLK)>4.5, 5, 0) }

Eram1 RAM3 0 VALUE { if(V(SSRESET)>2.5 | V(CLK)>2.5 | V(maxONlatch)>2.5,5,0) }

Eres2 RES10 0 VALUE { if(V(DCLK)>2.5,5,0) }

Eotr3 OTR12 0 VALUE { if(V(RES)<0.1 & V(SS)<0.1,5,0) }

Cdd2 DELAYDRVLO 0 40p IC=0

Cdr9 HO HS 3p IC=0

Rvcc1 VCC2 VCC3 1

Cdrvlo1 DRVLO 0 10p IC=0

Ccs5 CS1 0 6p IC=0

Eresd1 RESD2 0 CLK 0 1

Rvref3 0 REF 5k

Edlo1 PENHOLO 0 VALUE { if(V(DRVlatch)>2.5 & V(DRIVERSoff)<=2.5,5,0)}

Edrv6 DRVLOSIG 0 VALUE { if(V(ENholo)<=2.5,0,if(V(DRVLO)>2.5 & V(DELAYDRVLO)>2.5 & V(VCClow)<=2.5,5,0)) }

Rotr7 OTR10 OTR12 500

Rpwm2 PWM2 PWM4 500

Rvcc2 0 VCC3 2k

Xres1 RES8 RES9 ILIMLATCH RES7 rsff5k PARAMS:

Ruvi1 SD UVI1 500

Cres1 RES2 0 300p IC=0

VRT VRT1 RT 0

Cvccint1 0 VCCINT 10p IC=0

Cdr7 DR7 0 3p IC=0

Rres5 RES8 RES10 500

Eotr4 OTR13 0 VALUE { if(V(DRIVERSOFF)>2.5 | V(RES)>2.5,5,0) }

Gres1 0 RES VALUE { if(V(RESLATCH)>2.5, 22E-6, -12E-6) }

Edff2 DFF3 0 VALUE { if(V(NCLK)>2.5,V(SELECTHILO),0) }

Rres2 RES2 RES3 500

Rresdum1 0 RES 1G

Rdl2 MAXONLATCH MON1 5

Evrt1 VRT1 0 TABLE { V(REF,0) } ( (0,0) (2,2) )

Govhys1 0 OVP VALUE { if(V(OVPSIG)>2.5,23E-6,0) }

Cvcc1 VCC3 0 3p IC=0

Qcomp1 COMP COMP COMP2 NOMNPN

Rotr8 OTR11 OTR13 500

Css5 SS 0 3p IC=0

Cpwm1 PWMOUT 0 400p IC=0

Rcs6 CS9 ILIM 500

Rdlo1 PENHOLO ENHOLO 500

Eres3 RES11 0 VALUE { if(V(ILIM)>4.5,5,0) }

Rvref1 VREF2 VREF3 1

Xuvc1 UVC2 VCCLOW VCCuv uvc1 rsff5k PARAMS:

Cram1 RAM2 0 3p IC=0

Ruvidummy 0 UVLO 10Meg

Rss8 SS2 SSRESET 500

Cpwm2 PWM2 0 3p IC=0

Evcc2 VCC2 0 VALUE { IF(V(SD)>2.5,0,V(VCC1)) }

Cdr6 DR6 0 3p IC=0

Ccomp1 COMP 0 1p IC=0

Rcs7 CS CS2 32

Ccs7 CS2 0 10p IC=0

Rvccint2 VCCINT VCC 10m

Cdr12 SR2 0 3p IC=0

Cdr5 DR5 0 3p IC=0

Rvref2 0 VREF3 5k

Cdl3 DL1 0 10p IC=0

Gvref1 0 REF TABLE { V(VREF3, REF) } ( (0,0)(0.15,0.02) )

Dvcc1 vcctemp VIN DNOM

Dvcc2 VCC vcctemp DNOM

Dvref1 REF VCC DNOM

*SWITCHs

Sdiode_vcc1 VCC5 VCC6 VCC5 VCC6 SWCLAMP

Spwmdiode1 PWM5 PWMOUT PWM5 PWMOUT SWCLAMP

Scompdiode1 COMPX COMP4 COMPX COMP4 SWCLAMP

Smondiode1 MON4 MON3 MON4 MON3 SWCLAMP

Suvi1 0 UVLO 0 UVLO SWCLAMP

Sresdiode1 RES V5V RES V5V SWCLAMP

Sresdiode2 0 RES 0 RES SWCLAMP

Scsdiode1 CS9 ILIM CS9 ILIM SWCLAMP

Scsdiode2 ILIM V5V ILIM V5V SWCLAMP

Sssdiode1 SS V5V SS V5V SWCLAMP

Sssdiode2 0 SS 0 SS SWCLAMP

Sdd1 DELAYDRVHI V5V DELAYDRVHI V5V SWCLAMP

Sdd2 0 DELAYDRVHI 0 DELAYDRVHI SWCLAMP

Sdd3 DELAYDRVLO V5V DELAYDRVLO V5V SWCLAMP

Sdd4 0 DELAYDRVLO 0 DELAYDRVLO SWCLAMP

Sres1 RES1 0 RES2 0 S5K

Sdl1 V5V DL1 DRVLO 0 S5K

Sss1 SS1 0 SS2 0 S5K

Sram1 RAM1 0 RAM2 0 S5K

Scs1 CS2 0 CSBLANK 0 S5K

Smon1 V5V MON1 MON2 0 S5K

Smon2 MON1 0 CLK 0 S5K

Sdriver1 HB HO DR5 0 SdriverT

Sdriver2 HO HS DR5 0 SdriverB

Sdriver3 VCC LO DR6 0 SdriverT

Sdriver4 LO 0 DR6 0 SdriverB

Sdriver6 SR1 0 DR7 0 SdriverSRB

Sdriver8 SR2 0 DR8 0 SdriverSRB

Rgiga1 VCC5 VCC6 1G

Rgiga2 PWM5 PWMOUT 1G

Rgiga3 COMPX COMP4 1G

Rgiga4 MON4 MON3 1G

Rgiga5 0 UVLO 1G

Rgiga6 RES V5V 1G

Rgiga7 0 RES 1G

Rgiga8 CS9 ILIM 1G

Rgiga9 ILIM V5V 1G

Rgiga10 SS V5V 1G

Rgiga11 0 SS 1G

Rgiga12 DELAYDRVHI V5V 1G

Rgiga13 0 DELAYDRVHI 1G

Rgiga14 DELAYDRVLO V5V 1G

Rgiga15 0 DELAYDRVLO 1G

Rgiga16 RES2 0 1G

Rgiga17 DRVLO 0 1G

Rgiga18 SS2 0 1G

Rgiga19 RAM2 0 1G

Rgiga20 CSBLANK 0 1G

Rgiga21 MON2 0 1G

Rgiga22 CLK 0 1G

Rgiga23 DR5 0 1G

Rgiga24 DR5 0 1G

Rgiga25 DR6 0 1G

Rgiga26 DR6 0 1G

Rgiga27 DR7 0 1G

Rgiga28 DR8 0 1G

Rgiga29 OUTPUTTIMERRESET 0 1G

Rgiga30 DR7 0 1G

Rgiga331 DR8 0 1G

*35C

Gvcc1 0 VCC4 TABLE { V(VCC3, VCC4) } ( (0,0)(0.3,0.058) )

Euvb1 UVB3 0 VALUE { if((V(HB)-V(HS))>3.8,5,0) }

Euvb2 UVB5 0 VALUE { if((V(HB)-V(HS))<3.3,5,0) }

Gss1 0 SS VALUE { if(V(VCCuv)<=2.5 & V(VREFuv)<=2.5, if(V(nSB)<=2.5 | V(SSrestart)>2.5 | V(SSreset)>2.5, 1.2E-6, 110E-6),0) }

Edriversoff PDRIVERSOFF 0 VALUE { if(V(VREFuv)>2.5 | V(VREFlow)>2.5 | V(ovpsig)>2.5 | V(VCClow)>2.5 | V(SD)>2.5 | V(nSB)<=2.5,5,0) }

Edrvhi1 PDRVHI 0 VALUE { if(V(selectHILO)>2.5 & V(PWMout2)>2.5 & V(SSreset)<=2.5,5,0) }

Edrvlo1 PDRVLO 0 VALUE { if(V(selectHILO)<=2.5 & V(PWMout2)>2.5 & V(SSreset)<=2.5,5,0) }

Edlo2 PENSR1SR2 0 VALUE { if(V(DRVlatch)>2.5 & V(nSB)>2.5,5,0) }

Gdd1 0 DELAYDRVHI VALUE { if(V(DRVHI)>2.5,I(VDLY)*13.333,-I(VDLY)*57.143) }

Gdd2 0 DELAYDRVLO VALUE { if(V(DRVLO)>2.5,I(VDLY)*13.333,-I(VDLY)*57.143) }

Sdl2 DL1 0 OUTPUTTIMERRESET 0 S5K

Sdriver5 REF SR1 DR7 0 SdriverSRT

Sdriver7 REF SR2 DR8 0 SdriverSRT

*subckt

.MODEL Dnom D IS=100n RS=30m CJO=10p VJ=0.5 EG=0.6

.MODEL S5K VSWITCH RON=1 ROFF=100E6 VON=1V VOFF=0.0V

.MODEL SWCLAMP VSWITCH RON=0.001 ROFF=100E6 VON=10m VOFF=0

.MODEL SdriverT VSWITCH RON=8 ROFF=0.5E6 VON=2.6V VOFF=2.4V

.MODEL SdriverB VSWITCH RON=0.5E6 ROFF=5 VON=2.6V VOFF=2.4V

.MODEL SdriverSRT VSWITCH RON=20 ROFF=0.5E6 VON=2.6V VOFF=2.4V

.MODEL SdriverSRB VSWITCH RON=0.5E6 ROFF=20 VON=2.6V VOFF=2.4V

.MODEL NOMNPN NPN RB=350 RC=600 RE=20

.ENDS LM5035C

*

* RSFF

.SUBCKT RSFF5K R S Q NQ

Eff1 PSTATE 0 VALUE { if(V(R)>2.5 & V(S)<=2.5,0,if(V(R)<=2.5 & V(S)>2.5,5,2.5)) }

Rff1 STATE PSTATE 500

Cff1 STATE 0 9p IC=0

Eff2 PQ 0 VALUE {if(V(STATE)>=4.5,5,if(V(STATE)<=0.5,0,if(V(FFMEM)>2.5,5,0))) }

Rff2 Q PQ 500

Cff2 Q 0 12p IC=0

Eff3 PNQ 0 VALUE {if(V(STATE)>=4.5,0,if(V(STATE)<=0.5,5,if(V(FFMEM)>2.5,0,5))) }

Rff3 NQ PNQ 500

Cff3 NQ 0 12p IC=0

Sff4 V5V FFMEM Q 0 SFF

Rff4 Q 0 1G

Sff5 FFMEM 0 NQ 0 SFF

Rff5 NQ 0 1G

Cff6 FFMEM 0 3p IC=0

Vff7 V5V 0 5

.MODEL SFF VSWITCH RON=500 ROFF=100MEG VON=4.5V VOFF=0.5V

.ENDS RSFF5K


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>