Problem with FLIP FLOP async clk counter

An area for asking questions, making suggestion, share ideas and place circuit examples.
Post Reply
elak
Posts: 1
Joined: Sat Oct 08, 2016 4:18 am

Problem with FLIP FLOP async clk counter

Post by elak »

Hi, I have problems with T flip flops,

When I use them alone, nothing wrong but when i want to countdown with the output from the first one used for the second one input clock , sometimes I have unexpected outputs,not always, it's really random ... and anoying.
I tried to do My own T flip flop, I used the one in the samples, no matter the one I use, I always have some unexpected random results.

could someone explain me where I am wrong ... is this a feature ( bug) ?
Capture du 2016-10-08 14-24-46.png
Capture du 2016-10-08 14-24-46.png (49.12 KiB) Viewed 7695 times
testD.CircuitProject
(157.35 KiB) Downloaded 1044 times
elak
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Problem with FLIP FLOP async clk counter

Post by admin »

Hi Elak,
The problem is in your Bascule D FM. If you trying to build positive edge D flip-flop you will need a bit more complicated circuitry. Please start with this wiki section:
https://en.wikipedia.org/wiki/Flip-flop ... _flip-flop
In your design, you are trying to detect front edge in unreliable way hoping for delay on 3 invertors. This is not going to work in all cases, and that exactly what you observing.
Can you also try to reason on why do you want front edge flip-flop? If you building counter then it is more natural to use master-slave rear edge flip-flops as the flip on the next bit should only occurred when previous is going down. For that matter you can look at the samples in clock there are counters that work that way.
Regards,
Eugene
Post Reply