5

I am trying to simulate a Dflop on LTspice and it does not work. I look the other post on this subject and I didn't get what was the problem.

Here is the simulation It is like there is no clock. The IC is not taking into account the clock.

![enter image description here

enter image description here

winny
  • 14,707
  • 6
  • 46
  • 66
Jess
  • 2,978
  • 2
  • 24
  • 56

1 Answers1

8

First of all, the preset and clear pins are not the power supply. They are active high (should be 0V for the FF to work) and the voltage should be set via the SpiceLine (set to e.g. "Vhigh 5 Trise 1n", by right-clicking the component):

enter image description here enter image description here

devnull
  • 8,517
  • 2
  • 15
  • 39
  • 1
    Ok i got it. I was not thinking that the PRE pin was setting the output voltage. – Jess Jun 12 '22 at 14:21
  • 3
    @Jess Just one mention: if the 8th pin of any A device is left floating, it will default to being connected to node 0 (ground). Every other pin that is left floating is connected (internally) to the 8th pin, whichever connection that may be. In this case, since you are not using a custom ground, you can leave PRE and CLR unconnected and they will be tied to ground, since the 8th pin is floating (see the help under LTspice > Circuit Elements > A. ...). – a concerned citizen Jun 12 '22 at 15:08
  • 1
    Yeah I saw your comment in an other post :) – Jess Jun 12 '22 at 15:11