how to detect rising (or falling) pulse edge from pushbutton input avoiding debounce

Status
Not open for further replies.

DEV123

Member level 2
Joined
Feb 28, 2009
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,583
Hi all,
How to detect rising (or falling) pulse edge from pushbutton input avoiding debounce. Code in C programming is helpful for me. Or algorithm.....
 

Using what hardware?
What chip?
What compiler?

You really need to provide more info to get a useful response.

jack
 

PSoC CY8C29466 24PXI is the chip , psoc designer 5 is the tool. Thanks for response
 

the algorithm:
sense the first active edge(rising or falling)
delay 10 to 20 mS
again sense . if it is in reqd level ,
take it as valid input.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…