Tool/software: TI-RTOS
I am having lot of trouble going through the "Gauge Configuration Parameters".
I follow the steps in SLUUAP5A-Quickstart Guide for bq27621-G1 :
- On Figure2 :
- Voltage[2] = I2CReadSubCommand(0x04, 2, 100)
- I2CWrite(0x04, 100)
- Buffer[2] = I2CRead(2, 100)
What does it really mean in I2C command code ?? what is the "100" ?
My understand from SLUUAD4C-Technical Reference
- Table 4.1
- Voltage() and Flags() are all Standard Commands
So, I have been using following sequence to read :
- rd 0x06 Flags_register[0];
- rd 0x07 Flags_register[1];
BUT, definitely there are issues. Because when I follow the instruction in (Figure 1) of SLUUAP5A-Quickstart Guide.
The [CFGUPMODE] bit come back with first try.... The checkcsum returned is incorrect... this imply chip is not ready yet.
If I put a long delay, it is fine.
So, my question is : what had I done wrong in reading the Flags_register ?
Why doc said those registers are "I2CReadSubCommand"
Thanks for advice.