hi sir, i'm using lpc3250, with this i'm interfacing LM81 and it is i2c protocol ,while reading the buffer values of i2c it is going to the while loop means strucking or hanging there it self. Thanks & Regards G. Madhu krishna
"same code i'm working with eeprom (ATC64k) and it is also i2c protocol and it is working properly"
Think of it like a telephone line: A telephone line can be used by a person to call another person, or by a fax machine to call another fax machine, or by a modem to call another modem.
In all cases, the telephone line is the same and the procedure for accessing it is the same - but the stuff that's exchanged over the link is different.
Similarly, I2C provides a connection that can be used by both your EEPROM and your LM81 - but you also need to send the right stuff over that connection.
It is also possible that your basic I2C is faulty - but in a way that just happens not to matter with the EEPROM.