2024-05-30 02:14 PM
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.
2024-06-24 06:45 PM
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.