Other Parts Discussed in Thread: C2000WARE
Hello,
I am currently working on LSm9ds1 Imu sensor with TMS320F28069M micro controller. As no library available for this senosr. I created read write function for to read write register value . but i am facing some issue:
1. During communication SDA pin always high, (setting pin SDA and SCL output to variable and observe the variable in debug mode) does it mean my data is not transferring or receiving ? but SCL value changing .
Also I2CSTR -->NACK bit is 1 for first reading value after it set to zero it means that acknowledgement is received from slave device.
i2c for IMU sensor is :
init _i2c with :
I2CSAR -->0x68 for gyro sensor, then reading function:
1)start 2) slave address + W --> I2cSAR = D4 3) slave ack 4) slave subaddress 5) slave ack 6) start repeat 7) slave address + R -->I2CSAR = D5 8) slave ack 9) data 10)NMAK 11)stop
anybody have suggestion what mistake i am doing?


