Datasheet

Appendix G
www.ti.com
(i) bqTester.RES
3. Tool Box ObjectsIn 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. frmMainSImportant 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 ClassImportant 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 calibrationHas to be done in GG mode for this part.
(x) Write Manufacturer Data.
(xi) Write Date.
(xii) Call CustomFunction3.
(xiii) Write Serial NumberEverything 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 functionsmodCommFunc.
(b) Initialize calibration boardmodCalBoard
(c) Initialize configuration datamodDelays
(d) Initialize custom codemodCustom
7. TerminateModules()
(a) Terminate custom codemodCustom
(b) Terminate configuration datamodDelays
(c) Terminate communication functionsmodCommFunc
(d) Terminate the main processmodComm
46
Programming Guide SLUU397AFebruary 2011Revised May 2011
Submit Documentation Feedback
Copyright © 2011, Texas Instruments Incorporated