|
|
View previous topic :: View next topic |
Author |
Message |
ZeroF877A
Joined: 17 Mar 2008 Posts: 6
|
Help with 4x3 keypad library |
Posted: Mon Mar 17, 2008 2:41 pm |
|
|
Hello, I'm relatively new to CCS (I started 3 days ago actually). So far I have managed to work with the LCD library properly, but when trying to use the KBD library, one problem comes up... Thing is, I'm not sure how is the keypad physically connected to the PIC.
I've used keypads before, but those were 4x4 keypads using a .ASM library (Been working with assembly for about 9 months). So I decided to ask here before trying something like:
char kbd_getc(){
#asm
...
#endasm}
And I'm not even sure if that'll work!
Thanks in advice for any help I can get!
Oh, by the way, I'm working with a PIC16F877 @ 4Mhz, using the CCS C compiler 4.023 (So says the Compiler version thingy). The libraries are the standard ones that come along in the "Drivers" folder.
Last edited by ZeroF877A on Mon Mar 17, 2008 2:47 pm; edited 1 time in total |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
ZeroF877A
Joined: 17 Mar 2008 Posts: 6
|
|
Posted: Mon Mar 17, 2008 3:00 pm |
|
|
Actually, it works perfectly fine. Just in case, I tested it using PortB and the respective pullups, but in my case, I need to make it woth with PortD, along with the LCD screen in that same port. Should I add hardware pullups, or should I trust the library when it says:
// Make sure the port used has pull-up resistors (or the LCD) on
// the column pins
Thank you very much! |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|