I've seen variations with two resistors, but I don't know why. It's probably some neurosis vis-a-vis the grave consequences of discharging a 0.01uF capacitor straight to ground, I suppose
That would be precisely
the reason for the second resistor, between the 100k and switch, and the capacitor on the gate input.
As I calculate it, the time constant of 100k and 0.1µF is 6 ms but the 4093 thresholds do not correspond to 1/e so it is more like 3 ms. Now since you are directly shorting the capacitor, this time constant applies to the contact opening, not closing, nevertheless this may me somewhat short for comfort. 100k may be somewhat high to account for wiring leakage and interference pick-up though of course the capacitor suppresses the latter. I would tend to be looking at 10k and 1µF.
If I had a reason to do hardware debouncing in the first place, where I was not using a microcontroller.
Dunno if I was clear in my explanation. The button I debounced is the interrupt trigger, not something that I'm using an interrupt for.
Then you do not need
to debounce it in hardware. Just switch off
/ disable the interrupt except when you need it to wake the MCU from sleep.
Sorry for taking over the thread for this small side discussion, but I considered it better than starting a new thread just for this.
Seems entirely relevant to me.