I want to connect more than one peripherals to 8051 usind I2C.Can any body help me regarding code
http://www.keil.com/forum/docs/thread16166.asp
Sorry, but your main() implementation seems a bit empty. You really have to post a bit more code than that if you want someone to help you find a problem with the code.
"...if you want someone to help you find a problem with the code."
Or, in fact, if you want your code to do anything at all!