I don't understand how 4*4 matrix keypad works. first I thought why not just try to understand how only one switch works in a matrix keypad.
I assume PIC microcontroller and V+ is 5V DC.

Note - This may be not a good way to understand matrix keypad but this is my one attempt to understand matrix keypad
I assume PIC microcontroller and V+ is 5V DC.
1. Is following picture is useful to understand logic to read one switch in matrix keypad?
2. How to know if switch have been pressed ?
3. What will the input pin of microcontroller ?
4. What will the output pin of microcontroller ?

Note - This may be not a good way to understand matrix keypad but this is my one attempt to understand matrix keypad