AnsweredAssumed Answered

Fixing I2C Master ACK Bit while reading from a slave

Question asked by aminos on Aug 22, 2014
Hello,

I want my STM32F4Disco to communicate with an external ADC I2C, in reading mode, this last will send to the master 2 bytes !

The problem, and I don't know if it's one, the first byte sent by the slave MUST be ACKnowledged by the master, however the last and second one, MUST be NOT ACKnowledged by the master.

Does the HAL_I2C_Master_Receive routine does this automatically ? or How to enable and disable the ACK master bit while receving a byte from a slave ?

Thanks in advance !

Outcomes