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.

Help me write a program for 8051 to act as debounce switch?

Status
Not open for further replies.

NTFS

Member level 3
Joined
Apr 6, 2004
Messages
66
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
565
Debounce

Hello my dears

I want to write a program for 8051 to act as a debounce switch.
would you help me?


regards,

NTFS
 

Re: Debounce

Check the port for some time (e.g. 10mSecs) if the voltage is constat then the switch has been pressed.

Then go to your subroutine (do not check the switch port until about 50mSec later).
 

Debounce

Just search google for: debounce 8051
The you will find lots of examples.
Please always try to find information with google before asking questions here.
Obviously you didn't try that first.

Try to read here as well (also found with google): https://www.rentron.com/Myke6.htm
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top