Part Number:BQ40Z80
How should I go about calculating the floating point value of cc gain outside of the bqstudio. I am using an MIIC-204 iport/usb device to program the bq40z80 chips. I noticed that on other chips an xemics conversion procedure is used to find the 4 byte representation . Is there something like that for the bq40z80.
From the 40z80 calibration sheet,
CC Gain = Icc/(ADCcc-((board offset+cc offset)/cc offset samples))
For example
My Icc = -1001mA
ADCcc = -531
Board offset = 0
Cc offset = 0
CC offset samples = 64
Making cc gain = approx.. 1.88512
Does anyone have a method of going from this decimal value to a 4 byte equivalent that I can program it to my 40z80.