This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Pspice

Other Parts Discussed in Thread: LM5046, LM5045, LM5025, LM258, LM5026

I found that many  examples for Pspice cannot be used properly.So I want to ask how can I  get the  tight  one.Thanks!

  • Peng,

    Not quite sure what you are asking here. I have never had a problem with a PSpice model when used properly. I have seen many times where PSpice models are used improperly which can cause problems.

  • Peng,

    Please specify

    1. Which models you are having an issue with?
    2. What was the exact problem?
    3. Did you make any changes to the application before running the simulation?
    4. What version of PSpice are you using?
    5. Any other information that might be helpful to debug the issue - if you can send the project files that would be best.

    Thanks,
  • Good morning Sir,
    I am using Orcad16.6 version for pspice simulation
  • Jyothi,

    Are you having some issues as Peng mentioned? I would recommend starting a new thread to keep the issues separate.

    Thanks,
  • when  I  used Orcad Family Release 9.2 to simulate the lm5046-example,I always found something wrong .At the same time ,I found  the lm5045-example is ok. The exact problem of lm5046-example is show as follow:(My English is not very well,thanks for your reading)

    06/06/15 21:20:47 ********* PSpice 9.2 (Mar 2000) ******** ID# 1 ********

    ** Profile: "Example Circuit1-lm5046" [ F:\TI\ti_pspice_exemple\LM5046_PSPICE_022511\Example\lm5046-example circuit1-lm5046.sim ]


    **** CIRCUIT DESCRIPTION


    ******************************************************************************


    ** Creating circuit file "lm5046-example circuit1-lm5046.sim.cir"
    ** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

    *Libraries:
    * Local Libraries :
    .LIB "..\library\lm5046.lib"
    .LIB ".\lm5046.lib"
    .LIB ".\lm5046example.lib"
    .LIB ".\lm5046example2.lib"
    .LIB "c:\eric_dt_20100326\lm5045 model\lm5045_pspice_022511\example\lm5045example3.lib"
    ----------------------------------------------------------------------------------------$
    ERROR -- Can't find library
    .INC ".\lm5046.inc"
    * From [PSPICE NETLIST] section of D:\Program Files\Orcad\PSpice\PSpice.ini file:

    **** INCLUDING lm5046.inc ****
    *In case you encounter a convergence problem, please try the simulationtion option settings as follows
    *.OPTIONS ABSTOL= 1E-10
    *.OPTIONS RELTOL= 0.001
    *.OPTIONS VNTOL= 0.1m
    *.OPTIONS ITL4= 500

    *Default simulation options
    .OPTIONS ABSTOL= 0.01u
    .OPTIONS RELTOL= 0.001
    .OPTIONS VNTOL= 10u
    .OPTIONS ITL4= 100

    .OPTIONS CHGTOL= 0.1p
    .OPTIONS GMIN= 1.0E-11
    .OPTIONS ITL1= 150
    .OPTIONS ITL2= 20
    .OPTIONS PIVREL= 1.0E-3
    .OPTIONS PIVTOL= 1.0E-13

    **** RESUMING "lm5046-example circuit1-lm5046.sim.cir" ****
    .lib "D:\Program Files\Orcad\Capture\Library\Tipspicemodels\lm5046\LM5046_PSPICE_022511\Example\LM5046.INC"
    .lib "D:\Program Files\Orcad\Capture\Library\Tipspicemodels\lm5046\LM5046_PSPICE_022511\Example\LM5046EXAMPLE3.lib"
    .lib "F:\TI\ti_pspice_exemple\LM5046_PSPICE_022511\Library\LM5046.LIB"
    .lib "F:\TI\ti_pspice_exemple\LM5046_PSPICE_022511\Library\LM5046.LIB"
    .lib "F:\pspice\pspice_models\lm5025\LM5025_PSPICE_TRANS\LM5025-PSpiceFiles\STARTUP\tran.sim"
    .lib "F:\pspice\pspice_models\lm5025\LM5025_PSPICE_TRANS\lm5025.lib"
    .lib "nom.lib"

    *Analysis directives:
    .TRAN 0 1ms 0 100us
    .PROBE V(*) I(*) W(*) D(*) NOISE(*)
    .INC ".\lm5046-Example Circuit1.net"

    **** INCLUDING "lm5046-Example Circuit1.net" ****
    * source LM5046
    X_U6 UVLO OVP RAMP CS SLOPE COMP REF RT RD1 RD2 RES SS SSSR SSOFF HS2
    + HO2 BST2 SR2 LO2 VCC LO1 SR1 BST1 HO1 HS1 VIN LM5046
    V_REF REF_SEC 0 1.2
    C_Cref REF 0 1u IC=0
    X_U8_ext P7V N16934950 REF COMP PS2501 PARAMS: REL_CTR=1
    R_Rdummy2 SSOFF 0 1k
    C_Css SS 0 4.7n IC=0
    R_Ruv2 UVLO OVP 2.6k
    C_Cvcc VCC 0 1u IC=0
    R_Ruv3 OVP 0 1.6k
    C_Ccs CS 0 100p IC=0
    X_U7 HS1 HS2 CHB VOUT1 VOUT1 N16942154 TX1P2S PARAMS: NP=9 NS=1
    M_M4 HS2 LO2 0 0 NMOSNOM
    R_Rt RT 0 50k
    L_Lpri1 HS1 HS2 240u
    R_Rwire2 VSUPPLY VIN 1m
    D_Dcs CS2 CS1 DNOM
    R_Rramp CS RAMP 15k
    R_Rcs3 CS2 0 10k
    R_Ruv1 VSUPPLY UVLO 100k
    M_M1 VSUPPLY2 HO1 HS1 HS1 NMOSNOM
    C_Cout1 VOUT 0 680u IC=0
    M_M3 VSUPPLY2 HO2 HS2 HS2 NMOSNOM
    R_Rdummy1 SLOPE RAMP 1m
    L_Lout3 VOUT1 VOUT 1.6u
    M_M2 HS1 LO1 0 0 NMOSNOM
    C_Cbst2 HS2 BST2 0.1u IC=0
    R_Rfbtop1 VOUT FB 25.5k
    X_U5B REF_SEC FB P7V N7V COMP_SEC LM258
    D_Dbst1 VCC BST1 DNOM
    V_N7V 0 N7V 7
    R_Rfbbot1 FB 0 15k
    V_Vsupply VSUPPLY 0
    +PWL 0 0 0.01m 0 0.2m 36 1.2m 75 2.2m 75 2.5m 36 3m 0
    R_Rload1 VOUT_LOAD 0 0.11
    C_Cbst1 HS1 BST1 0.1u IC=0
    D_Dbst2 VCC BST2 DNOM
    R_Rbias COMP_SEC N16934950 2k
    R_Rwire1 VSUPPLY1 VSUPPLY2 1m
    C_Ccomp1 FB COMP_SEC 47p IC=0
    C_Csssr SSSR 0 470p IC=0
    R_Rd1 RD1 0 80k
    R_Rwire9 VOUT VOUT_LOAD 1m
    C_Ccomp2 FB CP 3300p IC=0
    X_F_currentXfmr VSUPPLY VSUPPLY1 0 CS2 Example_Circuit1_F_currentXfmr
    R_Rcomp1 COMP_SEC CP 18k
    C_Cres RES 0 1n IC=0
    R_Rcs1 CS1 0 15
    M_M10 CHB SR2 0 0 NMOSNOM
    R_Rcs2 CS1 CS 499
    V_P7V P7V 0 7
    M_M12 N16942154 SR1 0 0 NMOSNOM
    R_Rd2 RD2 0 40k

    .subckt Example_Circuit1_F_currentXfmr 1 2 3 4
    F_F_currentXfmr 3 4 VF_F_currentXfmr 0.01
    VF_F_currentXfmr 1 2 0V
    .ends Example_Circuit1_F_currentXfmr

    **** RESUMING "lm5046-example circuit1-lm5046.sim.cir" ****
    .END

  • I am sorry .I think that I didn't describe the question very well.When I used Orcad Family Release 9.2 to simulate the lm5026 or Lm5046 Pspice Model examples, I always find something is wrong as follow: 06/06/15 21:20:47 ********* PSpice 9.2 (Mar 2000) ******** ID# 1 ********

    ** Profile: "Example Circuit1-lm5046" [ F:\TI\ti_pspice_exemple\LM5046_PSPICE_022511\Example\lm5046-example circuit1-lm5046.sim ]


    **** CIRCUIT DESCRIPTION


    ******************************************************************************




    ** Creating circuit file "lm5046-example circuit1-lm5046.sim.cir"
    ** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

    *Libraries:
    * Local Libraries :
    .LIB "..\library\lm5046.lib"
    .LIB ".\lm5046.lib"
    .LIB ".\lm5046example.lib"
    .LIB ".\lm5046example2.lib"
    .LIB "c:\eric_dt_20100326\lm5045 model\lm5045_pspice_022511\example\lm5045example3.lib"
    ----------------------------------------------------------------------------------------$
    ERROR -- Can't find library
    .INC ".\lm5046.inc"
    * From [PSPICE NETLIST] section of D:\Program Files\Orcad\PSpice\PSpice.ini file:

    **** INCLUDING lm5046.inc ****
    *In case you encounter a convergence problem, please try the simulationtion option settings as follows
    *.OPTIONS ABSTOL= 1E-10
    *.OPTIONS RELTOL= 0.001
    *.OPTIONS VNTOL= 0.1m
    *.OPTIONS ITL4= 500

    *Default simulation options
    .OPTIONS ABSTOL= 0.01u
    .OPTIONS RELTOL= 0.001
    .OPTIONS VNTOL= 10u
    .OPTIONS ITL4= 100

    .OPTIONS CHGTOL= 0.1p
    .OPTIONS GMIN= 1.0E-11
    .OPTIONS ITL1= 150
    .OPTIONS ITL2= 20
    .OPTIONS PIVREL= 1.0E-3
    .OPTIONS PIVTOL= 1.0E-13



    **** RESUMING "lm5046-example circuit1-lm5046.sim.cir" ****
    .lib "D:\Program Files\Orcad\Capture\Library\Tipspicemodels\lm5046\LM5046_PSPICE_022511\Example\LM5046.INC"
    .lib "D:\Program Files\Orcad\Capture\Library\Tipspicemodels\lm5046\LM5046_PSPICE_022511\Example\LM5046EXAMPLE3.lib"
    .lib "F:\TI\ti_pspice_exemple\LM5046_PSPICE_022511\Library\LM5046.LIB"
    .lib "F:\TI\ti_pspice_exemple\LM5046_PSPICE_022511\Library\LM5046.LIB"
    .lib "F:\pspice\pspice_models\lm5025\LM5025_PSPICE_TRANS\LM5025-PSpiceFiles\STARTUP\tran.sim"
    .lib "F:\pspice\pspice_models\lm5025\LM5025_PSPICE_TRANS\lm5025.lib"
    .lib "nom.lib"

    *Analysis directives:
    .TRAN 0 1ms 0 100us
    .PROBE V(*) I(*) W(*) D(*) NOISE(*)
    .INC ".\lm5046-Example Circuit1.net"



    **** INCLUDING "lm5046-Example Circuit1.net" ****
    * source LM5046
    X_U6 UVLO OVP RAMP CS SLOPE COMP REF RT RD1 RD2 RES SS SSSR SSOFF HS2
    + HO2 BST2 SR2 LO2 VCC LO1 SR1 BST1 HO1 HS1 VIN LM5046
    V_REF REF_SEC 0 1.2
    C_Cref REF 0 1u IC=0
    X_U8_ext P7V N16934950 REF COMP PS2501 PARAMS: REL_CTR=1
    R_Rdummy2 SSOFF 0 1k
    C_Css SS 0 4.7n IC=0
    R_Ruv2 UVLO OVP 2.6k
    C_Cvcc VCC 0 1u IC=0
    R_Ruv3 OVP 0 1.6k
    C_Ccs CS 0 100p IC=0
    X_U7 HS1 HS2 CHB VOUT1 VOUT1 N16942154 TX1P2S PARAMS: NP=9 NS=1
    M_M4 HS2 LO2 0 0 NMOSNOM
    R_Rt RT 0 50k
    L_Lpri1 HS1 HS2 240u
    R_Rwire2 VSUPPLY VIN 1m
    D_Dcs CS2 CS1 DNOM
    R_Rramp CS RAMP 15k
    R_Rcs3 CS2 0 10k
    R_Ruv1 VSUPPLY UVLO 100k
    M_M1 VSUPPLY2 HO1 HS1 HS1 NMOSNOM
    C_Cout1 VOUT 0 680u IC=0
    M_M3 VSUPPLY2 HO2 HS2 HS2 NMOSNOM
    R_Rdummy1 SLOPE RAMP 1m
    L_Lout3 VOUT1 VOUT 1.6u
    M_M2 HS1 LO1 0 0 NMOSNOM
    C_Cbst2 HS2 BST2 0.1u IC=0
    R_Rfbtop1 VOUT FB 25.5k
    X_U5B REF_SEC FB P7V N7V COMP_SEC LM258
    D_Dbst1 VCC BST1 DNOM
    V_N7V 0 N7V 7
    R_Rfbbot1 FB 0 15k
    V_Vsupply VSUPPLY 0
    +PWL 0 0 0.01m 0 0.2m 36 1.2m 75 2.2m 75 2.5m 36 3m 0
    R_Rload1 VOUT_LOAD 0 0.11
    C_Cbst1 HS1 BST1 0.1u IC=0
    D_Dbst2 VCC BST2 DNOM
    R_Rbias COMP_SEC N16934950 2k
    R_Rwire1 VSUPPLY1 VSUPPLY2 1m
    C_Ccomp1 FB COMP_SEC 47p IC=0
    C_Csssr SSSR 0 470p IC=0
    R_Rd1 RD1 0 80k
    R_Rwire9 VOUT VOUT_LOAD 1m
    C_Ccomp2 FB CP 3300p IC=0
    X_F_currentXfmr VSUPPLY VSUPPLY1 0 CS2 Example_Circuit1_F_currentXfmr
    R_Rcomp1 COMP_SEC CP 18k
    C_Cres RES 0 1n IC=0
    R_Rcs1 CS1 0 15
    M_M10 CHB SR2 0 0 NMOSNOM
    R_Rcs2 CS1 CS 499
    V_P7V P7V 0 7
    M_M12 N16942154 SR1 0 0 NMOSNOM
    R_Rd2 RD2 0 40k

    .subckt Example_Circuit1_F_currentXfmr 1 2 3 4
    F_F_currentXfmr 3 4 VF_F_currentXfmr 0.01
    VF_F_currentXfmr 1 2 0V
    .ends Example_Circuit1_F_currentXfmr

    **** RESUMING "lm5046-example circuit1-lm5046.sim.cir" ****
    .END
  • Peng,

    The error is a Library that cannot be found. It appears that the following file is not found:

    .LIB "c:\eric_dt_20100326\lm5045 model\lm5045_pspice_022511\example\lm5045example3.lib"

    Since this file appears to be for the LM5045, not the LM5046, you may be able to remove it from the .sim profile.

    I do not see any other issues. Please let us know if this fixes the issue.