// Wait for key to be pressed and released
do
kp = Keypad_Key_Click(); // Store key code in kp variable
while (!kp);
// Prepare value for output, transform key to it's ASCII value
switch (kp) {
case 1: kp = 249; break; // 1 // Uncomment this block for keypad4x4
case 2: kp = 164; break; // 2
case 3: kp = 176; break; // 3
case 4: kp = 136; break; // A
case 5: kp = 153; break; // 4
case 6: kp = 146; break; // 5
case 7: kp = 130; break; // 6
case 8: kp = 131; break; // B
case 9: kp = 248; break; // 7
case 10: kp = 128; break; // 8
case 11: kp = 144; break; // 9
case 12: kp = 198; break; // C
case 14: kp = 192; break; // 0
}
P0=kp;
} while (1);
}
I have tried it in Labcenter Proteus and found the following Result.
Whenever I start Debugging[Playing] it the Display is 7 [As for Interrupt].
But My question is why this happens? I haven't made any Interrupt Signal yet.
What is the way to Stop this?
hi
have u interfaced keypad throughh 74c922 controller and can u give me the code u prepared for this "keypad interfacing and interrrupts "
actually my concepts are weak in interrupts so sorry i may not be able to help u...
and m trying to interface a 3x5 keypad with 89s52 in ma new project and facing a lot of problem in it..
if u can send me ur code may be i get some help from it...
thanks in advance...
hi
have u interfaced keypad throughh 74c922 controller and can u give me the code u prepared for this "keypad interfacing and interrrupts "
actually my concepts are weak in interrupts so sorry i may not be able to help u...
and m trying to interface a 3x5 keypad with 89s52 in ma new project and facing a lot of problem in it..
if u can send me ur code may be i get some help from it...
thanks in advance...