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
Visit site
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.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…