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 Bus

Hi,
I'm trying to comunicate with an external EEPROM like PCF8582 with the uC LPC1115, but I've to understand a thing: When I use the function I2CEngine(), how can I know when the transmission has finished and if all goes well?
Thanks.

Parents
  • Ok, but the problem is that I set the START bit and the I2C routine goes to code 0x08 that's correct, load the Buffer with the Slave Address, if the Slave is connected the I2C routine goes to state 0x18 that's correct, but if the Slave isn't connected on I2C Bus, the I2C routine does not go in state 0x20 (NOT ACK received).. Why?

    Thanks too much.

Reply
  • Ok, but the problem is that I set the START bit and the I2C routine goes to code 0x08 that's correct, load the Buffer with the Slave Address, if the Slave is connected the I2C routine goes to state 0x18 that's correct, but if the Slave isn't connected on I2C Bus, the I2C routine does not go in state 0x20 (NOT ACK received).. Why?

    Thanks too much.

Children