AnsweredAssumed Answered

HAL_I2C_Master_Sequential_Transmit_IT problem

Question asked by Wojciech Jasiewicz on Nov 7, 2017
Latest reply on Mar 28, 2018 by Doug Kehn


I have problem with i2c device which requires time courses as showed below.

This picture shows writing data to i2c device,  in this case ltc2943. In first approach I try to do this in 2 steps, send address and register in HAL_I2C_Master_Transmit and next by HAL_I2C_Master_Receive get 2 bytes of desired data. I notice that problem is depends on stops bits after each of steps. The ltc2943 device forgets register address transmitted in first step and in second step it return data from random place in memory. I try to use HAL_I2C_Master_Sequential_Transmit_IT but it doesn't return correct data too. I need to know if in HAL software , in i2c section is a function which after sending register data, doesn't set stop bit.


Thank you for our answer.