This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i2c interfacing problem

we r interfacing microcontroler 89c51 with eeprom 24c02 using i2c interface..plz send code in assembly language for read and write opreration

Parents
  • 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.

    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

Reply
  • 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.

    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

Children