saidutt
Member level 2
hi friends,
i am trying to analyse I2C protocol.i have doubts like,
1) master as transmitter and slave as receiver, flowing the frame format of I2C,
after sending device address master has to wait for the acknowledgement from slave.
if it doesn't get the acknowledgement from slave, the master has to send START bit and the DEVICE address once again. so to test it i have written a program interfacing with EEPROM.
but most of the programs on the net. they have written i a different manner.
like master is writing , reading the data from I2C bus and even acknowledgement is also done. but according to data sheet of I2C acknowledgement has to be done by the receiver(slave) if in case master is transmitting. i am totally confused .please help me out with this issue.
i have taken micro-controller as master and EEPROM as slave. And displaying on to the hyperterminal. it is not displaying the data read from EEPROM.
so please correct where am i wrong.:?::?::?:
i am trying to analyse I2C protocol.i have doubts like,
1) master as transmitter and slave as receiver, flowing the frame format of I2C,
after sending device address master has to wait for the acknowledgement from slave.
if it doesn't get the acknowledgement from slave, the master has to send START bit and the DEVICE address once again. so to test it i have written a program interfacing with EEPROM.
but most of the programs on the net. they have written i a different manner.
like master is writing , reading the data from I2C bus and even acknowledgement is also done. but according to data sheet of I2C acknowledgement has to be done by the receiver(slave) if in case master is transmitting. i am totally confused .please help me out with this issue.
i have taken micro-controller as master and EEPROM as slave. And displaying on to the hyperterminal. it is not displaying the data read from EEPROM.
so please correct where am i wrong.:?::?::?: