cancel
Showing results for 
Search instead for 
Did you mean: 

Fixing I2C Master ACK Bit while reading from a slave

mohamed-amine
Associate II
Posted on August 22, 2014 at 15:38

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 !
0 REPLIES 0