cancel
Showing results for 
Search instead for 
Did you mean: 

Address set problem in I2C Communication

Omerbzkt
Associate

I'm trying to read data from my I2C sensor, the MLX90614 sensor, using a STM32F411CEU6. When I examined the MLX90614 datasheet, I saw that the I2C clock speed should be a maximum of 100kHz and I configured the clock accordingly. However, after the start condition is set, although I write the slave address to the I2C_DR register, I cannot get the address set flag. I leave the code I wrote below. Thank you if you help. Enjoy your work.

1 REPLY 1
Techn
Senior III

May be you can try with HAL libraries to program, so that the error detection is easier. Once logic is fully established you can test your register based prigramming. 

If you feel a post has answered your question, please click "Accept as Solution".