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
Posted: Sun Jun 24, 2012 1:37 pm
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
Posted: Sun Jun 24, 2012 3:47 pm
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.
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.
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