J Pancake
Newbie level 2
Hi
Im really new at this so very thankful for any help.
Im using a pic16f877 and want to use a 4x3 keyboard. I understand that mikroc has a library to handle keyboards (interrupts) but it is made for 4x4 types. The example that microc has in it's example folder is also a 4x4.
They use this line to define the module:
// Keypad module connections
char keypadPort at PORTB;
// End Keypad module connections
But is doesnt work because i dont use all of B0-B7. B3 isnt doing anything on my set up.
Question is: How can i define the module connections so it fits my 4x3? What does this "char keypadPort at PORTB;" line really do?
Thank you in advance!
Im really new at this so very thankful for any help.
Im using a pic16f877 and want to use a 4x3 keyboard. I understand that mikroc has a library to handle keyboards (interrupts) but it is made for 4x4 types. The example that microc has in it's example folder is also a 4x4.
They use this line to define the module:
// Keypad module connections
char keypadPort at PORTB;
// End Keypad module connections
But is doesnt work because i dont use all of B0-B7. B3 isnt doing anything on my set up.
Question is: How can i define the module connections so it fits my 4x3? What does this "char keypadPort at PORTB;" line really do?
Thank you in advance!