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 testing in Keil

Hi All,

I have lpc1768 evaluation board and i am trying to test i2c0/1 on Keil before actual testing on board.

I am able to send START bit and I am able to see START transmission completed event. After this when I write slave address (0x50), I am getting NACK event in status register.

Is it possible to test i2c on keil ? If yes how do I select slave ?

Please let me know.

Best regards,
Rayagonda

Parents
  • Double check the slave address, some implementations you might need to shift the address bits as they appear as the top 7 bits in the byte transmitted over the wire.

    If none of the addressing works, the device could simply not be functioning.

    Look at the signals with a scope, and compare the bit positions with those in the data sheet for the slave part.

    This type of work requires attention to detail, which means reading and understanding the documentation for the parts involved and how they interact.

Reply
  • Double check the slave address, some implementations you might need to shift the address bits as they appear as the top 7 bits in the byte transmitted over the wire.

    If none of the addressing works, the device could simply not be functioning.

    Look at the signals with a scope, and compare the bit positions with those in the data sheet for the slave part.

    This type of work requires attention to detail, which means reading and understanding the documentation for the parts involved and how they interact.

Children
No data