|
|
View previous topic :: View next topic |
Author |
Message |
David Lu Guest
|
Compile problem for external I2C EEPROM |
Posted: Mon Jun 16, 2003 7:09 pm |
|
|
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 |
Posted: Tue Jun 17, 2003 3:25 am |
|
|
:=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 |
Posted: Tue Jun 17, 2003 5:45 pm |
|
|
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 |
|
|
|
|
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
|