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.

bq34z100-g1电流校准

Other Parts Discussed in Thread: BQ34Z100-G1

使用MCU对bq34z100-g1进行校准,现在可以通过MCU对电压进行校准了,但电流校准一直搞不懂,特别是浮点数转换那里,有人说CC Gain的计算公式为:

CC Gain:   data flash raw data 0x7F71205C, EVSW reading with: 10.124

Raw data (0x7F71205C) -> first two byte is for exp gain. The exp is 0x7F -> 127, so gain:  (127-128-24) = -25 -> 2^(-25)

0x71205C OR with 0x80 = 0xF1205C -> convert into DEC and times 2^(-25) = 15802460*2^(-25) = 0.47095

CC Gain  = 4.768/x = 4.768/0.47095 = 10.124  (matches!) 

按照这样计算,确实可得到CC Gain的转换值,但有以下疑问:

1、(127-128-24)中为何要减去24?

2、CC Gain  = 4.768/x中为何要4.768除以x?