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: 1909
Posted: Tue Jan 31, 2006 11:16 am
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.
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