METHOD 2: CROSS-COUPLED NAND DEBOUNCE


The cross-coupled nand gate method is ideal for projects where two processor pins are not available for use with one switch. 

Output Q is high when the switch is idle, and low when it is activated. The /Q output is the opposite: low when idle and high when activated.