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

I2C and multi master and bus collision

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



Joined: 10 Aug 2007
Posts: 7

View user's profile Send private message

I2C and multi master and bus collision
PostPosted: Tue Dec 11, 2007 3:23 pm     Reply with quote

Hi,
I have a few questions on multi master and bus collision.
My project: I have two PIC 18F452 and EEPROM 24FC1025 who communicate on I2C.
The first PIC write EEPROM at address 0X00 and the second PIC read the data at address 0X00.
In my code I have adding the interrupt INT_BUSCOLL. In the interrupt code I reset the BCLIF bit.
My first question is which code I can add?

In the manual, the function I2C_write return 2 when there are collisions.
My second question is how to use the I2C_write function when there are collisions.

Thanks for your answers.
_________________
made by www.nopnop.fr
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