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

PIC16F877 interfacing with LCD and keypad

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



Joined: 31 Jan 2006
Posts: 6

View user's profile Send private message

PIC16F877 interfacing with LCD and keypad
PostPosted: Tue Jan 31, 2006 11:06 am     Reply with quote

Hello. I have a little experience with CCS and PIC programming. I am now looking to interface a PIC16F877 with an 16x2 LCD and 4x4 keypad. I know that CCS has the lcd.c and kpd.c drivers and I've read quite a bit of the posts on here concerning this topic. What I'm wondering is if these drivers only pertain to certain LCDs and keypads? From what I can tell these drivers are fairly generic and can apply to various LCDs and keypads. I've notived that maybe the keypad driver may have to be updated a little to make it work with a 4x4 keypad. I'm about to purchase an LCD and keypad so I'd just like a little reassurance before purchasing these parts. Any guidance would be greatly appreciated. Thanks.
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Tue Jan 31, 2006 11:16 am     Reply with quote

As far as I know, all character lcd modules use the Hitachi 44780 controller chip, or a chip that is compatible with the Hitachi controller. All you have to take care of is the proper electrical and signal connections to the lcd. You also have to be certain that you correctly modify the lcd pin struct if you put the lcd's connections to the PIC on a port/pins other than the one in the driver.

If you want an interrupt-based 4x4 keypad driver, search the code library. I posted one a couple of years ago, and I still use that basic code whenever I have a project that requires a keypad or multiple buttons.

Hope this helps.
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