Datasheet

Appendix G
www.ti.com
(ii) Check voltage limits
1. Errors:
a. VBUSER_VOLT_CAL_LOW
b. VBUSER_VOLT_CAL_HIGH
(iii) Check sense resistor limits
1. Errors:
a. VBUSER_SENSE_RES_CAL_HIGH
b. VBUSER_SENSE_RES_CAL_LOW
(iv) Check temperature limits
1. Error code returned from TempOffsetChecking()
(b) TempOffsetChecking()
(i) Reports the % error of Temperature offsets
1. Errors:
a. VBUSER_TEMP_CAL_LOW
b. VBUSER_TEMP_CAL_HIGH
11. modCommFunc
(a) SendGGtoROM(nReturnToROMCmd()Sends the Gas Gauge code to execute in ROM mode.
(i) Uses modComm.WriteSMBusWord
(ii) If nROMVer > 100 then returns true
(b) Some useful functions in this module:
(i) ReadROMVer()
(ii) RunGGCode()
(iii) WordToBytes()
(iv) BytesToWord()
(v) Poke()
(vi) Peek()
(vii) Delay()
(viii) Delayms()
(ix) CheckTimer()
12. modCustom
(a) CustomFunction1()This function is called from the main loop after completion of the ROM mode
code. The Gas Gauge has exited ROM mode before calling this function. This function is called
before data flash is written in Gas Gauge mode.
(b) CustomFunction2()This function is called from the main loop after writing data flash in GG mode.
This function is called before Calibrate.
(c) CustomFunction3()This function is called from the main loop after executing the code to
Calibrate. This is the last function called.
13. modDelays
(a) InitializeConfigData()
(i) Read GG/platform independent values
(ii) Read GG specific values and override if different per version entry in ini file exists
(iii) GG PlatformRead Platform specific values
(iv) Calculated values
(v) Post calibration checks constants
(vi) Temporary adjustmentsRemove g_nTIManufAccessCmd definition from project and replace
with m_ntimac.
14. modErrCodes
(a) Standard error codes
48
Programming Guide SLUU397AFebruary 2011Revised May 2011
Submit Documentation Feedback
Copyright © 2011, Texas Instruments Incorporated