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

Search found 5 matches
CCS Forum Index
Author Message
  Topic: Question about I2C
Student16

Replies: 4
Views: 13792

PostForum: General CCS C Discussion   Posted: Wed Jan 13, 2021 6:37 pm   Subject: Question about I2C
hmmmm I was thinking that, for example..

if(sensor == 1){
output_high(GROENE_LED0);
print_op_LCD(sensor);
delay_ms(1000);
output_low(GROENE_LED0);

The va ...
  Topic: Question about I2C
Student16

Replies: 4
Views: 13792

PostForum: General CCS C Discussion   Posted: Wed Jan 13, 2021 11:29 am   Subject: Question about I2C
Hi I have problems with I2C, I want to send an int value from the master to the slave and display this value on a LCD connnected to the slave.

But I am getting unexpected results (the LCD displays ...
  Topic: I2C writing multiple variables from slave to master
Student16

Replies: 6
Views: 17798

PostForum: General CCS C Discussion   Posted: Sun Jan 03, 2021 6:19 am   Subject: I2C writing multiple variables from slave to master
You want to send/receive 16 elements instead of 8.
for(i = 0; i < 7; i++){
sensorArray7 bytes
}

sensorArray7] = i2c_read(0); // Do a NACK on last byte read
...
  Topic: I2C writing multiple variables from slave to master
Student16

Replies: 6
Views: 17798

PostForum: General CCS C Discussion   Posted: Sun Jan 03, 2021 6:15 am   Subject: I2C writing multiple variables from slave to master
Two further comments.

In the I2C slave, state 0x80, should also do a read before the write.
Not doing so can give issues.
You also seem to be wasting a huge amount of actual space. Several
of yo ...
  Topic: I2C writing multiple variables from slave to master
Student16

Replies: 6
Views: 17798

PostForum: General CCS C Discussion   Posted: Sat Jan 02, 2021 10:32 am   Subject: I2C writing multiple variables from slave to master
Hi, I am stuck with a project.

With this project I have input pins on 1 16F877A (the slave) and I want to send these inputs to another 16F877A (the master).

I want to send these inputs using an ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group