Other Parts Discussed in Thread: BQSTUDIO
Hi,
My board is using a PIC32 microprocessor to configure/talk to the BQ76952 over I2C.
I'm able to enter configuration mode and set all of the data memory as I would like except for the CC Gain/Capacity Gain registers.
I'm assuming this has something to do with them being the only floating point registers I'm setting, but two questions:
- Our board has a 0.008Ohm sense resistor. Should I be entering 8.000mOhm into this register, or is the register value supposed to be set according to this equation:

So in this case, 7.5684/8.000 = 0.94605/mOhm ? - My I2C functions currently work with integer values, so I've been converting my floating point numbers into hex representations in order to simplify my code. So far, I've been trying to write the register with the value 8.000, and converting this to hex I get 0x41000000. But when I write this across to the BQ via the PIC and then connect to the BQ via BQStudio, the register reads 1.012mOhms. I've also tried other hex values and keep getting this 1.012mOhm number, so I'm not sure what I'm doing wrong as I'm able to write all my other register settings correctly.
Thanks
