JiggyPepper
New Member
Guys I haven't any experience with using a keypad so please bear with me and my possible noobish questions.
Basically, I am trying to interface a keypad with a microcontroller.
MikroC will be used for the codes.
MCU is PIC16F877A.
Keypad is 4x4.
Since the keypad is serial, it'll be connected to the Rx Terminal of the PIC. But MikroC's keypad library seems to be for a parallel 4x4 keypad. Besides the initialization of the UART port, I'm at a lost.
I want to write conditions such as if key 'a' is pressed, execute this. But I'm having trouble with "identifying" the "variables" sent by the keypad (variable to use in my if statements). Can anyone enlighten me on this, or serial keypad help in general will be much appreciated.
Sorry if this might sound stupid or lacking, I'm relatively new to programming and MCUs.
Basically, I am trying to interface a keypad with a microcontroller.
MikroC will be used for the codes.
MCU is PIC16F877A.
Keypad is 4x4.
Since the keypad is serial, it'll be connected to the Rx Terminal of the PIC. But MikroC's keypad library seems to be for a parallel 4x4 keypad. Besides the initialization of the UART port, I'm at a lost.
I want to write conditions such as if key 'a' is pressed, execute this. But I'm having trouble with "identifying" the "variables" sent by the keypad (variable to use in my if statements). Can anyone enlighten me on this, or serial keypad help in general will be much appreciated.
Sorry if this might sound stupid or lacking, I'm relatively new to programming and MCUs.