Haven't used a flip flop since week 2 of uni (well over 20 years ago now) but had a requirement for one in a current project. I need an output that toggles after a button press. Seems like a flip flop is the perfect chip for it.. seems.
My problem is the Q output toggles when the button is pressed, but then toggles back again when the button is released. ie it act as an actual button rather than a flip-flop. Below is an extract of the schematic.
The button is connected via R4/C1 to filter the clock pulse. I've looked on a CRO and it's a nice clean press with no jitter etc. I've changed values of R4/C1 to try both slow and quick ramping, with no difference.
RD is driven high/low by another part of the circuit to enable/reset the flip flop. That seems to work ok.
What am I doing wrong? - Cheers Matt