Hi all,
This is regarding I2C slave, how can i switch between a recive and a transmit pahse.
Thanks in advance, praveen
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
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.