View previous topic :: View next topic |
Author |
Message |
eroups
Joined: 25 Jul 2010 Posts: 1 Location: INDIA
|
Lcd.c driver file |
Posted: Sun Jul 25, 2010 12:32 pm |
|
|
Dear friends,
I have lcd.c driver file. In that file, PortD is used.
How can I change this file to use PortB ?
Please help me _________________ ANOOP |
|
|
denis_11
Joined: 13 Jul 2010 Posts: 45
|
|
Posted: Sun Jul 25, 2010 5:13 pm |
|
|
post your lcd.c driver file and see what we can do... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jul 25, 2010 5:36 pm |
|
|
Based on his description, he must be using the CCS lcd.c driver.
To force that driver to use PortB, you just need to add the line
shown in bold below. Put it above the #include line for lcd.c.
Quote: |
#include <16F877.h>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#define use_portb_lcd TRUE
#include <lcd.c>
|
|
|
|
|