
When the AtRate value is positive, the
AtRateTimeToFull function returns the predicted
time to full-charge at the AtRate value of charge.
When the AtRate value is negative, the
AtRateTimeToEmpty function returns the predicted
operating time at the AtRate value of discharge.
Input/Output: signed integer.
for charge and negative for discharge.
AtRate is positive
Units: mA
Range: -32,768mA to 32,767mA
AtRateTimeToFull() (0x05)
This read-only word returns the predicted remaining
time to fully charge the battery at the AtRate value
(mA) and is valid only if read immediately after an
AtRate command.
Output: unsigned integer. Returns the predicted
time to full charge.
Units: minutes
Range: 0 to 65,534min
Granularity:2 min or better
Invalid Data Indication: 65,535 indicates that the
AtRate value is negative.
AtRateTimeToEmpty() (0x06)
This read-only word returns the predicted remaining op-
erating time if the battery is discharged at the AtRate
value and is valid only if read immediately after an
AtRate command.
Output: unsigned integer. Returns the predicted
time to empty.
Units:minutes
Range:0 to 65,534min
Granularity:2min or better
Invalid Data Indication: 65,535 indicates that the
AtRate value is not negative.
AtRateOK() (0x07)
This read-only word returns a Boolean value that indi-
cates whether or not the EDVF flag has been set.
Boolean: Indicates if the battery can supply addi-
tional energy.
Units:Boolean
Range:TRUE
 ≠
 0,FALSE = 0
Temperature() (0x08)
This read-only word returns the cell-pack's internal
temperature.
Output: unsigned integer. Returns the cell tem-
perature in tenths of degrees Kelvin increments.
Units: 0.1°K
Range: 0 to +500.0°K
Granularity: 0.5°K or better
Accuracy:
 ±
3°K after calibration
Voltage() (0x09)
This read-only word returns the cell-pack voltage (mV).
Output: unsigned integer. Returns the battery ter-
minal voltage in mV.
Units: mV
Range: 0 to 65,535mV
Granularity: 0.2% of DesignVoltage
Accuracy:
 ±
1% of DesignVoltage after calibration
Current() (0x0a)
This read-only word returns the current through the
battery's terminals (mA).
Output: signed integer. Returns the charge/dis-
charge rate in mA, where positive is for charge
and negative is for discharge
Units: mA
Range: 0 to 32,767mA for charge or 0 to
–32,768mA for discharge
Granularity: 0.2%oftheDesignCapacityorbetter
Accuracy:
 ±
1%oftheDesignCapacityaftercalibration
AverageCurrent() (0x0b)
This read-only word returns a rolling average of the cur-
rent through the battery's terminals. The AverageCur-
rent function returns meaningful values after the bat-
tery's first minute of operation.
Output: signed integer. Returns the charge/dis-
charge rate in mA, where positive is for charge
and negative is for discharge
Units: mA
Range: 0 to 32,767mA for charge or 0 to
–32,768mA for discharge
Granularity: 0.2% of the DesignCapacity or better
14
bq2040