We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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.