connecting a keypad to PIC16F877A

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
choy
Posts: 15
Joined: Mon Dec 26, 2011 7:59 pm
Has thanked: 5 times

connecting a keypad to PIC16F877A

Post by choy »

hello there!

my groupmates and i are having problems getting the keypad to work. we followed the connections based on this datasheet (http://www.matrixmultimedia.com/resourc ... .php?id=89). attached is a summary of the connections we made. by the way, the keypad is connected to port C on PIC16F877A.

Image

did we miss anything or did something wrong? program simulation in Flowcode is fine. thanks!

choy
Posts: 15
Joined: Mon Dec 26, 2011 7:59 pm
Has thanked: 5 times

Re: connecting a keypad to PIC16F877A

Post by choy »

we're unable to click anything on column 3. what are the possible reasons?

choy
Posts: 15
Joined: Mon Dec 26, 2011 7:59 pm
Has thanked: 5 times

Re: connecting a keypad to PIC16F877A

Post by choy »

we're unable to click anything on column 3. what are the possible reasons?

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: connecting a keypad to PIC16F877A

Post by JohnCrow »

Hi
Try this program, works on my EB006 V7 with a 16F877A
Simple keypad test-Port C.fcf
(7.5 KiB) Downloaded 310 times
1 in 10 people understand binary, the other one doesn't !

choy
Posts: 15
Joined: Mon Dec 26, 2011 7:59 pm
Has thanked: 5 times

Re: connecting a keypad to PIC16F877A

Post by choy »

JohnCrow,

thanks for the reply. i forgot to mention that we are not using e-blocks for testing this on hardware. we downloaded the program to the chip using Microchip's PicKit2. we didn't have problems downloading the program to the chip. we are just not certain if we followed the connections correctly or if we missed something. the keypad we are using is similar to the one on the datasheet, it's just that it's a mere keypad with 7 pins.

choy
Posts: 15
Joined: Mon Dec 26, 2011 7:59 pm
Has thanked: 5 times

Re: connecting a keypad to PIC16F877A

Post by choy »

hello,

we were able to get the keypad to work. the connections were correct, but our breadboard failed to do it's job. perhaps it's too old and we need a replacement. anyway, everything's working fine now. thanks!

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: connecting a keypad to PIC16F877A

Post by JohnCrow »

Great
Thanks for letting us know
1 in 10 people understand binary, the other one doesn't !

Post Reply