Texas Instruments Advanced bqMTester Multi-Station Test and Program Board Texas Instruments ADVANCED-BQMTESTER ADVANCED-BQMTESTER 데이터 시트

제품 코드
ADVANCED-BQMTESTER
다운로드
페이지 62
Appendix G
Appendix G Programming Guide
1. The programming language for bqMTester is Visual Basic v6.0 with Service Pack 6.
2. The bqMTester project file is bqTester.vbp. The project contains the following objects:
(a) Forms
(i) frmMainS
This form is the main form for the single station tester that is invoked by the
Multi-Station Tester.
(ii) frmSplash
The splash screen is the first screen that you see when the program executes. It
contains the version, copyright information, and the OLE control extension (ocx) for
communicating with the hardware, bq80xRW1.
(iii) frmTargetList
This form lists the supported targets from Targets file and enables you to
choose a target from the list. The ChooseTarget() function displays the form and returns the
selected target. It returns an empty string if you elect to cancel.
(iv) frmTesterCfg
This form allows configurable items to be changed and stored to the
configuration file.
(b) Modules
(i) modCazlBoard
This module contains functionality that communicates with the calibration
board hardware PR458.
(ii) modCalibrateZ80
This module contains functionality for calibration of bq20z80 type boards.
This file is common to the bqTester and bqEVSW projects. The words _frmUSB. and
_modComm. will need to be exchanged for compilation. bqEVSW needs _frmusb. and bqTester
needs _modcomm.
(iii) modChecks
This module contains functionality to perform checks for obvious errors. The
allowed deviations are picked up from the .ini file and these values can be specified on the
configuration screen.
(iv) modComm
This module contains communication related functions. It calls functions in the
bq80xRW.ocx. It is recommended that this file be treated as read only. Users may add their
custom communication functions in modCommFunc.bas.
(v) modCommFunc
This module contains functions that communicate with the EV2x00 but
consist of more than one function call into bq80xRW.ocx.
(vi) modConsts
This module contains constant definitions that are common to all projects in the
Multi-station tester.
(vii) modCustom
This module contains custom functionality that you may wish to add. The custom
functions are predefined and are called from the main loop as specified in the descriptions.
Return values of 0 indicate success and allow the main loop to continue with the remaining
parts of the program. Non-zero values will result in FAIL.
(viii) modDelays
This module holds variables that specify the delays used in the tester. Delay
values are stored in Delay.ini. All values are in milliseconds.
(ix) modErrCodes
This module contains constants defined for error codes. Error codes below
10000 are reserved for bq80xrw.ocx and bqEVSW. All other error codes below 65536 are
reserved for use by TI Austin Custom error codes must be
>
65536.
(x) modGGDF
This module contains functions that read and write data flash in Gas gauge mode.
(xi) modIssues
This module contains functions that fix some known issues with
firmware/hardware.
(xii) modResourceHeader
This module contains constants that define the numerical values of the
string table. This file is used in a manner analogous to the header file in C.
(xiii) modROMDF
This module contains code to read and write data flash in ROM mode. The data
flash is read into and written from a file. The file structure is defined in this module.
(xiv) modSerial
This module contains functionality to initialize and implement serial numbers.
Serial numbers are currently remembered in the application *.ini file. Serial numbers start from
1. If the maximum limit for a Long value is reached, the program may crash. Currently this
maximum serial number is 2147483647. If a higher limit is desired, change all Long to Variant
of type Decimal. The serial number must be within the range permitted by Data Flash.
(xv) modShared
This form contains functions that are shared by multiple forms and modules.
(c) Class Modules
(i) SingleSite
This class is the main external SingleSite interface to the multi-station tester. Most
of the code in this class must NOT be modified.
(d) Related Documents
45
SLUU397A
February 2011
Revised May 2011
Programming Guide
Copyright
©
2011, Texas Instruments Incorporated