BQSTUDIO软件用IIC接口读取寄存器的值不对?
时间:10-02
整理:3721RD
点击:
如图,在软件界面上用IIC读取08寄存器中的电压信息,结果各种现象,有不成功的,有返回1F FF的,也有返回7FFF的, 值怎么都不对呢?
按照bq34z100EVM Wide Range Impedance Track Enabled Battery Fuel Gauge 文件上举的例子在读一次试试,
Read SBData Voltage (0x08)
– Start Register = 0x08
– Number of Bytes to Read = 2
– Press the Read button
– Date returned =8C 3C, which a byte swapped
– 0x3C8C = 15500mV, when converted to decimal
如果读出来还是不对,看一下电池的registers页面是否正常或者电池的I2C通讯是否正常。