SLUUBD4A April 2016 – November 2022 BQ27220
The BQ27220 fuel gauge uses a series of 2-byte standard commands to enable system reading and writing of battery information. Each standard command has an associated command-code pair, as indicated in Table 3-1. Because each command consists of two bytes of data, two consecutive I2C transmissions must be executed both to initiate the command function and to read or write the corresponding two bytes of data. Additional options for transferring data are described in Table 3-2, Control() commands. Read and write permissions depend on the active access mode, SEALED or UNSEALED. For details, see Section 4.2, Device Access Modes. See Chapter 6, Communications, for I2C details.
NAME | COMMAND CODE | UNIT | SEALED ACCESS | |
---|---|---|---|---|
Control()/CONTROL_STATUS() | CNTL | 0x00 and 0x01 | NA | RW |
AtRate() | AR | 0x02 and 0x03 | mA | RW |
AtRateTimeToEmpty() | ARTTE | 0x04 and 0x05 | Minutes | R |
Temperature() | TEMP | 0x06 and 0x07 | 0.1°K | RW |
Voltage() | VOLT | 0x08 and 0x09 | mV | R |
BatteryStatus() | Flags() | 0x0A and 0x0B | NA | R |
Current() | Current() | 0x0C and 0x0D | mAh | R |
RemainingCapacity() | RM | 0x10 and 0x11 | mAh | R |
FullChargeCapacity() | FCC | 0x12 and 0x13 | mAh | R |
AverageCurrent() | AI | 0x14 and 0x15 | mA | R |
TimeToEmpty() | TTE | 0x16 and 0x17 | Minutes | R |
TimeToFull() | TTF | 0x18 and 0x19 | Minutes | R |
StandbyCurrent() | SI | 0x1A and 0x1B | mA | R |
StandbyTimeToEmpty() | STTE | 0x1C and 0x1D | Minutes | R |
MaxLoadCurrent() | MLI | 0x1E and 0x1F | mA | R |
MaxLoadTimeToEmpty() | MLTTE | 0x20 and 0x21 | min | R |
RawCoulombCount() | 0x22 and 0x23 | mAh | R | |
AveragePower() | AP | 0x24 and 0x25 | mW | R |
InternalTemperature() | INTTEMP | 0x28 and 0x29 | 0.1°K | R |
CycleCount() | CC | 0x2A and 0x2B | num | R |
RelativeStateOfCharge() | SOC | 0x2C and 0x2D | % | R |
StateOfHealth() | SOH | 0x2E and 0x2F | %/num | R |
ChargeVoltage() | CV | 0x30 and 0x31 | mV | R |
ChargeCurrent() | CC | 0x32 and 0x33 | mA | R |
BTPDischargeSet() | 0x34 and 0x35 | mAh | ||
BTPChargeSet() | 0x36 and 0x37 | mAh | ||
OperationStatus() | 0x3A and 0x3B | NA | R | |
DesignCapacity() | Design Cap | 0x3C and 0x3D | mAh | R |
MACData() | 0x40 through 0x5F | |||
MACDataSum() | 0x60 | |||
MACDataLen() | 0x61 | |||
AnalogCount() | 0x79 | |||
RawCurrent() | 0x7A and 0x7B | |||
RawVoltage() | 0x7C and 0x7D | |||
RawIntTemp() | 0x7E and 0x7F |