Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

pic 3 times problem

Status
Not open for further replies.

cagri35

New Member
hi everyone. i want to ask something. for ex. i have a pic microcontroller and when I press the button which is connect to input pin, one of the pins sets output. but I want that output pins sets as out when I press the button 3 times. how can I do that ?
 
Read the button in ta loop and set a counter when counter equal 3 set the port high make sure you debounce the button to get a clean press. Or your 3 presses will happen so fast you'll think it was just one press.
 
Status
Not open for further replies.

Latest threads

Back
Top