we r interfacing microcontroler 89c51 with eeprom 24c02 using i2c interface..plz send code in assembly language for read and write opreration
Rather than writing in ASM it is easy to write in C.
And please see the timing diagram in the datasheet. It is given very clearly about the start, stop , write and read operations.
So follow the timing diagram and write the code..
Still u cudnt solve then send a mail to: ezyreach@gmail.com
i will give u the code in C
contradiactory, you can not do timing in C.
however it is perfectly feasible to write the maijn body in C and have a separate .a51 modyle with the timing routines.
Erik
Because I'm a newbie...what do you mean by timing? Delay? How is this usually done precisely in ASM? Any examples?
what do you mean by timing
a previous post :"see the timing diagram in the datasheet"