Using MPLAB v3.55 with xc8 compiler. Extreme newbie when it comes to programming and I am trying to figure out a program that helps determine the key that's pressed on the 4x4 matrix keypad (MM74C922) encoder.
All row, column, and output (4bit) pins are connected to microcontroller ports.
Also unsure of another thing, for example, when the code decides that key 1 was pressed making the ABCD output 0000, how does that work in the code. Do I need to write code that says if key 1 is pressed then output=0000? Or is there no programming needed at all? Does it just give the appropriate output when a key is pressed and all you need to do is to connect the pins to the microcontroller? I am lost