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

KBD and LCD!

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



Joined: 24 Jun 2012
Posts: 1

View user's profile Send private message

KBD and LCD!
PostPosted: Sun Jun 24, 2012 6:00 am     Reply with quote

I want to connect 16X2 LCD and 4X3 keypad. After including the LCD.C and KBD.C file. Where should I made changes in pin configuration. In these drivers or in main C file.
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Sun Jun 24, 2012 1:37 pm     Reply with quote

Please give us some more clues.

I suggest you read the CCS forum guide.

Tell us which PIC, compiler version etc.

Mike
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 24, 2012 3:47 pm     Reply with quote

Quote:
Where should I made changes in pin configuration ? In these drivers or in main C file ?

You make them in the main C file, and place the #define statements
above the #include line for the driver file.

See my comments in this thread, which shows how to do it for the CCS
lcd.c driver file:
http://www.ccsinfo.com/forum/viewtopic.php?t=47663

See my comments in this thread, which shows how to edit your main
source file to set the i/o Port (PortB or PortD) for kbd.c:
http://www.ccsinfo.com/forum/viewtopic.php?t=44403&start=18

Preferably you should put the keypad on PortB, which has internal
pull-up resistors which you can enable (as shown in the link).
Put the LCD on some other port, such as PortD.
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