Home » Circuits
Flip-Flop Using CMOS NAND Gates
Using just two NAND or inverter gates its possible to build a D type (or ‘toggle’) flip-flop with a push-button input. At power-up the output of gate N2 is at a logical ‘1’, ensuring that transistor T2 is switched off. When the push-button is pressed the output of N2 changes to a logical ‘0’ and transistor T2 conducts. The coupling between N1 and N2 ensures that the output of N1 will always be the inverse of N2 so T1 and T2 will always be in opposite states and will flip each time the push-button is pressed. In some cases it is possible to omit T1 and T2 and use the outputs of N2 and N1 to drive external circuitry directly but only if the loading on these outputs is low enough.
