1 Reply Latest reply on Dec 31, 2013 4:03 AM by user_1377889

    Hardware Debounce, Single Click, Double Click, and Long Press Detection


      Hello All,


      I have been working on getting a hardware solution to single click, double click, and long press detection operational. My thought process was to do the following:


      Switch (resistive pull up) -> Timer -> ISR (Please see attached image. There appears to be no way for me to show it in the editor). 


      In this way, a double click would be fired off if there were two clicks before the timer period expired. A single click would be when there is no double click. I figured there might already be an FPGA circuit or similar solution to this problem. Does anyone have any input?


      P.S. I considered doing a software solution, but I thought it would be better for the CPU to only have to respond to ISRs, keeping it in sleep mode longer.