1 2 Previous Next 15 Replies Latest reply on Jun 26, 2018 8:01 AM by epr_1639216 Go to original post
      • 15. Re: switch debounce

        Change it so that the button interrupts fire an ISR directly. Then, when a button interrupt occurs, you can set a 1 ms timer to check the button for 10 presses or so and determine if the button is bouncing or not. Then, once you determine whether the button is no longer bouncing, you can turn off the 1 ms timer and the device can go back into deep sleep.

        1 2 Previous Next