Tuhin
Newbie level 2

x-y matrix keypad
hi everyone,
i've been trying to program a matrix keypad and an LCD using AT89C52 microcontroller.i am finding very cumbersome to program a keypad and LCD simultaneously. My questions are as follows:-
1)For every key pressed once, do i have to store the decode logic in a register?like i mean if i wan't to get a numeric value "90" from the user, the two keys will be pressed once and each time i'll have to store them individually in a register. Then how do i go about decoding those two register values to get "90" as a number finally?
2)Programming a keyboard using National semiconductor MM74C923 16,20 key encoder seems to be easier, but thereare 5 outputs from the encoder to the microcontroller for a 20 key encoder. Now, how do i interpret those outputs. The data sheet is ambigious. plz help!!!
3)While entering data, how do i display it simultaneously on a LCD and how do i program for function key on the matrix keypad for instance "Enter" and "delete" keys?
hi everyone,
i've been trying to program a matrix keypad and an LCD using AT89C52 microcontroller.i am finding very cumbersome to program a keypad and LCD simultaneously. My questions are as follows:-
1)For every key pressed once, do i have to store the decode logic in a register?like i mean if i wan't to get a numeric value "90" from the user, the two keys will be pressed once and each time i'll have to store them individually in a register. Then how do i go about decoding those two register values to get "90" as a number finally?
2)Programming a keyboard using National semiconductor MM74C923 16,20 key encoder seems to be easier, but thereare 5 outputs from the encoder to the microcontroller for a 20 key encoder. Now, how do i interpret those outputs. The data sheet is ambigious. plz help!!!
3)While entering data, how do i display it simultaneously on a LCD and how do i program for function key on the matrix keypad for instance "Enter" and "delete" keys?