LTspice D type flip flop: How to make it work?

Status
Not open for further replies.

Flyback

Well-Known Member
Hi,
Do you know how to make the attached LTspice of a d type flip flop work?
The output is just stuck high
Woops sorry...it is workign, pse delete this post if you wish
 

Attachments

  • dff.asc
    1.3 KB · Views: 914
Last edited:
Don't delete. This question comes up often. How does logic work in LT Spice.
I changed the clock source to 0/4V so it will show better in the output.
Changed DFF to divide by 2 counter.
Right click on the DFF and a window will open. Ref=2.5 Below 2.5=0 and above 2.5=1, Vhigh and Vlow sets the output pin's voltage.
Any unconnected pin = 0

Hope this helps the next person.
RonSimpson
--------------------
Prefix A
InstName A6
SpiceModel DFLOP
Value Ref=2.5
Value2 Vhigh=5 Vlow=0
SpiceLine Td=2n Trise=10n Tfall=10n
SpiceLine2 tripdt=5n


 

Attachments

  • Dff-ron.asc
    1 KB · Views: 917
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…