1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

LTSpice logic models

Discussion in 'Circuit Simulation & PCB Design' started by throbscottle, Dec 30, 2014.

  1. throbscottle

    throbscottle Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,881
    Likes:
    118
    Location:
    Nuneaton, Warwickshire, UK
    How do I use the logic gates in LTSpice? They don't have any power supply connections!
     
  2. crutschow

    crutschow Well-Known Member Most Helpful Member

    Joined:
    Mar 14, 2008
    Messages:
    10,745
    Likes:
    503
    Location:
    L.A., USA Zulu -8
    Generally the logic models have a built-in fixed supply voltage. On some you can right-click on the icon and select the desired voltage.
     
  3. MikeMl

    MikeMl Well-Known Member Most Helpful Member

    Joined:
    Mar 17, 2009
    Messages:
    11,328
    Likes:
    581
    Location:
    AZ 86334
    You talking about the 4000 CMOS lib, or the idealized ones built into LTSpice? If the latter, there is an example in the Educational subdirectory...
     
  4. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  5. throbscottle

    throbscottle Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,881
    Likes:
    118
    Location:
    Nuneaton, Warwickshire, UK
    I meant the built in ones. In the example (160.asc) it just goes to 1v as logic 1. When right-clicking I get a box where I can set spice properties, but I don't know what to put in there. I want my sim to have other types of component in it so a consistent supply is neeeded. Guess I'll have to look for other libs like that 4000 one.
     
  6. throbscottle

    throbscottle Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,881
    Likes:
    118
    Location:
    Nuneaton, Warwickshire, UK
    Gosh, I just found all the libs on the LTSpice Yahoo group...
     
  7. MikeMl

    MikeMl Well-Known Member Most Helpful Member

    Joined:
    Mar 17, 2009
    Messages:
    11,328
    Likes:
    581
    Location:
    AZ 86334
    The ones built-in are just generic gates, latches, and flip-flops. They are good for simulating general logic, and it is possible to run a simulation with hundreds of these, where a schematic containing 7400 or 4000 gates would bog down.... Spice is not a logic sim, but with the simplified models you can do quite complex things....
     
  8. dave miyares

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    2
    Likes:
    -10


     
  9. eTech

    eTech Active Member

    Joined:
    Apr 25, 2012
    Messages:
    582
    Likes:
    53
    ONLINE
    Hi

    160.asc is a very basic model of a 74160 using LTspice proprietary "A" devices.. Rise times, fall times impedences, prop delay, input/output currents/voltages, etc., are not modeled. 1v is the default logic voltage level. These devices are located in the "Digital" section of the component selector."Special Functions" in Help section describes parameters that can be set.

    There is a CD4000_v lib and 74HC/HCT_v lib that have power supply input available. Its much easier to use one of these libraries.

    eT
     
  10. throbscottle

    throbscottle Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,881
    Likes:
    118
    Location:
    Nuneaton, Warwickshire, UK
    Hi folks, happily using 74HC lib now - thanks for all the help :) I'll remember to use the built in gates in the unlikely event I want to model something complex though.
     
  11. tvtech

    tvtech Well-Known Member Most Helpful Member

    Joined:
    Mar 27, 2010
    Messages:
    3,169
    Likes:
    349
    Location:
    South Africa
    I feel like passing love around. There are many good, decent members here that deserve to have more recognition than me...
    People that just get on with stuff and don't ***** about everything that pisses them off. Like me.

    Off the top of my head: CBB is one and Throb is another. I am going to do all I can to get them up to speed.
    And there are more to follow....Flyback...can you believe..is actually answering questions here and contributing instead of just taking.
    All it took from me was a gentle word and a compliment....and well...he is helping and sharing all with us. Best thing I have seen on this Forum is a user becomes a giver...Flyback you are a star in my eyes:cool:

    That's all Guys,
    tv
     
  12. Flyback

    Flyback Well-Known Member

    Joined:
    Jan 5, 2007
    Messages:
    2,057
    Likes:
    34
    Cheers tvtech, here is some ltspice logic stuff.....just right click them to see how to set them up. You can set what voltage you want to be your vout_hi and vout_low etc.....also you can set your rise and fall times, and delay times, and the trip voltage etc.
     

    Attached Files:

Share This Page