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.

switch time delay with microcontroller

Status
Not open for further replies.

yassin.kraouch

Advanced Member level 2
Advanced Member level 2
Joined
Jul 5, 2009
Messages
631
Helped
40
Reputation
80
Reaction score
40
Trophy points
1,308
Visit site
Activity points
5,094
Hi,
I have a push button, and i want to connect to a microcontroller, and i have two actions :
--long press
--short press
can i do this by only microcontroller and puch button ?
thanks
 

Yes. Connect Push button to an Interrupt pin (To avoid polling overhead). Start a timer upon interrupt. Use the timer value to determine whether it is a long/short press.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top