We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All,
I am trying to interface a simple 4x3 keypad i have never used 2051, i am using port 3. The pins i am using are p3.0,p3.1,p3.2,p3.3,p3.4,p3.5,p3.7
this is the basic code i am using
unsigned int keyData() { unsigned int i,j; P3=0xf0; i=P3; P3=0x0f; j=P3; return (i+j); }
call
switch(keyData()) { case 55: // Key 1 LEDR = 1;BUZZ = 1; key_delay();key_delay(); goto start; break; . . .}
I am considering p3.6 =0; i have put two pull ups to p1.1 and p1.0 i was told to do so when i asked my problem to a person i know.
i do not understand the working of the AIN pins may be that is where i am going wrong.
Please help.
Thanks, Ajay
http://www.keil.com/forum/docs/thread10690.asp