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

implementation of I2C on 89v51RD2

Hi all,
I am using 89V51RD2. I want to implement I2C bus on it for interfacing with E2PROM, RTC, and PN531.
How do I do it?
I got source code from a website for I2C implementation but it is of no use.
Can anybody will help out with bit banging. Please...

Parents
  • Thank you Erik.
    But I already implemented I2c by myself. E2PROM and RTC are working fine with it. But the problem is communicating with PN531. I get ACK from PN351 for each byte transferred to it. Also after sending 'Slave address + read bit' it gives ACK and then i never get expected Reply.
    Sometimes it does not give ACK also.

Reply
  • Thank you Erik.
    But I already implemented I2c by myself. E2PROM and RTC are working fine with it. But the problem is communicating with PN531. I get ACK from PN351 for each byte transferred to it. Also after sending 'Slave address + read bit' it gives ACK and then i never get expected Reply.
    Sometimes it does not give ACK also.

Children