Continue to Site

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.

  • 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.

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: 1,267
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


1637679980294.png
 

Attachments

  • Dff-ron.asc
    1 KB · Views: 1,242
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top