如图VLED_OUT1'(IN+)是电源输入,VLED_OUT1(IN-)是负载接口,工作时发现在不接入负载时,current register和shunt voltage register的数据都是16进制0xffff,只要是空载的情况不管打开电源还是断开电源都是一个的数据。在接入负载电源打开的情况下current register的数据是正常的。不接负载的时候电流应该为0,为什么数据是0xffff?我应该怎么优化?
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.
去掉R54和R55后 current register和shunt voltage register的值还是0xffff 吗?0xffff 这相当于满幅输入了,您实测 INA226差分输入是多少?
看您的电路图,Rshunt电阻是2mΩ,根据datasheet 下面截图公式,Maximum Expected Current 是20A,可以计算Current_LSB=610uA/bit ,这里Current_LSB 您选择的是多少?
Calibration是0x990,对应的十进制数是2448,代入上述公式1,可以推导出您使用的 Current_LSB=1.046mA/bit,并不是整数值,建议您Current_LSB使用整数值计算,比如使用Current_LSB=1mA/bit,可以计算出Calibration 寄存器值是2560=0xA00