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 End of transmission

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



Joined: 26 Nov 2008
Posts: 8

View user's profile Send private message

I2C End of transmission
PostPosted: Wed Jan 29, 2014 7:27 am     Reply with quote

I've been trying to use the stop bit to determine that a I2C transmission has ended. What i found is that sometimes i can see the stop bit set, most of the time i cannot. What is the current method to determine the end of a I2C transmission?
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sun Feb 02, 2014 9:58 am     Reply with quote

Quote:

I've been trying to use the stop bit to determine that a I2C transmission has ended.


The stop sequence it is not a "command" in order to control a data flux, start and stop sequences mark the beginning and end
of a transaction with the slave device in an I2C Protocol. The sequence to use each one, must be used only as stated by I2C protocol.

Quote:

What is the current method to determine the end of a I2C transmission?


It depends of the transfer sequence:
From Master to Slave
The master sends DATA and waits for acknowledge (A) from the slave. The master completes the byte transfer by generating a stop bit (P) (or repeated start).
From Slave to Master.
After the data is transmitted from the slave to the master the master sends the acknowledge (A). If instead the master does
not want any data more, it must send a not-acknowledge, which indicates to the slave that it should release the bus.
This lets the master send the STOP or repeated START signal.

Humberto
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