Example: tourism industry

Data Flash Programming and Calibrating the bq20zxx Family ...

Application ReportSLUA379E May 2006 Revised August 2013 data Flash Programming and Calibrating the bq20zxxFamily of Gas GaugesJackie ManagementABSTRACTThis application report presents a strategy for high-speed, economical calibration and data flashprogramming of the bq20zxx advanced gas gauge chipset Family . VB6 code examples are provided, alongwith step -by- step instructions for preparing a golden battery the Golden and Saving the data Flash Image From the Golden the data Flash Image to Each Target Pack-Specific data Flash A How to Convert Between.

www.ti.com Reading and Saving the Data Flash Image From the Golden Pack 8. Repeat Steps 4 through 7 to achieve maximum impedance table accuracy. Verify that DF.Gas Gauging.State.Update Status reads 06. If not, repeat the cycle.

Tags:

  Programming, Data, Step, Flash, Calibrating, Bq20zxx, Data flash programming and calibrating the bq20zxx

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Data Flash Programming and Calibrating the bq20zxx Family ...

1 Application ReportSLUA379E May 2006 Revised August 2013 data Flash Programming and Calibrating the bq20zxxFamily of Gas GaugesJackie ManagementABSTRACTThis application report presents a strategy for high-speed, economical calibration and data flashprogramming of the bq20zxx advanced gas gauge chipset Family . VB6 code examples are provided, alongwith step -by- step instructions for preparing a golden battery the Golden and Saving the data Flash Image From the Golden the data Flash Image to Each Target Pack-Specific data Flash A How to Convert Between.

2 DFI and .ROM File Types Using bqEASY of Figures1bqEASY 1B Load/Read .DFI or .ROM File DFI File Manually Program Dataflash ROM File Manually of Tables1 IntroductionThe latest TI Family of advanced gas gauges is built with new technology and a new architecture for dataflash access and calibration. With this new architecture, unit production cost and capital equipmentinvestment can be minimized, as there is no longer a need to perform a learning cycle on each pack. Asingle golden pack can become the source of data for all other packs. A method is shown to quickly readand write the golden image.

3 Also, the calibration method is quick and simple because most of thecalibration routines are built into the firmware of the target methods in this document are presented as VB6 (Visual Basic 6) functions. These functions werecopied directly from working code. In order to read from and write to the data Flash , they use five types ofSMBus read and write functions. These can be duplicated in any software environment that has SMBuscommunication capabilities. As used herein, each Read/Write function is designed for communication witha gas gauge, so the device address (0x16) is omitted for ()has two arguments the SMBus command and a signed integer.

4 Internally, thisfunction separates the integer into two bytes for transmission by the SMBus write-word ()has three arguments the SMBus command, the array of bytes, and aninteger specifying the length of the byte array. Internally, this function separates the byte array intoseparate bytes for transmission by the SMBus write-block ()has only one argument the SMBus Track, bqEASY are trademarks of Texas May 2006 Revised August 2013 data Flash Programming and Calibrating the bq20zxx Family of Gas GaugesSubmit Documentation FeedbackCopyright 2006 2013, Texas Instruments IncorporatedPreparing the Golden two arguments the SMBus command and the returned ()

5 Has three arguments the SMBus command, the returned array of bytes, andthe returned length of the byte array. It is internally implemented with the SMBus read-block used in these functions is a simple delay routine called DoDelay. VB6 code for this procedure isprovided at the end of the handling is not implemented in this sample code, because requirements are unique and varied. Also,constants are hard-coded into the functions to improve clarity rather than documenting them in codeelsewhere as would normally be good coding good strategy for production is a seven- step process flow:1.

6 Write the data Flash image to each device. This image was read from Calibrate the Update any individual Flash locations, such as serial number, lot code, and Perform any desired protection Connect the Initiate the Impedance Track Seal the this document, the first three steps are examined in Preparing the Golden PackImpedance Track technology allows the bq20zxx gas gauge to automatically acquire and maintainparameters for battery modeling needed for continuous accuracy, regardless of battery model ormanufacturer. The ICs are shipped preprogrammed with default values for these parameters.

7 In thecourse of daily use (charge, discharge, unused), the algorithm collects new parameters. Parameteracquisition is complete after one full discharge cycle and subsequent relaxation takes default parameters that are used for fuel gauging prior to discharge activity are less accurate thanparameters acquired during such activity. Therefore, the error of the gas gauge is more than the 1% thatis achieved after parameter acquisition. It is desirable to have optimal accuracy in the battery packscoming from the production line even before any discharge activity occurs.

8 This can be accomplished byperforming a discharge cycle on one battery pack (let it acquire optimized parameters), save its data flashin a file, and then program the golden data into all battery packs coming from the production the steps in this process. However, this procedure can also be completed using thebqEASY software. More information about this tool can be found in the user guidebqEASY ( , bq20z90)(SLUU278). Creating Pre-Learned Defaults1. Assemble a battery pack with the bq20z80 solution, which includes setting basic Flash constants for agiven pack configuration, Calibrating the pack, connectingSystem Presentto ground, and enabling is described in detail in the application reportPack Assembly and the bq20z80(SLUA335), whichalso applies to the In particular, it is important to set parameters specific to the number of serial cells used.

9 This isdescribed in application reportbq20z80 EVM data Flash Settings for Number of Serial Cells and PackCapacity(SLVA208), which also applies to the rest of the bq20zxx To achieve maximum accuracy of first cycle parameter acquisition, set an initial guess for Qmax Cell 0,Qmax Cell 1, Qmax Cell 2, Qmax Cell 3, and Qmax Pack. These values are in mAh as specified in thebattery manufacturer data sheet. For example, if single-cell data -sheet capacity is 2400 mAh and 3parallel cells are used, set each value to 2400 3 = 7200 Charge the pack to Let it relax for 2 Discharge the pack to the minimum system-acceptable voltage (should be the same as Voltage) at the typical application rate.

10 The exact rate is not Let it relax for 5 Flash Programming and Calibrating the bq20zxx Family of Gas GaugesSLUA379E May 2006 Revised August 2013 Submit Documentation FeedbackCopyright 2006 2013, Texas Instruments and Saving the data Flash Image From the Golden Pack8. Repeat Steps 4 through 7 to achieve maximum impedance table accuracy. Verify that Status reads 06. If not, repeat the cycle. Its normal value should be Use the EVSW to export the .gg File. Open the .gg file with Notepad to change to 02. Change Count to Reprogram the pack with a fresh.


Related search queries