push button with denouncing implemented | Cypress Semiconductor
push button with denouncing implemented
I have gott switch connected to Psoc5 and would like to turn on LED, whenever button is pressed, looking for project how to actually do it. I also would like to implement with debouncing circuit, so not sure how could I do that in cypress.
I tried something like this but doesn't work
volatile uint8 switchFlag = 0u;
switchFlag = 0u;
switchFlag = 1u;
Top Design is attached.. If any mistake then let me know.
Any help woud be great .