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

Lcd.c driver file

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



Joined: 25 Jul 2010
Posts: 1
Location: INDIA

View user's profile Send private message Send e-mail

Lcd.c driver file
PostPosted: Sun Jul 25, 2010 12:32 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Jul 25, 2010 5:13 pm     Reply with quote

post your lcd.c driver file and see what we can do...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jul 25, 2010 5:36 pm     Reply with quote

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>
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