This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

INA226: An error occurred while reading the registers in loop

Part Number: INA226

Read bus voltage register(0x02) and power register(03) in loop,calibration register is set 2048 dec,other register is default.

The step is :set(02) read, set(03) read; set(02) read, set(03), read;set(02) read, set(03) read; ........

I want to loop 1000 times ,but there alway an arror occur after random loops.

  this is the total loop ,loop gap is 7ms 

 this is good step

 this is an error occured. Program cannot Start for SDA is HIGH,but SCL is low.

There is no other I2C device on the bus. MCU is C8051F340.