ok, here simple edge triggered D flip flop. the AND gate reacts on specific conditions but right here i have a simple switch connected to it as an experiment.
to say it briefly; im trying to zero out Q output, whenever i turn on the AND gate. untill AND gate is closed nothing must happen, CLR will get High, and it wont react (since it reacts on Low only). system will listen to input and clock.
...so, whenever Q will be High and the AND gate's right pin also will be at High; the AND gate will release 1 from it's nose output, then inverter inverts it to 0, and this zero activates CLR. CLR takes controll over "input" and "clock" and zeroes out Q, in the very next milisecond AND gate closes since it's Q pin is zero. so CLR will get High and turn down. this must give back controll to input and clock. and so on. in short i want to zero out Q whenever AND gate switch and Q are both High .
problem is when CLR gets it's 0 and activates, it works but miliseconds later when it gets 1... it doesnt diactivates. it keeps beign in activated state forever. see picture... CLR is 1. so it should be turned down. but it's turned on ((( so it doesnt let input and clock to take controll (( does simulator lies or i didnt get something.... ????
P.S. tried on Proteus and Livewire (as i know both partially use LT Spice engine) , and i get same results... Livewire starts to toggle infinitely in the last stage. showed to 2 engineers both confirmed that my logic would work in real life... except if we missed something.... ????
to say it briefly; im trying to zero out Q output, whenever i turn on the AND gate. untill AND gate is closed nothing must happen, CLR will get High, and it wont react (since it reacts on Low only). system will listen to input and clock.
...so, whenever Q will be High and the AND gate's right pin also will be at High; the AND gate will release 1 from it's nose output, then inverter inverts it to 0, and this zero activates CLR. CLR takes controll over "input" and "clock" and zeroes out Q, in the very next milisecond AND gate closes since it's Q pin is zero. so CLR will get High and turn down. this must give back controll to input and clock. and so on. in short i want to zero out Q whenever AND gate switch and Q are both High .
problem is when CLR gets it's 0 and activates, it works but miliseconds later when it gets 1... it doesnt diactivates. it keeps beign in activated state forever. see picture... CLR is 1. so it should be turned down. but it's turned on ((( so it doesnt let input and clock to take controll (( does simulator lies or i didnt get something.... ????
P.S. tried on Proteus and Livewire (as i know both partially use LT Spice engine) , and i get same results... Livewire starts to toggle infinitely in the last stage. showed to 2 engineers both confirmed that my logic would work in real life... except if we missed something.... ????
Attachments
-
184 KB Views: 84