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.

two simultaneous key to perform operation in PIC16F877

Status
Not open for further replies.

ecaits

Member level 4
Joined
Jan 16, 2014
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
579
Dear Friends,

Right now I am using 4 key to perform the operation like UP, DOWN, OK & EXIT in my project. But Now I want to perform EXIT operation by remaining three keys. How can I prepare the code???

I mean I want to reduce the keypad from 4 keys to 3 keys....

I am using PIC16F877 with hi-tech C compiler..

Thank you,
 

Hi,

A simple way would be to time the OK key, as short press = OK a long press = EXIT
 

If you have any form of feedback, you could make a double push. Ok=short push, as wp100 said above. Push and hold get a feedback, blinking a disply or LED, and then release and push again to exit, inside a time limit.

It all depends on what you prefer. The exit fiunction could also be automatic after a time when no keys are pressed.
How do you enter the function if you only have 3 buttons? Is there more than one function to select? And so on.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top