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

Reading multiple bytes from the slave using I2C

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



Joined: 18 May 2007
Posts: 2

View user's profile Send private message

Reading multiple bytes from the slave using I2C
PostPosted: Sun May 20, 2007 7:51 pm     Reply with quote

I need to write a program using PIC18F452 as the master to read multiple bytes from the slave using I2C communication. Does anyone have the code for this? I have read the other posts on I2C communication but have not found what I have been looking for. A quick reply would be really appreciated. Thank You
Ttelmah
Guest







PostPosted: Mon May 21, 2007 2:09 am     Reply with quote

EX_SLAVE.C, allows a single byte to be transfered from a specified address. Simply have it increment the address for subsequent calls to state 0x80, and it will allow up to 16 successive reads.

Best Wishes
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