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.

How to write IT ENABLE



 Hello,

  How do i perform control command IT_ENABLE (control subcommand 0x0021) in i2c.

  Which one of these are correct

   a) <Start> <0x55> <0x00> <0x21> <0x00> <stop>

   b> <Start> <0x55> <0x00> <0x21> <stop>

         <Start> <0x55> <0x01> <0x00> <stop>

  c) <start> <0x55> <0x00> <0x00> <0x21> <stop>

 

  how to know if the tracking mechanism is really enabled.

 

Warm Regards,

ryan

 

 

  • Ryan,

    Either (a) or (b) are correct.  We generally recommend (a).  The easiest way to check to see that IT_ENABLE command was executed is to check the flags register before and after the execution of the command.  The VOK bit should be set and the RUP_DIS bit should be cleared. 

    Another way to check to see if the IT is enabled is checking the flash location under Gas Gauging->State->IT Enable.  If it reads 0x01, then IT is enabled.  0x00 indicates that it is disabled.

    Let me know if this helps.

    Charles