This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

simultanious keypad operation

2 identical modules are their. Each module having 8051,keypad and LCD.
what i have done in any of the keypad the same operation also should effect in the another module.
For EX: TWO modules ,one module having the key pad KP1 and the other module having the keypad KP2.
if i pressing the KP1 of Up button the same operation should perform in
KP2.

could you inform how can i handle this operation?

Regards ,
siva

  • Sorry, I don't understand.

    "one module having the key pad KP1 and the other module having the keypad KP2"

    Do you mean these are 2 different keypads - eg, from different manufacturers - but you want to make the behaviour the same?

    ie,

    if( kp1_is_fitted )
    {
       handle_kp1();
    }
    else
    {
       handle_kp2();
    }
    

    Or do you mean that you want the KP1 unit to inform the KP2 unit "some key has been pressed" and then you want the KP2 unit to react as if the corresponding key had been pressed on its own keypad?
    ie, KP1 effectively acts as a "remote keypad" for KP2?

    In that case, you just need to make your "keypress" handler independent of whether the "keypress" is received from the "local" keypad or the "remote" one...