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.

BQ27520-G4: Host System Calibration Procedure (SLUA640B)

Part Number: BQ27520-G4

Tool/software:

Hello,

I am attempting to implement host system calibration for our product which uses the BQ27520-G4 part. However, the documentation (SLUA640B) seems lacking for this.

  1. Example: send_subCommand(0x00, 0x2D); //Enable Calibration mode
    The document (SLUA640B) does not share the details of what send_subCommand() does. It seems that it writes a subcommand to 0x00. What are the arguments here? Are they the two bytes associated with the subcommand? Or is the first argument (0x00) a reference to the Control() command, and then 0x2D may actually be 0x002D?
  2. What is the subcommand 0x2D? It is not referenced at all in the Technical Reference Manual (SLUUA35).
  3. The next line in the example is: send_subCommand(0x00, 0x81); //Enter Calibration mode
    What is subcommand 0x81? It is also not in the technical reference manual.
  4. The next line is to send subcommand 0x00, and then sending command 0x00. Is this simply to read the CONTROL_STATUS bytes? For the BQ27520 this seems to be the wrong register to read - shouldn't it be FLAGS?
  5. Obviously the code bit is not runnable, since the do/while loop will never exit (it never updates the value it is checking)
  6. Also: the code in the enterCalibrationMode() function does not match the flowchart above it. Which one is correct?

Is there a more up-to-date document for this?

Thank you,

Jonathan