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

Compile problem for external I2C EEPROM

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







Compile problem for external I2C EEPROM
PostPosted: Mon Jun 16, 2003 7:09 pm     Reply with quote

Hi,
I use 16F877 connect with 24LC256, the program format
same as EX_EXTEE.C, but when compile the command below:
i2c_start();
i2c_stop();
i2c_read();
the compile can't working, there are display "Expect;"
on the bottom.
But, when I compile EX_EXTEE.C,these command can pass
the compile. But I don't know how can I do now.
Thanks!

David Lu
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515312
R.J.Hamlett
Guest







Re: Compile problem for external I2C EEPROM
PostPosted: Tue Jun 17, 2003 3:25 am     Reply with quote

:=Hi,
:=I use 16F877 connect with 24LC256, the program format
:=same as EX_EXTEE.C, but when compile the command below:
:=i2c_start();
:=i2c_stop();
:=i2c_read();
:=the compile can't working, there are display "Expect;"
:=on the bottom.
:=But, when I compile EX_EXTEE.C,these command can pass
:=the compile. But I don't know how can I do now.
:=Thanks!
:=
:=David Lu
Look at your #USE I2C line. In the EXTEE example, this is in 2402.c, which is included. Also check for balanced brackets, and correct ';' useage on the lines immediately in front of the i2c commands (the syntax checking in CCS, is not terribly informative as to where the fault is likely to be...).

Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515316
David Lu
Guest







Re: Compile problem for external I2C EEPROM
PostPosted: Tue Jun 17, 2003 5:45 pm     Reply with quote

Hi,
I find the problem is: must put #include <24256.c> line in front
of other #include command.
David
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515338
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