Using a PIC to program keypad?

view full story

http://forum.allaboutcircuits.com – Hello, I was learning PIC BASIC language along with assembly, then I came up to a project which requires inputs of external keypad and the aim is to change the state of a particular port when 4 subsequent inputs of the keypad matches with the programmed. In short, a lock system with 4 number password. Also in the project it asks to "inform" whether or the numbers pressed were correct or not. Do you have any suggestions? I just have got blank trying to think how to make the computer realize that certain number matches certain bits. Please help me on this one! Thank you (Embedded)