SLAA476B February   2011  – July 2019 BQ2040 , BQ2040 , BQ2060A , BQ2060A , BQ2063 , BQ2063 , BQ2083-V1P3 , BQ2083-V1P3 , BQ2084-V143 , BQ2084-V143 , BQ2084-V150 , BQ2084-V150 , BQ2085-V1P3 , BQ2085-V1P3 , BQ20Z40-R1 , BQ20Z40-R1 , BQ20Z70-V160 , BQ20Z70-V160 , BQ20Z80A-V110 , BQ20Z80A-V110 , BQ28400 , BQ28400 , BQ78PL114 , BQ78PL114 , BQ78PL116 , BQ78PL116 , LM5145 , LM5145 , MSP430F5500 , MSP430F5500 , MSP430F5501 , MSP430F5501 , MSP430F5502 , MSP430F5502 , MSP430F5503 , MSP430F5503 , MSP430F5504 , MSP430F5504 , MSP430F5505 , MSP430F5505 , MSP430F5506 , MSP430F5506 , MSP430F5507 , MSP430F5507 , MSP430F5508 , MSP430F5508 , MSP430F5509 , MSP430F5509 , MSP430F5510 , MSP430F5510 , TPS40057 , TPS40057 , TPS40170 , TPS40170

 

  1.   Wide-Vin Battery Charger Using SMBus Communication Interface Between MSP430™ MCUs and bq Fuel Gauges
    1.     Trademarks
    2. Introduction
    3. Hardware
      1. 2.1 Overall System Description
      2. 2.2 MSP430F5510 Daughterboard Subsystem
        1. 2.2.1 Subsystem Description
        2. 2.2.2 MSP430F5510 Port Pins Functionality Description
      3. 2.3 Power Stage Board Subsystem
        1. 2.3.1 Subsystem Description
        2. 2.3.2 Input Protection Features
        3. 2.3.3 Constant-Voltage and Constant-Current Feedback
    4. Software
      1. 3.1 SMBus Protocol Description
      2. 3.2 Software File Structure
      3. 3.3 API Calls Description
        1. 3.3.1  UCS_Init ( )
        2. 3.3.2  Timer_Init ( )
        3. 3.3.3  PWM_Init ( )
        4. 3.3.4  ADC_Init ( )
        5. 3.3.5  Fan_Init ( )
        6. 3.3.6  LED_Init ( )
        7. 3.3.7  SMBus_Initialize ( )
        8. 3.3.8  LED_Control ( )
        9. 3.3.9  Fan_Control ( )
        10. 3.3.10 VI_ADC_Read ( )
        11. 3.3.11 SMBus_Select ( )
        12. 3.3.12 Calibrate_Battery ( )
        13. 3.3.13 Delay_Timer ( )
        14. 3.3.14 PWM_Control ( )
        15. 3.3.15 Smbus_Access ( )
        16. 3.3.16 Smbus_Access_PEC ( )
        17. 3.3.17 crc8MakeBitwise ( )
      4. 3.4 Sample Application Description
    5. SBS Supported Commands Using SMBus Protocol
    6. Detailed Sample Application Flow Chart
    7. Battery Status Register Description
      1. 6.1 BatteryStatus (0x16)
    8. MSP430F5510 Daughterboard Schematics
    9. Setting Up the MSP430F5510 Daughterboard Hardware
      1. 8.1 JTAG FET Debugger Interface (Power Up, Program and Debug Options)
      2. 8.2 eZ430 Emulator Interface (Power Up, Program and Debug Options)
      3. 8.3 Power Stage Board (Power Up Option Only)
    10. Battery Calibration Circuit Setup
    11. 10 Battery Voltage and PWM Conversions
    12. 11 Battery Current and PWM Conversions
    13. 12 Power Stage Board Schematics (Generation 1: 40-V Input)
    14. 13 Bode Plot Measurement for Feedback Loop Stability Analysis
    15. 14 Power Stage Board Schematics (Generation 2: 60-V Input)
    16. 15 Setting Up the Power Stage Board Hardware
    17. 16 References
  2.   Revision History

BatteryStatus (0x16)

This read-word function returns the status of the bq20z90 or bq20z95-based battery.

bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
High Byte OCA TCA RSVD OTA TDA RSVD RCA RTA
Low Byte INIT DSG FC FD EC3 EC2 EC1 EC0
LEGEND: All Values Read Only; RSVD = Reserved
OCA: 1 = Over Charged Alarm(1)
TCA: 1 = Terminate Charge Alarm(1)
OTA: 1 = Over Temperature Alarm(1)
TDA: 1 = Terminate Discharge Alarm
RCA: Remaining Capacity Alarm
1 = Remaining Capacity Alarm is set [see: SBS:RemainingCapacityAlarm(0x01)]
RTA: Remaining Time Alarm
1 = Remaining Time Alarm is set [see: SBS:RemainingTimeAlarm(0x02)]
INIT: 1 = Initialization. This flag is cleared approximately 1 second after device reset, after all SBS parameters have been measured and updated.
DSG: Discharging
0 = bq20z90 or bq20z95 is in charging mode
1 = bq20z90 or bq20z95 is in discharging mode, relaxation mode, or valid charge termination has occurred (see the Gas Gauging section in bq20z90-V1.50 + bq29330, bq20z95 Technical Reference (SLUU264) [10]
FC: 1 = Fully Charged(1)
FD: 1 = Fully Discharged
EC3, EC2, EC1, EC0: Error Code, returns status of processed SBS function
0,0,0,0 = OK bq20z90 or bq20z95 processed the function code with no errors detected.
0,0,0,1 = BUSY bq20z90 or bq20z95 is unable to process the function code at this time.
0,0,1,0 = Reserved bq20z90 or bq20z95 detected an attempt to read or write to a function code reserved by this version of the specification or bq20z90 or bq20z95 detected an attempt to access an unsupported optional manufacturer function code.
This parameter is used in the sample application.