Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Keypad on portA 18f1220

Status
Not open for further replies.

be80be

Well-Known Member
Seeing there is no weak pullups on portA of a 18f1220
So would it be a good ideal to pullup the columns with say a 20k resistor.
So that when you press a key it will go low.
 

Attachments

  • 18f1220keypad.PNG
    18f1220keypad.PNG
    10.9 KB · Views: 178
Yes, you need pullups on either your rows or columns. You don't need (mustn't have) the pull downs as the way you read the pad is by making 1 pin an output and setting it low. I.E. if you make A0 output and low then A3, 6 & 7 will be low if the top line of switches were pressed. A1 will give the next row and so on.

Mike.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top