I am working on writing a program to calibrate by bq30z554-r1 design. I have successfully calibrated my 3 cell voltages, PACK voltage, BAT voltage, and CC Offset. I am following the SLUUA79 instructions in section 2. I'm having trouble with the Board Offset calibration. The equation given in the TRM is
Board Offset = (ADCcc - CCoffset)*CoulombCounterOffsetSamples
I am reading the following values (taking the average of 20 samples for ADCcc):
ADCcc = -112
CCoffset = -7104
CoulombCounterOffsetSamples = 64
This gives me a Board Offset value of 447,488 which is larger than the 2Byte size of the flash value. I have verified the CCoffset and CouloumbCounterOffsetSamples using the bqEasy software. I've used the bqEasy software to enter calibration mode, turn on the ADC out (0xF082), and read the ADC values through ManufacturerData. This gives me the same ADCcc value as my code is giving me.
Am I doing something wrong, or is the equation incorrect? The bqEasy software is able to calibrate the board offset properly.
Thanks for your help!