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 support@ccsinfo.com

I2C and broadcasting

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



Joined: 04 Dec 2006
Posts: 14

View user's profile Send private message

I2C and broadcasting
PostPosted: Thu Mar 01, 2007 7:48 pm     Reply with quote

Hi,
I would like to know if I could be broadcasting a i2c_write during a loop? To be clear, I am running 3 ic’s as slaves and one master. The problem that I am facing is that sometime one or all three ics will go in to a loop and I need to send the master the status (on the slave IC) which is in a loop. I am guessing that I can’t broadcast because of the structure of the I2C.

If I can’t broadcast, can I use an interrupt, the question regarding this is: if an interrupt signal is detected and goes to that function, and when that function is exited will it resume the position of the code it was before the interrupt.
Thank you
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Mar 02, 2007 12:13 am     Reply with quote

Yes, that's how an interrupt works.
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