Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

[SOLVED] 8051F330 C Keypad programming.

Status
Not open for further replies.

Qrios

Newbie level 6
Joined
May 3, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,356
View attachment 83645

As you can see, my JP1( Keypad ) is connect to P.1 of my IC. However, the 5 inputs are used to get the signals from the 4 x 4 keypad. Out of the 5 inputs, 1 input is connected to another IC which will send me a high or low signal, high when keypad is in use, low when it is not. So my question is how will I be able to get the numbers pressed from keypad using these 4 pins? I'm using C language, SDCC compiler. Please p.m. me if you need anymore information.

Thank you in advanced.
Capture.PNG
 

Joined
Jul 25, 2012
Messages
1,192
Helped
170
Reputation
340
Reaction score
161
Trophy points
1,343
Activity points
0
I think P1.0, P1.1, P1.2, P1.3, and P1.4 is connected to keypad.
 

Qrios

Newbie level 6
Joined
May 3, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,356
Yes. They're connected but since I didn't use any other P1 port, I'll just use P1 as a whole.
 

Joined
Jul 25, 2012
Messages
1,192
Helped
170
Reputation
340
Reaction score
161
Trophy points
1,343
Activity points
0
Will you use all the 8 pins of P1 for keypad? Then connect 4 rows to P1.0 - P1.3 and 4 columns to P1.4 - p1.7
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top