+ Post New Thread
Results 1 to 15 of 15
  1. #1
    Newbie level 4
    Points: 41, Level: 1

    Join Date
    May 2019
    Posts
    5
    Helped
    1 / 1
    Points
    41
    Level
    1

    [moved] Convergenge issue PSpice- LM5022

    I designed a BOOST converter using LM5022 microcontroller. I got convergence issues and I have already tried to change the max Time step, deleting the snubber to get it easier, changing the simulation options, without any results.
    The simulation shows there are 5 devices that fail to convergence.

    Do you have any suggests to solve this problem?

  2. #2
    Advanced Member level 5
    Points: 9,710, Level: 23
    d123's Avatar
    Join Date
    Jun 2015
    Posts
    1,717
    Helped
    401 / 401
    Points
    9,710
    Level
    23

    Re: [moved] Convergenge issue PSpice- LM5022

    Hi,

    Maybe posting an image of the convergence error pop-up as well will be more helpful.

    I don't know what program you are using and you say you've already fiddled with the parameters with no success... In the one I use, changing the time to larger steps e.g. from 10G to 1m sometimes helps. Occasionally a part/the Spice netlist appears to cause the issue and sometimes it's the part itself that makes the simulation unviable - easy to solve if it's just swapping e.g. a "fancy"/newly available transistor for a common, well-modelled transistor, not so much if it's the IC you need to simulate. I think sometimes adding a resistor in the right place can solve these issues but I wouldn't know where to tell you to do so.

    Maybe trying in another simulator to see if the same issue(s) arise(s)?



  3. #3
    Super Moderator
    Points: 51,807, Level: 55

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,713
    Helped
    2529 / 2529
    Points
    51,807
    Level
    55

    Re: [moved] Convergenge issue PSpice- LM5022

    * C4 can be removed. Or else put a low-ohm resistor inline with it. By itself it's charged immediately by the power supply. In real life it's okay to do this.
    However the simulator works by mathematical calculations. With no resistance value the simulator is unable to calculate an RC time constant for C4 volt level from one frame to the next.

    * Likewise CC4 might need a low-ohm resistor inline.

    * Simplify locations where one ground icon serves two components. Then the simulator only needs to calculate two wires, not 3 or 4 or 5, and a node or 2 or 3.
    Give the power supply its own ground icon.
    Give C4 its own ground icon.
    Give the IC its own ground icon.
    Give C5 its own ground icon.
    Give Rsense its own ground icon. Etc.

    * L2-D2, L3-D3. Where you have a diode and inductor as neighbors, put a high-ohm resistor across one or both components. 10k or 100k is reasonable. Otherwise they might create ringing oscillations at shut-off.

    * Sometimes a troublesome node (or terminal of a component) can be cured by installing a high-ohm resistor from the node to a supply rail.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  4. #4
    Newbie level 4
    Points: 41, Level: 1

    Join Date
    May 2019
    Posts
    5
    Helped
    1 / 1
    Points
    41
    Level
    1

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by d123 View Post
    Hi,

    Maybe posting an image of the convergence error pop-up as well will be more helpful.

    I don't know what program you are using and you say you've already fiddled with the parameters with no success... In the one I use, changing the time to larger steps e.g. from 10G to 1m sometimes helps. Occasionally a part/the Spice netlist appears to cause the issue and sometimes it's the part itself that makes the simulation unviable - easy to solve if it's just swapping e.g. a "fancy"/newly available transistor for a common, well-modelled transistor, not so much if it's the IC you need to simulate. I think sometimes adding a resistor in the right place can solve these issues but I wouldn't know where to tell you to do so.

    Maybe trying in another simulator to see if the same issue(s) arise(s)?
    Hello, I am using OrCad-Pspice for the simulation. I attached the output file with the convergence error.



    •   AltAdvertisement

        
       

  5. #5
    Super Moderator
    Points: 51,807, Level: 55

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,713
    Helped
    2529 / 2529
    Points
    51,807
    Level
    55

    Re: [moved] Convergenge issue PSpice- LM5022

    What is supposed to be the power supply for the control IC?
    Your power supply icon appears to be AC. Instead it is normal to supply DC to a boost converter.

    Start building your boost converter from the most simple basic topology. Remove the control IC. Apply a pulse train to the mosfet gate. Try various frequencies and duty cycles. The aim is to get it to work with no convergence errors. Or if you get an error then you'll have an easier time figuring out what to do about it.



  6. #6
    Advanced Member level 5
    Points: 9,710, Level: 23
    d123's Avatar
    Join Date
    Jun 2015
    Posts
    1,717
    Helped
    401 / 401
    Points
    9,710
    Level
    23

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by Gerry95 View Post
    Hello, I am using OrCad-Pspice for the simulation. I attached the output file with the convergence error.ciccio.txt
    Hi,

    I am unfamiliar with OrCad so it would be pointless to speculate.



  7. #7
    Newbie level 4
    Points: 41, Level: 1

    Join Date
    May 2019
    Posts
    5
    Helped
    1 / 1
    Points
    41
    Level
    1

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by BradtheRad View Post
    What is supposed to be the power supply for the control IC?
    Your power supply icon appears to be AC. Instead it is normal to supply DC to a boost converter.

    Start building your boost converter from the most simple basic topology. Remove the control IC. Apply a pulse train to the mosfet gate. Try various frequencies and duty cycles. The aim is to get it to work with no convergence errors. Or if you get an error then you'll have an easier time figuring out what to do about it.
    The power supply range of the IC is 6-60 V. I have a specification of 200kHz abou the frequency. Before using IC, I got no error with a simplier circuit, using a pulse generator. So, the problem comes out when I use the IC and I don't know how to solve the convergence problem. I also tried to use the steady state conditions and a DC power supply without any results.



    •   AltAdvertisement

        
       

  8. #8
    Super Moderator
    Points: 256,679, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,780
    Helped
    13618 / 13618
    Points
    256,679
    Level
    100

    Re: [moved] Convergenge issue PSpice- LM5022

    Did you try to run the PSPICE examples provided by TI along with the model?



  9. #9
    Newbie level 4
    Points: 41, Level: 1

    Join Date
    May 2019
    Posts
    5
    Helped
    1 / 1
    Points
    41
    Level
    1

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by FvM View Post
    Did you try to run the PSPICE examples provided by TI along with the model?
    Yes, I used it first. It works properly so I also used the same setting options in the simulation window without solving my issue.



  10. #10
    Super Moderator
    Points: 51,807, Level: 55

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,713
    Helped
    2529 / 2529
    Points
    51,807
    Level
    55

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by Gerry95 View Post
    The power supply range of the IC is 6-60 V.
    Does it work (or does it break) if exposed to negative polarity?
    What happens when the AC supply goes into negative region?



  11. #11
    Super Moderator
    Points: 29,210, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,695
    Helped
    1102 / 1102
    Points
    29,210
    Level
    41
    Blog Entries
    9

    Re: [moved] Convergenge issue PSpice- LM5022

    We don't know how the LM5022 component was internally modeled by TI, but depending on whether the SS input is "ideal" or not, e.g not trying to sink or to drain the smallest leak current, this can make voltage on the capacitor to stay floating, so as the first attempt I would try to add a high value resistor in parallel to the capacitor Css.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  12. #12
    Super Moderator
    Points: 256,679, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    44,780
    Helped
    13618 / 13618
    Points
    256,679
    Level
    100

    Re: [moved] Convergenge issue PSpice- LM5022

    If the examples are working, it should be possible to move towards your circuit. I admit that SPICE convergence issues can be annoying and are sometimes hard to solve, particularly with very nonlinear devices like MOSFETs.



  13. #13
    Newbie level 4
    Points: 41, Level: 1

    Join Date
    May 2019
    Posts
    5
    Helped
    1 / 1
    Points
    41
    Level
    1

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by BradtheRad View Post
    Does it work (or does it break) if exposed to negative polarity?
    What happens when the AC supply goes into negative region?
    I ve just checked and It does not work properly, I think It breaks because the pin voltage drops gets high. The minimum according to the datasheet is -0.3 V. Anyway, I tried to set a max time step of 10ns on 10ms of simulation and the convergence problem disappears but the simulation took more than 10 hours and the simulation time results higher than that I fixed in the setting. At 1% I stopped the simulation and the time was 18 ms.


    1 members found this post helpful.

  14. #14
    Advanced Member level 5
    Points: 9,710, Level: 23
    d123's Avatar
    Join Date
    Jun 2015
    Posts
    1,717
    Helped
    401 / 401
    Points
    9,710
    Level
    23

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by Gerry95 View Post
    Anyway, I tried to set a max time step of 10ns on 10ms of simulation and the convergence problem disappears but the simulation took more than 10 hours (...) At 1% I stopped the simulation.
    I know that feeling.



  15. #15
    Super Moderator
    Points: 51,807, Level: 55

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,713
    Helped
    2529 / 2529
    Points
    51,807
    Level
    55

    Re: [moved] Convergenge issue PSpice- LM5022

    Quote Originally Posted by Gerry95 View Post
    I tried to set a max time step of 10ns
    Try increasing your tilmestep by 10x. Run the simulation again. If it makes you wait a long time then increase it further.

    A reasonable timestep results in 100 frames per frequency period used in your circuit. So 10nS timestep is suitable when you have, say 1 MHz freq, running in your circuit. It's true when using a control IC that we don't know how to predict what frequency it will adjust to. Nevertheless since your inductor is 330uH, then it's likely to be slower than 1 MHz.



--[[ ]]--