Datasheet
Appendix G
www.ti.com
(i) bqTester.RES
3. Tool Box Objects—In addition to the standard Visual Basic GUI objects, the tool box also contains the
following objects:
(a) Bq80xRW1
(b) clsPassword
(c) clsReminder
(d) EV2x00ID
(e) TesterLog
(f) GlobalConfig
4. frmMainS—Important functions
(a) Sub SetState(nState As StatusType, Optional sStatusText As String = "")—Sets the status of the
program. The status types are:
(i) vb_cbReady = 1
(ii) vb_cbbusy = 2
(iii) vb_cbPASS = 4
(iv) vb_cbfail = 8
(v) The status type is defined in the Class Module SingleSite.
(b) cmdStart_Click()—This performs Tester operations in sequence.
(i) Indirectly causes the MainProcess() in SingleSite to be executed.
5. SingleSite Class—Important functions
(a) MainProcess()—This controls program flow.
(b) Note: Implement your changes in CustomFunctionX() that is defined in modCustom.bas.
(c) Program Flow:
(i) Power up bqMTester board.
(ii) Get the Device and version from the Target device.
(iii) Call CustomFunction1.
(iv) Write Data Flash Image in ROM mode.
(v) Wait for Gas gauge to execute startup code.
(vi) Call CustomFunction2.
(vii) Do Calibration.
(viii) Post Calibration checks.
(ix) bq8060 voltage calibration—Has to be done in GG mode for this part.
(x) Write Manufacturer Data.
(xi) Write Date.
(xii) Call CustomFunction3.
(xiii) Write Serial Number—Everything passed!!!
(xiv) Put device into ROM mode before powering off.
(xv) Wait for any pending packets to go out before turning off power.
(xvi) Cal board power off.
(d) Error Processing for Program Flow
(i) Flag event current status.
(ii) Clear all errors.
(iii) Flag event serial number.
(iv) Send GG to ROM.
(v) Wait for any pending packets to go out before turning off power.
(vi) Cal board power off
6. InitializeModules()
(a) Initialize communication functions—modCommFunc.
(b) Initialize calibration board—modCalBoard
(c) Initialize configuration data—modDelays
(d) Initialize custom code—modCustom
7. TerminateModules()
(a) Terminate custom code—modCustom
(b) Terminate configuration data—modDelays
(c) Terminate communication functions—modCommFunc
(d) Terminate the main process—modComm
46
Programming Guide SLUU397A–February 2011–Revised May 2011
Submit Documentation Feedback
Copyright © 2011, Texas Instruments Incorporated