I am trying to get rid of double keypress of the same key in the matrix keyboard that is scanned by the PIC 16F886 after it wakes up from sleep.
Not always but random times some of the key presses are detected two times. I think either a debounce or waiting for key release could help but cannot find a way to make it work.
After any key press a beep is generated to give feedback.
The 886 is in sleep and IOC is enabled to detect keypress of the matrix.
Then flag pressed is set and main routine takes over.
Attached is the program. Just delete the .txt extension.
Ioannis
RCT-100.pbp.txt
Bookmarks