I would like to make a toggle flip flop (without clock). I made the following J-K flip flop circuit using CD4001BE and sn74hc08 Logic gates IC's. The circuit works as S-R flip flop but it does not toggle when the input is J=1 and K=1.
I connect the inputs together (J & K) and then I tried to give them a pulse using a push button.
I assume the current state of the flip flop is: The output LED Q is on and The Other LED Q bar is off.
When the button is pushed both output LED's are on. When the button is released the output LED Q is also on and the output Q bar is off. The flip flop just returned to its previous state after bushing the button (Nothing toggles).

Someone told me that I should pay attention to the input and output voltage values for both IC's. and I should connect the floating inputs to either Vcc or GND. He gave me the correct schematic but it also behave like the first one.
Would you help me, please ? I just want to make a circuit when it receive a pulse it toggles its state and then holds the current state and waits for the second pulse.

Thank you very much,
I connect the inputs together (J & K) and then I tried to give them a pulse using a push button.
I assume the current state of the flip flop is: The output LED Q is on and The Other LED Q bar is off.
When the button is pushed both output LED's are on. When the button is released the output LED Q is also on and the output Q bar is off. The flip flop just returned to its previous state after bushing the button (Nothing toggles).

Someone told me that I should pay attention to the input and output voltage values for both IC's. and I should connect the floating inputs to either Vcc or GND. He gave me the correct schematic but it also behave like the first one.
Would you help me, please ? I just want to make a circuit when it receive a pulse it toggles its state and then holds the current state and waits for the second pulse.

Thank you very much,


