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

How make a LCD menu
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Wed Jan 12, 2005 2:49 pm     Reply with quote

Quote:
How can i use this code like a driver.c

If you want this code in a separate file, just put it in one and use a #include "driver.c" in the main c file. Just look at the examples and you will find plenty of examples of doing this.

Quote:
set the control lines (DATA, CLOCK) from a main source code

First you need to define them
Code:

#define DATA  PIN_B1
#define CLOCK   PIN_B0

This could be in the main c file or in the driver.c file. To control them, just use commands like:
Code:

  output_low(CLOCK);
  output_high(CLOCK);


Quote:
how i can share the RS and DATA lines without imcompatibility in PIC C, ex: portb.1 = RS and portb.1 DATA?

You can define both the RS and Data to be PIN_B1.
Rafael
Guest







PostPosted: Sun Apr 02, 2006 3:25 pm     Reply with quote

Hi...

Is there some ready example in ccs to simple output something using a 16F877a or 16F628 in a 4x40 display? These codes do not make any reference to the enable2 pin...

Thanks!!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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