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

Implementig I2C in AT89C51

Hi, has someone tried implmenting I2C in AT89C51? Did it work? If yes, can you give me some tips in order to get a succesful communication,please?

Thanks for your help

Parents
  • Since both I2C and the AT89C51 have been around for decades, I think it's (almost?) inevitable that many people have done this.

    They have probably also written about it on the interwebs, too ...

    "give me some tips in order to get a succesful communication"

    OK:

    1. For a start, you will need to understand I2C - so study the I2C Specification:
    www.nxp.com/.../UM10204.pdf

    2. Check for Application Notes from the chip manufacturer.

    3. google "bit-bang I2C"; "software I2C"; etc.

    But why not simply use a chip which has I2C hardware ... ?

Reply
  • Since both I2C and the AT89C51 have been around for decades, I think it's (almost?) inevitable that many people have done this.

    They have probably also written about it on the interwebs, too ...

    "give me some tips in order to get a succesful communication"

    OK:

    1. For a start, you will need to understand I2C - so study the I2C Specification:
    www.nxp.com/.../UM10204.pdf

    2. Check for Application Notes from the chip manufacturer.

    3. google "bit-bang I2C"; "software I2C"; etc.

    But why not simply use a chip which has I2C hardware ... ?

Children