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
What are you expecting here?
I2C is a communication link - it requires interactions between both the master and the slave.
Keil provides a simulation of the microcontroller - but not the other end of the link.
Maybe you could look at using debug functions:
http://www.keil.com/support/man/docs/uv4/uv4_debug_functions.htm
But, to be honest, I really doubt it's worth it.
With readily-available, cheap dev boards and on-chip debug, why bother with simulation? Far easier to just do it in real life!
Or, if you must, look at something like Proteus: www.labcenter.com/.../