LTspice problem with using a model

Discussion in 'General Electronics Chat' started by kubeek, Nov 25, 2015.

  1. kubeek

    Thread Starter AAC Fanatic!

    Sep 20, 2005
    4,669
    804
    I am trying to use a model of LM5111 mosfet driver obtained from TI, and I found a serious problem with its implementation. When Vee sits on ground of the circuit everything is fine, but when I try to drive a high side switch and shift if above 0V it stops working (see attached circuit). Could someone help me find the problem in the subckt definition and help me get it fixed?
     
    Last edited: Nov 25, 2015
  2. eetech00

    Active Member

    Jun 8, 2013
    644
    110
    Hi

    I changed E device:

    From this:
    E_ABMGATE YINT 0 VALUE {{IF(V(A) > {VTHRESH} &
    + V(B) > {VTHRESH},{VDD},{VSS})}}

    To this:
    E_ABMGATE YINT 0 Value={IF(V(A) > {VTHRESH} & V(B) > {VTHRESH},{VDD},{VSS})}


    try the attached .lib file

    You'll need to change the symbol spicefile attribute or rename the attached file to the original name.

    Also..
    Add a little rise and fall time to V4

    eT
     
  3. kubeek

    Thread Starter AAC Fanatic!

    Sep 20, 2005
    4,669
    804
    Thanks, I tried that but still nothing.
     
  4. eetech00

    Active Member

    Jun 8, 2013
    644
    110
    Can you be more specific?

    Do you still get errors in the log?
     
  5. kubeek

    Thread Starter AAC Fanatic!

    Sep 20, 2005
    4,669
    804
    No errors in the log, but the circuit still behaves incorrecty when VEE pin is not directly at 0 potential of the main simulation.
    After a few hours of playing with it I managed to narrow it down to actually B channel working properly and A channel acting weird, so I started sorting which circuit elements belong to which channel and which are common, and hopefully by tomorrow I will have found the error.
     
  6. kubeek

    Thread Starter AAC Fanatic!

    Sep 20, 2005
    4,669
    804
    Finally I managed to track all the errors in the model.
     
Loading...