Button Debounce on AVR Microcontrollers A simple example of button debounce on AVR using a timer in CTC mode. Read the explanation on the short circuit audio website.