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: 循环读取寄存器时出现错误

Part Number: INA226

ADC转换时间按默认1.1ms设置,4ms一个周期。一个周期内先读电压寄存器,然后读功耗寄存器。连续读1000次,中间会有一两次读取失败。通过分析仪发现,具体失败是在设置电压寄存器后,发restart无法发送。

软件中在写寄存器与读寄存器之间加2ms延时后,再循环读取无问题。

请看下是否因为不停在两个寄存器切换,导致系统反应不过来。