i have interfaced EEPROM(24c64) with 89s52). but i can't understand what is the process in it. i know something about it. its having sda pin(pin 5) for serial data communication and scl pin (pin 6) for control signal. question: 1. how to do the read and write operation on it.
So - how much time have you spent reading up on I2C communication? That really is a very important initial step!
Your scl isn't control - it's clocking.
Another thing - why have you set this as generic? While I2C is a generic concept, the processor tends to matter - some chips have hw acceleration and some requires bit-banging.
And you mention 89s52 and stm32f051. Why does the summary claim a ARM Cortex chip, while the body text claims a 8051 chip? And exactly what chip do you mean when you mention pin numbers? And which package of that chip?