2 Replies Latest reply on Jun 2, 2016 10:49 PM by JoMe_264151

    Debouncer using LFCLK? Wake up from Deep Sleep

      I'd like to wake my PSOC4BLE system from deep sleep using a push button switch. The button, when pressed, grounds a pulled-up GPIO pin. I want to generate an interrupt when the button is pressed, and wake the system.


      I normally debounce the switch in code, or with the Debounce 1.0 component from the library.  I am following the debouncer example in the PSOC examples library, where the isr connects to the debouncer output. 


      The Debouncer requires a clock input, but I only have access to the HFCLK as my reference clock. This is shut down in deep sleep, so the debouncer does not run, and therefore the interrupt is not triggered when the button is pressed. Is there a way to select the LFCLK? I only have access to the Auto and HFCLK in the drop-down when configuring the Debouncer component.


      If there isn't a way, what is a good way of debouncing when waking from deep sleep?


      Thanks in advance.