Maker Pro
Maker Pro

Frequency Divider

Virium

Jun 27, 2016
6
Joined
Jun 27, 2016
Messages
6
Hello everybody, asking for some help with a frequency divider using a D flip flop.
The chip on the left is a D flip flop, I feed a signal (f) in to the clock and it outputs it to me halved (f2), it works fine.
I am trying to simulate the same using logic gates, and getting no results.
The output is nothing I desire, the pulses are about 25x faster and the clock signal turns into DC.
What am I doing wrong here ?
Thank you for your time
 

Attachments

  • Dflipflop.png
    Dflipflop.png
    13 KB · Views: 143
  • Doutput.png
    Doutput.png
    11.2 KB · Views: 127

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
the problem is that your gate version passes D to Q while the clock is high. The other one does it as the clock goes high.

the practice upshot is that your gate version is not limited to a single transition during each clock cycle
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,699
Joined
Nov 17, 2011
Messages
13,699
To avoid this, look up master-slave flip flop.
 
Top