Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hi-tech routine for debouncing a button

Status
Not open for further replies.

nebisman

Full Member level 4
Joined
Apr 13, 2002
Messages
226
Helped
10
Reputation
22
Reaction score
9
Trophy points
1,298
Activity points
1,849
please send a routine for do it

Thanks nebisman

:=)
 

There are many solutions to your problem depending on just what use you have in mind. If it is simply to take a voltage high or low then use a simple 10K feed resistor to the switch and a .1uf across the switch contacts. If a more elaberate solution is needed you will have to configere an IC or use a dedicated chip.

Barrybear
 

assuming button goes low when pressed,

if(!button)
{
delay(30mS);
if(!button)
{
do button routine;
while(!button) //wait for button release
;
}
 

Thanks friends:

My need is a software solution without software overhead.

I need a routine for keyscan too, which can produce software overhead because it only executes at starting program
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top