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.

BQ40Z80: BQ40Z80 Calibration - CC Gain

Part Number: BQ40Z80
Other Parts Discussed in Thread: BQSTUDIO

 

 

 

 

 

 

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.