This article helps you to understand how to implement I2C protocol to serial EEPROM with 8051. It also has sample source code in C for I2C interface.