I have found a sample code for an 8051 microcontroller and programming it to read a keypad matrix. I need a little help understanding the code. Here is what i found:
here is the link to the code, i am just looking at the assembly code:
http://www.8051projects.net/keypad-interfacing/8051-programming.php
And I found the instruction set here:
http://www.atmel.com/dyn/resources/prod_documents/doc0509.pdf
I am having trouble understanding what the keyval equ 30H is doing and how the rows are being read from this. Is the, pressed bit 0H, just an assigned variable.
here is the link to the code, i am just looking at the assembly code:
http://www.8051projects.net/keypad-interfacing/8051-programming.php
And I found the instruction set here:
http://www.atmel.com/dyn/resources/prod_documents/doc0509.pdf
I am having trouble understanding what the keyval equ 30H is doing and how the rows are being read from this. Is the, pressed bit 0H, just an assigned variable.