AnsweredAssumed Answered

Strange problem with I2C and timers

Question asked by Ivan Raykov on May 4, 2018
Latest reply on May 8, 2018 by AvaTar

Hi,

I have a board with STM32F030K6 and an sensor wired on I2C. When using the sensor in polling mode (no interrupts) everything is working fine and i am able to read data and send it trough UART.

Problem starts when I want to use a timer to generate a delay, because sensor need 20-30 minutes to stabilize readings.

I am trying to use TIM14, which is independent timer, but when it is on, and counting, the I2C transaction fail and i gent an error response from the sensor.

If I disable the timer, everything is working fine.

Can anyone help?

Outcomes