Hi, I am using MPU9150 sensor with dsPic33fj128GP802.I have just started to learn about I2C.I tried checking the value of WHO_AM_I register.I use Mplab in debug mode to check the output.I get 0x68(correct result) only sometime.If I reset and check the result again I get 0XFF or 0x00 or any values most of the time.I am not sure what the problem would be.Can you suggest how can I approach to resolve this problem so that every time I check the value,I get the correct result(0x68).
Looking forward to your help.