3x4 keypad scanning

Status
Not open for further replies.

nenayd

New Member
I Found this site:
http://www.massmind.org/techref/microchip/3x4Key-4bLCD-Lock.htm

is this the part of scanning??

BSF PORTA,0 ;Poke column 1 high
CALL DETERMINE ;Check PORTB lower nibble for change
BCF PORTA,0 ;Clear column 1
BSF PORTA,1 ;Poke column 2 high
CALL DETERMINE ;Check PORTB lower nibble for change
BCF PORTA,1 ;Clear column 2
BSF PORTA,2 ;Poke column 3 high
CALL DETERMINE ;Check PORTB lower nibble for change
BCF PORTA,2 ;Clear column 3
GOTO TESTDATA ;Loop, check everything again
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…