Other Parts Discussed in Thread: BQ40Z50
Tool/software:
We've created a program to assist in automating calibration of a battery that uses the BQ20Z60 chip. That part works great. The part I'm having trouble with is getting and saving the calibration values afterwards. I can read the raw values from flash but I want to display them in the same format that BQ Evaluation Software shows them. For the Temperature offsets this was easy (divide by 10). For the Ref Voltage this was also easy. However, I have no idea how it's displaying
CC Gain
CC Delta
CC Offset
Board Offset
I made a similar program for another one of our batteries that uses the BQ40Z50 chip, and I was able to find an app note that told me exactly what values I had to multiple and/or divide by to convert from the hex values in flash to what the BQ Studio showed but can't find anything similar for the 20Z60. Anyone have any idea the formula's used to convert from what's stored in flash to what BQ Eval SW displays?
Additionally, does anyone know the format of the floating point numbers? The BQ40Z50 datasheet specifically called them out as IEE754 Single Precision, but when I convert them using that format I get values very far outside what the datasheet says the min and max values should be by a couple orders of magnitude.
Thanks!