Tool/software:
Hello,
I'm trying to communicate to a target using I2C bus, but there is something odd I need to clarify.
How to read a byte from the target device using I2C: send start, send device address (write), receive ack, send register address, receive ack, send repeated start, send device address (read), receive ack, receive byte, send nack, send stop.
From a driverlib point of view, I'm trying to set up this transaction using DL_I2C_startControllerTransferAdvanced(I2C_ACCELEROMETER_INST,writeAddress,DL_I2C_CONTROLLER_DIRECTION_TX,0x01,DL_I2C_CONTROLLER_START_ENABLE,DL_I2C_CONTROLLER_STOP_DISABLE,DL_I2C_CONTROLLER_ACK_ENABLE),
but I got no reply. Analyzing the bus I found that a stop condition is sent anyway:
I followed the i2c polled example provided in MSPM0 SDK 2.02.00.05.
Target device is NXP's FXLS8964AF (on this evaluation board).