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.

BQ40Z50: offset calibration

Part Number: BQ40Z50
Other Parts Discussed in Thread: BQSTUDIO, BQPRODUCTION,
I have developed routines to calibrate the coulomb counter offset, board offset, capacity gain and cc gain. I noticed that the read back is a little different than the documentation. For example when I read the data with the sense resistor shorted the data returned is (example):
0x82 0xf0 0x42 0x02 0xfb 0xff.... 26 bytes total.
It seems like the documentation shows the output format as:
ZZ - 8 byte counter
YY - Output Status
aa - LSB coulomb counter
AA - MSB coulomb counter
The data read back shows the two byte output status first and the a TWO byte value for the 8 bit counter. I am using byte 2 (0x42 in above example) as the counter. Is that correct byte to use? What is byte 3 used for? It seems to toggle between 1 and 2.
Secondly the coulomb counter offset, when the sense resistor is shorted, for some packs ends up averaging out to +/- 5 ADC (similar to the example data shown earlier) counts. When the pack offset is this large the resulting current error ends up being around 10 to 20 mA. Is there a reason why some of these packs have an large offset? Note the charge and discharge fets are turned off during the calibration.
Any thoughts or suggestions would be much appreciated.