请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
部件号:INA226-Q1 我遵循了方程式1)和2)
计算出的Current_LSB,CAL值。
已将CAL值加载到寄存器-5
但寄存器读取上报告的电流乘以current_LSB似乎不正确
感谢您提出如何解决问题的建议
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.
我遵循了方程式1)和2)
计算出的Current_LSB,CAL值。
已将CAL值加载到寄存器-5
但寄存器读取上报告的电流乘以current_LSB似乎不正确
感谢您提出如何解决问题的建议
CAL = ROUND ((0.0.0512万 *(2**15))/(sun_ohms * maxcur_amps))
current_LSB = maxcur_ams/(2**15)
使用CAL加载REG-5
读取REG-1并联电压
RdData_S = RdData * 0.0025 ## mV
读取REG-2总线电压
RdData_B = RdData *.0.0125万 ##伏
读取Reg-3电流
Current = RdData * Current_LSB
读取Reg-4电源
功率= RdData * 25 * Current_LSB