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.
- 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? - What is the subcommand 0x2D? It is not referenced at all in the Technical Reference Manual (SLUUA35).
- 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. - 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?
- Obviously the code bit is not runnable, since the do/while loop will never exit (it never updates the value it is checking)
- 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