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.

BQ20z65 writing directly to subclass 104 with writeSMBusblock

Other Parts Discussed in Thread: BQ20Z65I'm trying to programatically calibrate the current in a BQ20z65. Using the code example from SLUA379E doesn't work because it seems to require current flowing across the sense resistor independent of the FETs, and I don't have access to test points that would let me do that. I'm trying to use the method described in section 5.1 where I program CC gain and CC delta directly, but it's not working. I can read the calibration register (subclass 104) but the numbers don't make any sense and I cannot figure out how to convert the hex byte array into the floating point decimal that shows up in the Data Flash page of the BQ software. For CC gain and CC delta of 3.0 each, for example, I get 0x82 0x48 0xF0 0x4C 0x94 0x64 0x9F 0xA0. The 0x82 and 0x94 don't change not matter what I program the value to, so that means that 0x48 0xF0 0x4C and 0x64 0x9F 0xA0 both equal 3.0. How does this conversion work?