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

GLCD Driver

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








GLCD Driver
PostPosted: Mon Dec 29, 2003 8:25 am     Reply with quote

Hello,

The GLCD driver for KS0108 is working okey in a 18F452. I would like to thiungs... One is to move the GLCD Data Port to PORTB. I have redefined the Control lines and also I would like to move the Data Port. The second thing is that I'm using MicroCode Studio Loader in another 18F452. How can I configure my program in PIC-C to accept this Bootloader. Thanks very much
Ezequiel
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Dec 29, 2003 1:28 pm     Reply with quote

Quote:
One is to move the GLCD Data Port to PORTB.

I assume you're using the CCS driver file, GLCD.C.

If you look closely at the code in that file, you will see several
lines where it calls the input_d() and output_d() functions.
Example:
Code:
   output_d(data);            // Put the data on the port


To change the driver to use Port B, you need to change those
lines to input_b() and output_b(). Make sure that you find
every line of code that needs to be changed. (Of course, this
assumes that you have moved all the control signals to a
different port, since the GLCD.C driver originally had them on
Port B).
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