I want to connect more than one peripherals to 8051 through I2C.can anybody help me regarding code thank u
Are you sure you mean C251 rather than C51?
"I want to connect more than one peripherals to 8051 through I2C"
Yes, that is the fundamental purpose of the I2C bus - see: www.nxp.com/.../UM10204.pdf
"can anybody help me regarding code"
Help you in what regard, precisely?
What is wrong with the very, very many examples, app notes, etc already available all over the internet?
I want to connect more than one peripherals to 8051 through I2C.can anybody help me regarding code There is an enormous amount of I2C related help out there. Why do you need professionals to do so? en.wikipedia.org/.../I²C Is a reasonable start with links. In any case try asking where to look or... try looking granted google and yahoo search engines are over a bit biased you should find an inordinate amount of information.
If you are looking for I2C IC's On, NXP and TI all have a large offering. also look under SMB very similar bus (interchangeable almost).
Stephen