Author |
Message |
Topic: compiler produce EXTRA? |
Van
Replies: 2
Views: 13261
|
Forum: General CCS C Discussion Posted: Wed Nov 12, 2003 10:01 am Subject: compiler produce EXTRA? |
Thank you, PCM
it worked!
Van |
Topic: compiler produce EXTRA? |
Van
Replies: 2
Views: 13261
|
Forum: General CCS C Discussion Posted: Tue Nov 11, 2003 6:02 pm Subject: compiler produce EXTRA? |
Hi,
Could you please explain why CCSC produce extra lines:
.................... output_low(PIN_D0);
0166: BSF 03.5 why this line is produced?
0167: BCF 08.0 why th ... |
Topic: can not get data from i2c_read() |
Van
Replies: 7
Views: 17225
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2003 4:41 pm Subject: can not get data from i2c_read() |
That is it, the problem has sovled
Thank you, PCM programmmer, for your time and knowledge
Van |
Topic: can not get data from i2c_read() |
Van
Replies: 7
Views: 17225
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2003 3:44 pm Subject: can not get data from i2c_read() |
int read_ext_eeprom(long int address)
{
int data, data1;
i2c_start();
i2c_write(0xa0);
i2c_write(hi(address) );
i2c_write(address);
i2c_start();
i2c_write(0xa1);
data = i2c_read(); ... |
Topic: can not get data from i2c_read() |
Van
Replies: 7
Views: 17225
|
Forum: General CCS C Discussion Posted: Thu Oct 02, 2003 3:10 pm Subject: can not get data from i2c_read() |
Hi,
After I wrote to EEPROM, I would like to read it back, but I can not. What I got back is just 0xFF, here is the code:
void init_ext_eeprom()
{
output_float(EEPROM_SCL);
output_float ... |
|