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.

BQ35100: Floating point conversion flow for current calibration

Part Number: BQ35100

Hi, 

I would like perform a current calibration with the BQ35100 on my application. To convert the calculated calibration data (ccGain, ccDelta) to the rawData, a floating point conversion is necessary. 

In the Technical reference manual on page 18 (Figure 3-8), a flow chart shows the function. Two things I don´t understand here: 

- "Byte 2 OR with 0x80": What do you mean with this expression? Can you please explain that a bit? What´s to do here?

- "rawData[byte3] = byte0": byte3 is not defined or missing in the flow chart. Can you check that please?

 

Best regards

L-Unit

  • Hello L-Unit,

    - "Byte 2 OR with 0x80": What do you mean with this expression? Can you please explain that a bit? What´s to do here?

    This is a bitwise OR. It changes the most significant bit of that byte to 1.

    - "rawData[byte3] = byte0": byte3 is not defined or missing in the flow chart. Can you check that please?

    There are total of 4 bytes. LSB(byte) is byte0, next byte1 and so on. byte3 is the MSB