CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help with 4x3 keypad library

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ZeroF877A



Joined: 17 Mar 2008
Posts: 6

View user's profile Send private message

Help with 4x3 keypad library
PostPosted: Mon Mar 17, 2008 2:41 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Mar 17, 2008 2:46 pm     Reply with quote

Quote:
I'm not sure how is the keypad physically connected to the PIC.

These threads talk about how to connect the keypad to the PIC:
http://www.ccsinfo.com/forum/viewtopic.php?t=21852
http://www.ccsinfo.com/forum/viewtopic.php?t=25488
http://www.ccsinfo.com/forum/viewtopic.php?t=23467

If that doesn't help, then post the manfacturer and part number of
your keypad. If possible, post a link to the data sheet for it.

If you are using a board that has a built-in keypad, then post the
above information for that board.
ZeroF877A



Joined: 17 Mar 2008
Posts: 6

View user's profile Send private message

PostPosted: Mon Mar 17, 2008 3:00 pm     Reply with quote

PCM programmer wrote:
Quote:
I'm not sure how is the keypad physically connected to the PIC.

These threads talk about how to connect the keypad to the PIC:
http://www.ccsinfo.com/forum/viewtopic.php?t=21852
http://www.ccsinfo.com/forum/viewtopic.php?t=25488
http://www.ccsinfo.com/forum/viewtopic.php?t=23467

If that doesn't help, then post the manfacturer and part number of
your keypad. If possible, post a link to the data sheet for it.

If you are using a board that has a built-in keypad, then post the
above information for that board.


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!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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