I2C slave

May 10, 2005 3 Replies

Hi all,



This is regarding I2C slave, how can i switch between a recive and a transmit pahse.



Thanks in advance, praveen


If I understand your question, in I2C the Master initiates all transmissions, send and receive. The slave must respond to the Master, so your slave's interrupt service routine ( or whatever) needs to check for a read or write flag on reception of a start command from the Master. On the SMBus, there can also be multiple Masters - not sure if I2C supports this or not.

Bob

http://www.semiconductors.philips.com/markets/mms/protocols/i2c/

The slave responds to the master initiating a read or write cycle - i.e the master either tells the slave it's going to be sent data or requests the slave to send data to the master.

You seem to be having a lot of trouble understanding I2C !

Graham

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required