The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

ABSTRACT advanced battery monitoring ICs, such bq2018, bq2019 bq2023,


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



Advanced Gauge Host Firmware Guide Battery Monitors
ABSTRACT advanced battery monitoring ICs, such bq2018, bq2019 bq2023, designed accurately measure charge discharge currents rechargeable battery packs. Intended pack integration, these devices contain necessary functions form basis comprehensive battery capacity management system applications such cellular phones, PDA's, internet appliances, other portable products. battery monitors work with host controller portable system implement battery gauging management system. host controller responsible interpreting battery monitor data communicating meaningful battery data end-user power management system. This document, written around bq2019, designed assist firmware engineer engaged development advanced gauging routines host controller. strategy procedure presented implementing gauging function host firmware. various tasks along with suggested constant variable values outlined described with notes pertaining accuracy enhancement features.
System Components
measure battery charge discharge current report state charge user, requires several components (see Figure These include: battery monitor such bq2018, bq2019, bq2023: Battery monitor contain high accuracy coulomb counter, temperature monitor, communication interface other functions. current sense resistor: low-value (typically between sense resistor provides means battery monitor measure current flowing into battery. battery monitor senses voltage across this resistor. host controller with free general-purpose communication: host controller required provide intelligence battery monitoring setup. host controller handles communication with battery monitor Since communication protocols asynchronous one-wire based, general-purpose dedicated handle communication flow. host also performs calculations with data read from battery monitor determine battery state charge.
SLVA100
Battery Pack Pack
Portable Device
Cell(s) Battery Monitor (bq2018, bq2019, bq2023) Data
Host Controller Program
Talk Time: 1:15 Standbytime: 7:25
Communication Power Management Battery Capacity Calculation
System Display
Sense Resistor Pack
FIGURE System Components
Communication-related Items
There several items consider when developing lower level firmware communicating with bq2019 other battery monitors with interface.
Interrupt Strategy
Normal host processing communication with bq2019 encounter high priority interrupt that needs serviced prior completion communication transaction. time between bits sent from host bq2019 time critical, long line high, host processor pause communication service interrupt extended period then resume communication. However, when reading bits from bq2019, host cannot allow interruption, data transmitted fixed rate host must know exact timing determine whether individual bits ones zeroes. Provision must made host flag interruption while receiving data. host should then hold data line long enough cause break need wait until transmission complete from bq2019) then retry communication avoid potential misreads data.
Write Verify
good practice follow data write operations bq2019 with read operation verify that correct data written. Repeat write operation verify operation fails. most cases, writing part only done during power shutdown sequence. However, five register clear bits register cannot verified since they automatically cleared after being set. These used typical one-hour interval register maintenance.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
Rollover Protection
16-bit registers TEMP, CTC, DTC, SCR, CCR, divided into high bytes. When reading 16-bit value, there will time lapse between 8-bit readings. This allows possibility that 16-bit value have carry from byte into high byte during time interval between reading bytes. Therefore, strategy required insure there carry from byte high byte between readings bytes. eliminate this possibility include three reads instead normal reads, with high byte being read first third reads compared insure that carry occur. course data could analyzed determine whether there possibility carry third read could invoked only when possible carry existed.
Break Reset
battery pack removed some intermittent connection occurs line, bq2019 controller become sync with host communication. safe practice would issue break prior each communication insure that communication always sync. alternative procedure might always send break start communication block then send again unless there need abort communication bq2019 respond within expected time.
Considerations Gas-Gauging System
Synchronization reported capacity capacity reported gauge must synchronized with full and/or empty condition battery. This normally done forcing capacity zero when battery drops some level just above minimum operating voltage host system. Synchronization reported capacity also done when battery full host determine that charger completed normal charge termination firmware function that will learn true capacity battery typical environment. Measuring actual battery capacity measurement actual capacity typically measurement full discharge charge battery lithium) battery without intervening event that might cause measured discharge differ from that typical discharge. These events might include cold temperature operation, sitting unused extended period during some portion learning cycle, removal battery during learning cycle, etc. also prudent prevent learning capacity very much different from previous measured capacity learning cycle). good measure actual capacity environment will allow full capacity track capacity fade battery provide good reference synchronize reported capacity when battery reaches full.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
Offset correction capacity measurements bq2019 contains hardware canceling offset allows precision measurement small voltages across sense resistor. Nevertheless, some small offset, perhaps less than 10-15 exist. sense resistor used, equivalent 0.75 offset cause some error accumulation host remains full condition battery pack removed) extended period time. normal shutdown sequence performed later confirmed host during power sequence, possible determine whether counts only contain counts offset error. host check charge, discharge, time registers determine whether count rate during interval small enough only offset error. counts should ignored. this strategy implemented, necessary flag some location bq2019 when normal power down sequence completed reset flag after power This would allow host distinguish normal power down sequence from caused battery removal intermittent connection.
Charge efficiency charge efficiency lithium-ion cells coulometric charge virtually 100% charge efficiency ignored. algorithm NiMH NiCd needed, charge efficiency cells would have characterized algorithm developed apply efficiency appropriately. charge efficiency these cells changes with temperature, rate charge, state charge. detail procedure this document assumes that charge efficiency 100%.
basic bq2019 count units instead engineering units There need accumulate charge added removed from battery measure full charge capacity battery mAh. will much more convenient make computations terms 3.05 count units reported registers. Most computations like relative state charge (percent full charge) time (delta charge removed/charge remaining) ratios unit conversions both numerator denominator will cancel. computations like standby time made using estimated standby current that been converted equivalent counts eliminate unit conversion computations host during normal operation. gain sense resistor variations There need perform calibration gain sense resistor unless there requirement provide information engineering units host user. Talk time ratio,
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
calibration error will cancel. measured capacity some percentage, high, remaining capacity battery will high rate will also high. When these divided, gain errors both numerator denominator will cancel. accurate value average current drain required, then calibration will have performed. calibration factor stored bq2019 retrieved host during power process. host then this factor whenever current computation must reported.
Gauging Firmware Example
Apart from required general read write functions, gauge firmware broken down into tasks table
Table
Name GGInitialize(
Gauge Firmware Tasks
Description Qualify battery communication. Read convert constants scratchpad variables from bq2019 into host. Calculate capacity, average current, time charge time. Manage full, empty learning. Update display. register maintenance. Store remaining capacity bq2019. Clear registers. Make corrections remaining capacity selfdischarge. Measure battery voltage. Call GGUpdate( battery crosses empty voltage threshold. Provide orderly shutdown. Update bq2019 registers.
Recommended Interval Power
GGUpdate(
Once Minute (typical)
GGRegisterMaint( GGSelfDischarge( GGMeasBattVltg( GGPwrDwnSave(
Hourly Several Times Every Seconds Power Down
GGInitialize
power host should initialize battery monitoring system. This usually involves testing communication link, reading some identification information stored bq2019 flash memory, such IDROM, that would insure compatibility battery system. Once battery battery communication been qualified, initialization routine should retrieve appropriate constants from bq2019 store them into local variables (Table
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
your host extremely limited dynamic memory space, prefer read these constants they needed, time penalty could significant. will want retrieve couple constants from your system, iTalkLd iStbyLd, which specify your estimated talk load (for cell phone applications) standby load milliamps. These should probably kept bq2019, since they properties battery, rather system. Table
Class Name
Typical Gauge Constants
Used Type/Units Description/Comment
Suggested bq2019 Address 78~7F 20~25 26~2B 2C~35 36/37 38/39 3A/3B
Data
ID_ROM sMFG_DATA sMODEL sMFG_NAME iSERIAL_NO iMFG_DATE iDES_CAP
GGInitialize( GGInitialize( GGInitialize( GGInitialize( GGInitialize( GGInitialize( GGInitialize( GGUpdate( GGInitialize( GGInitialize( GGSelfDischarge GGInitialize( GGUpdate( GGMeasBattVltg( GGInitialize( GGUpdate( GGInitialize( GGUpdate( GGInitialize( GGUpdate( GGInitialize( GGInitialize( GGInitialize( GGUpdate( GGInitialize( GGUpdate( GGInitialize( GGUpdate(
bytes (str) ASCII (str) ASCII (str) ASCII (Uint) (Uint) Date (Uint) Milliampere Hours (Uint)
Factory programmed Manufacturers Data Battery Model Manufacturer Name Serial Number Manufactured Date Pack Design Capacity
iSNS_RES
3C/3D
iSLF_DSG_RATE 3E/3F iEND_DSG_VLTG 40/41
327.68 (Uint) %/Day Self Discharge Rate 105.8 (Uint) Millivolts Discharge Voltage
Sense Resistor
iTERM_CURR Design Data iCAP_COMP_TE iCAP_COMP_LD iTALK_LD iSTBY_LD iTALK_LD_CNTS
42/43
(Uint) Charge Taper Termination Milliamperes Current (Byte) full capacity (Byte) full capacity (Uint) (Uint) Counts 3.05 Counts 3.05 Capacity compensation temperature Capacity compensation load current Estimated Talk Load Estimated Standby Load iSNS_RES iTALK_LD 1000 iSNS_RES iSTBY_LD 1000
iSTBY_LD_CNTS iCYCL_CAP
(Uint) used simplify math iDES_CAP GGUpdate( iSNS_RES* 0.8/1000
Addresses hex. indicates that values maintained host since they function battery. ID_ROM fixed address bq2019.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
There number variables read from bq2019 memory. These listed Table where Used column includes GGInitialize( function. Additionally, recommended that some additional local calculated constants iTALK_LD_CNTS, iSTBY_LD_CNTS, iCYCL_CAP (table several additional local variables flags calculations (table
Table
Class Name
Typical Gauge Variables
Used Type/Units Description/Comment
Suggested bq2019 Address 00/01
iLastMeasDsg
iRemCap
02/03
GGInitialize( GGUpdate( GGSelfDischarge( GGInitialize( GGUpdate( GGUpdate(
(Uint) Counts 3.05 (Uint) Counts 3.05 (Uint) Units
Last measured discharge. (Initial value during mfg.) Remaining capacity (Initial value during mfg.) Cycle Count (Typically increased iDsgCntrCuml reached design capacity) temp seen this bq2019. Update host during GG_Update. Valid discharge flag
iCycleCnt
04/05
iMaxTemp
bValidDsg Computed Values
iDsgCntr
08/09
iDsgCntrCuml
0A/0B
iLastRemCap
0C/0D
GGInitialize( GGUpdate( GGPwrDwnSave( GGInitialize( GGUpdate( GGPwrDwnSave( GGInitialize( GGUpdate( GGSelfDischarge( GGPwrDwnSave( GGInitialize( GGUpdate( GGSelfDischarge( GGPwrDwnSave( GGInitialize( GGPwrDwnSave( GGInitialize( GGUpdate( GGSelfDischarge( GGPwrDwnSave( GGInitialize( GGUpdate( GGRegisterMaint( GGUpdate( GGUpdate(
(Byte) (bool) Flag (Uint) Counts 3.05 (Uint) Counts 3.05 (Uint) Counts 3.05 (Uint) Counts 3.05
Discharge counter learning iLastMeasDsg
Cummulative discharge counter tracks partial discharges iCycleCnt update. Last computed remaining capacity value Tracks cumulative selfdischarge corrections. Disqualifies learning cycle exceeds iDES_CAP. Minutes elapsed since last register maintenance. Est. remaining time present current Est. remaining time charge full
iCumlCorrectn
0E/0F
Computed Values
iTimeSinceMaint
(Uint) Minutes (Uint) Minutes (Uint) Minutes
iRunTime iTimeToFull
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
Class Name Suggested Used bq2019 Address GGUpdate( GGUpdate( GGUpdate( GGInitialize( GGUpdate( Type/Units Description/Comment
iTalkTime iStbyTime iRelChgPercent bInit
(Uint) Minutes (Uint) Minutes (Uint) (bool) Flag
bEDV
GGInitialize( GGUpdate( GGUpdate(
(bool) Flag (bool) Flag
bChgFull
Est. remaining time iTALK_LD Est. remaining time iSTBY_LD Relative charge percent full charge. `RSOC' Initial pass flag. Inhibits iRunTime iTimeToFull calculations first time through GGUpdate( Flag notify other host process that battery discharge voltage. Flag used charger other host process indicate that battery fully charged. Most recent calculation remaining capacity.
iRemCapNow
iRemCapPrev
GGInitialize( GGUpdate( GGRegisterMaint( GGSelfDischarge( GGPwrDwnSave( GGUpdate(
(int) Counts 3.05
(int) Counts 3.05 (Uint) Counts 3.05 (Uint) (Uint) (float) Minutes (float) Minutes (Uint)
iRemCapTemp
GGSelfDischarge(
Calculation remaining capacity from previous update. Temp variable iterative self-discharge estimate. Temp self-discharge variable. Temp self-discharge variable. Value Minutes, with resolution seconds since power reset detected. Value Minutes, with resolution seconds since power reset detected previous fElapsedTime. TMPH, TMPL bq2019 contain temperature
iSlfDsgEst iTempCorrection fElapsedTime
GGSelfDischarge( GGSelfDischarge( GGUpdate(
fElapsedTimePrev
GGUpdate(
bq2019 Gauge Registers corresponding host vars.
iKelvin (Host) TMPL (bq2019) TMPH (bq2019) iRegClr (Host) (bq2019)
GGInitialize( GGUpdate
GGUpdate( GGRegisterMaint( GGSelfDischarge(
(Uint) Bits
used quickly clear DCR, CCR, SCR, DTC, combination. iRegClr used host setup next desired clearing pattern.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
Class Name Suggested bq2019 Address Used Type/Units Description/Comment
iChgTime (Host) CTCL (bq2019) CTCH (bq2019) iDsgTime (Host) DTCL (bq2019) DTCH (bq2019)
GGInitialize( GGUpdate( GGInitialize( GGUpdate( GGInitialize( GGSelfDischarge( GGUpdate(
(Uint) 4096 counts hour (Uint) 4096 counts hour (Uint) count hour 30°C) (Uint) Counts 3.05 (Uint) Counts 3.05
iSlfDsgCntr (Host) SCRL (bq2019) SCRH (bq2019) iChgCntr (Host) CCRL (bq2019) CCRH (bq2019) iDsgCntr (Host) DCRL (bq2019) DCRH (bq2019)
Charge Time Counter. used GGUpdate( timer time function available host. Discharge Time Counter. used GGUpdate( timer time function available host Self Discharge Counter. Rate varies automatically with temperature. Charge count register bq2019 increments when voltage positive. Discharge count register bq2019 increments when voltage negative.
GGUpdate(
Addresses hex.
GGInitialize Steps
steps GGInitialize follows:
Read some manufacturing data from bq2019. Return communication faulty battery incorrect. Read each design data class constants table Calculate lower three constants from formulas table. Read iMaxTemp, iLastMeasDsg, iLastRemCap, bValidDsg, iRemCap, iDsgCntrCuml, iChgTime(CTC), iDsgTime(DTC) from bq2019. Calculate iTimeSinceMaint iChgTime iDsgTime 4096. bInit true bEDV false. iRemCapNow iLastRemCap. bValidDsg true, first write false that memory location bq2019, then read iDsgCntr iCumlCorrectn from bq2019. Jump GGUpdate()
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
GGUpdate
GGUpdate() should called desired display update interval, whenever GGMeasVltg() detects that voltage fallen below iEND_DSG_VLTG. Typically update performed 1-minute interval, want update more frequently voltage reaches iEND_DSG_VLTG. This function where work gets done. First read bq2019 registers, time, then determine battery charging discharging. discharging: update auxiliary discharge counters, update cycle count, make capacity corrections temperature load calculate run-time. Otherwise, charging, then calculate time-to-full. Next, check done hour passed since last register maintenance. GGRegUpdate called record cumulative corrections, clear registers and, desired, call GGSelfDischarge() several times each day. Finally, series tasks handles capacity learning, discharge voltage, synchronization full empty, calculation talk time, standby time remaining percent full. important thing know here that clear bq2019 registers when voltage reaches end-of-discharge, when battery reaches full condition update remaining capacity last-measured-discharge then clear bq2019 registers.
GGUpdate() Steps
steps GGUpdate() follows: Read coulomb counters (CCR, DCR) into iChgCntr iDsgCntr. Read bq2019 temperature (TMP) into iKelvin. iKelvin iMaxTemp then iMaxTemp iKelvin previous elapsed time (fElapsedTimePrev) current elapsed time (fElapsedTime) Read current elapsed time (fElapsedTime) from your system, bq2019 time registers. previous remaining capacity (iRemCapPrev) current remaining capacity (iRemCapNow). Calculate remaining capacity iRemCapNow iRemCap iDsgCntr iChgCntr. Initialize iRunTime iTimeToFull function will return them this first time through signify that result applicable. iRemCapNow iRemCapPrev then discharging. Increase discharge counter: iDsgCntr iDsgCntr iRemCapPrev iRemCapNow.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
Increase cumulative discharge counter: iDsgCntrCuml iDsgCntrCuml iRemCapPrev iRemCapNow. Manage discharge cycle count testing iDsgCntrCuml still less than iCYCL_CAP. not, read iCycleCnt from bq2019, increase write back part. Then decrease iDsgCntrCuml iCYCL_CAP. this first time through this function (bInit false) then: Calculate iTimeSinceMaint iTimeSinceMaint fElapsedTime fElapsedTimePrev. Also, with bInit false iRemCapNow then iRunTime With bInit false iRemCapNow time minutes calculated iRunTime [fElapsedTime fElapsedTimePrev] iRemCapNow [iRemCapPrev iRemCapNow]. Apply desired corrections iRemCapNow temperature load. constants bq2019 such iCAP_COMP_TE iCAP_COMP_LD model chemistry your battery. current temperature already iKelvin. There should need calculate load current from dq/dt since your firmware knows system operational standby iTALK_LD iSTBY_LD. This correction addresses case where cell phone that charged lodge placed user's jacket pocket. After half hour -10°C, skier turns phone looks predicted talk time, which will appear inflated without this correction. will probably want flag first time this correction made, reset flag when temperature and/or load changes significantly. future application note will address these techniques detail. Move below. iRemCapNow iRemCapPrev this first time through this function (bInit false) then: Calculate iTimeSinceMaint iTimeSinceMaint fElapsedTime fElapsedTimePrev check iRemCapNow iRemCapPrev charging. Test iRemCapNow iLastMeasDsg. false then battery must full iTimeToFull above test true then calculate time-to-full minutes iTimeToFull [fElapsedTime fElapsedTimePrev] [iLastMeasDsg iRemCapNow] [iRemCapNow iRemCapPrev]. Also bValidDsg false indicate that valid discharge cycle. Note that while this formula good approximation time-to-full, improved upon taking into account exponential shape charge current after charger transitions from constant-current constant-voltage mode. future application note will address this issue detail. Test iTimeSinceMaint false, then call GGRegMaint since must have been over hour since last register maintenance. Note that before returns, GGRegMaint call GGSelfDischarge which would cumulative self-discharge value iCumlCorrectn. bValidDsg true then test iKelvin (10°C) bValidDsg false since part cold valid learning cycle. bValidDsg true then test iCumlCorrectn iDES_CAP. bValidDsg false since have much self-discharge allow valid learning cycle.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
Look battery full condition first testing iRemCapNow iLastMeasDsg. true then battery full. false, bChgFull flag (set your charger?) should checked since charging battery iLastMeasDsg might possible cells have substantial capacity fade since last learning cycle. battery full, basic procedure iRegClr 0x1F, iTimeSinceMaint iRemCapNow iLastMeasDsg, then test bValidDsg. bValidDsg True write iRegClr register then iRegClr This allows learning continue through partial charge/discharge cycles. bValidDsg False: bValidDsg true, iDsgCntr iDsgCntrCuml iRemCap iRemCapNow. Then write iRemCap iRegClr bq2019. Finally, iRegClr battery full there three possibilities consider: could empty voltage, empty depleted capacity, normal condition. first test compare battery voltage with iEND_DSG_VLTG. voltage above this threshold, then perform steps paragraph below. voltage above iEND_DSG_VLTG then test iRemCapNow dropped negative. perform steps paragraph below. iRemCapNow above battery normal perform steps paragraph below. Voltage. First check bEDV. true, then have already handled problem previous update were done. Otherwise have voltage synchronization learning cycle handle. First, iRemCapNow iTimeSinceMaint bEDV iRegClr 0x1F. Then test bValidDsg. bValidDsg false then have valid learning cycle iRemCap write iRemCap iRegClr bq2019, iRegClr move step bValidDsg flag true, however, must perform learning cycle. First latest capacity reduction: iDsgCntr iDsgCntr iRemCapPrev iRemCapNow. Then test iDsgCntr against iDES_CAP insure that proposed value within +/-10% design capacity. outside limit, iLastMeasDsg iDsgCntr, otherwise iLastMeasDsg down design value. Save iLastMeasDsg bq2019. iRemCap write iRemCap iRegClr bq2019, iRegClr=0 move step Depleted Capacity. First iRemCapNow handle negative case. iRegClr 0x1F iRemCap Then write iRemCap iRegClr bq2019. Finally, iRegClr Move step Battery Normal. Test iRegClr move step However, there value, because GGRegMaint( called step above. iRemCap iRemCapNow, write iRemCap iRegClr bq2019. Finally, iRegClr Calculate talk minutes iTalkTime iRemCapNow iTALK_LOAD, standby minutes iStbyTime iRemCapNow iSTBY_LOAD, percent full iRelChgPercent iRemCapNow iLastMeasDsg. Lastly, bInit false.
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
have several useful values iRunTime iTimeToFull, iTalkTime, iStbyTime, iRelChgPercent iRemCap that returned used within this function update your display.
GGRegisterMaint
This simple function called GGUpdate( determined that hour passed since previous register maintenance. clear variable that counts hour, request clearing bq2019 registers along with update remaining capacity part. Also calls GGSelfDischarge self-discharge counts have reached significant value. iTimeSinceMaint iRegClr 0X1B. iRegClr sets clearing pattern clearable registers bq2019 except SCR. Test iRemCapNow false, then function returns. Otherwise, read into iSlfDsgCntr test iSlfDsgCntr iSLF_DSG_RATE. true, then function returns. false, call GGSelfDischarge( return.
GGSelfDischarge
idea here read self-discharge register self discharge rate from bq2019, then perform self-discharge correction, save updated remaining capacity, clear bq2019 registers. This function called GGRegisterMaint( determined that self discharge counts significant enough added into discharge counters. three temporary variables here iRemCapTemp, iTempCorrection iSlfDsgEst iterative self-discharge estimate. First temporary variable iRemCapTemp smaller iRemCapNow iLastMeasDsg. iTempCorrection perform iterative loop shown below. Note that iSlfDsgCntr retrieved from bq2019 GGRegisterMaint( either passed valid global. while iSlfDsgCntr iSLF_DSG_RATE iSlfDsgEst iRemCapTemp iTempCorrection iTempCorrection iSlfDsgEst iRemCapTemp iRemCapTemp iSlfDsgEst iSlfDsgCntr iSlfDsgCntr iSlfDsgEst}
Then make following assignments: iSlfDsgEst iRemCapTemp [iSlfDsgCntr iSLF_DSG_RATE] iRemCapTemp iRemCapTemp iSlfDsgEst iTempCorrection iTempCorrection iSlfDsgEst iRemCapNow iRemCapNow iTempCorrection iDsgCntr iDsgCntr iTempCorrection
Advanced Gauge Host Firmware Guide Battery Monitors
SLVA100
iDsgCntrCuml iDsgCntrCuml iTempCorrection iCumlCorrectn iCumlCorrectn iTempCorrection iRegClr iRegClr 0x04 //SCR Clear
Return
GGMeasBattVltg
system converter read battery voltage least every seconds. Either make value available globally, allow GGUpdate( query voltage. Call GG_Update immediately voltage iEND_DSG_VLTG.
GGPwrDwnSave
Call this routine power down save variables into bq2019. saves last remaining capacity calculation, cumulative discharge toward cycle count, maximum temperature. present discharge valid, then saves valid discharge flag along with discharge count toward last-measured-discharge learning cumulative correction toward valid-discharge disqualification. iLastRemCap iRemCapNow. Write iLastRemCap, iDsgCntrCuml, iMaxTemp bq2019. bValidDsg true then write bValidDsg, iDsgCntr iCumCorrectn bq2019.
References
Texas Instruments, Inc. Data sheet bq2019 Advanced Battery Monitor (SLUS456A)
Advanced Gauge Host Firmware Guide Battery Monitors
IMPORTANT NOTICE Texas Instruments subsidiaries (TI) reserve right make changes their products discontinue product service without notice, advise customers obtain latest version relevant information verify, before placing orders, that information being relied current complete. products sold subject terms conditions sale supplied time order acknowledgment, including those pertaining warranty, patent infringement, limitation liability. warrants performance products specifications applicable time sale accordance with TI's standard warranty. Testing other quality control techniques utilized extent deems necessary support this warranty. Specific testing parameters each device necessarily performed, except those mandated government requirements. Customers responsible their applications using components. order minimize risks associated with customer's applications, adequate design operating safeguards must provided customer minimize inherent procedural hazards. assumes liability applications assistance customer product design. does warrant represent that license, either express implied, granted under patent right, copyright, mask work right, other intellectual property right covering relating combination, machine, process which such products services might used. TI's publication information regarding third party's products services does constitute TI's approval, license, warranty endorsement thereof. Reproduction information data books data sheets permissible only reproduction without alteration accompanied associated warranties, conditions, limitations notices. Representation reproduction this information with alteration voids warranties provided associated product service, unfair deceptive business practice, responsible liable such use. Resale TI's products services with statements different from beyond parameters stated that product service voids express implied warranties associated product service, unfair deceptive business practice, responsible liable such use. Also see: Standard Terms Conditions Sale Semiconductor Products. www.ti.com/sc/docs/stdterms.htm
Mailing Address: Texas Instruments Post Office 655303 Dallas, Texas 75265
Copyright 2001, Texas Instruments Incorporated

Other recent searches


UPD98441 - UPD98441   UPD98441 Datasheet
T98502 - T98502   T98502 Datasheet
HCPL1930 - HCPL1930   HCPL1930 Datasheet
DMS-20PC-4 - DMS-20PC-4   DMS-20PC-4 Datasheet
CRO2535A-LF - CRO2535A-LF   CRO2535A-LF Datasheet
ABG-12205 - ABG-12205   ABG-12205 Datasheet
307C1487 - 307C1487   307C1487 Datasheet
2SB1366 - 2SB1366   2SB1366 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive