Is there a circuit design where if the input is high (at any length of time), the output will only be one cycle at a fix amount of time?
I'm currently working on a capacitive touch switch (I'll use CTS as an abbreviation) using the CMOS 4000 series and I'm trying to turn it into a latching switch by connecting it to a T flip-flop. So whenever I trigger the CTS, its output will be the input or the T of the t flip-flop. It works, but not properly.
My ideal outcome on should be like this: at any length of T and the CLK have an odd number of cycles, the output put will always be the opposite of its initial state.
The problem is that whenever I trigger the CTS, the output state sometimes doesn't change. I thought this was because sometimes the T comes low with the CLK in an even number of cycle. I can't predict the CLK because it was too fast, around 100kHz.
So I thought that that if only there is a circuit between CTS and T flip-flop that when the CTS is triggered (at any length of time), this certain circuit will produce a single wave that is in synch with the CLK of the T flip-flop and will become the T of the t-flip-flop.