English
Language : 

BQ2040_15 Datasheet, PDF (11/36 Pages) Texas Instruments – Gas Gauge IC With SMBus Interface
Not Recommended For New Designs
bq2040
1
7
1
S
Battery Address
0001011
0
1
8
1
A Command Code A
Write Word
8
Data byte low
1
8
11
A Data byte high A P
1
7
11
8
11
7
11
S
Battery Address
0001011
0
A Command Code A S Battery Address 1
A
8
1
8
1
Data byte low A Data byte high A P
Read Word
System Host
1
7
11
8
11
7
11
S
Battery Address
0001011
0
A Command Code A S Battery Address 1
A
8
1
Byte Count =N A
8
1
Data byte 1 A
8
1
Data byte 2 A
8
Data byte N
11
AP
Block Read
bq2040
A – ACKNOWLEDGE
A – NOT ACKNOWLEDGE
S – START
P – STOP
FG204001.eps
Figure 3. Host Communication Protocols
n Read block
The particular protocol used is a function of the com-
mand. The protocols used are shown in Figure 3.
Host-to-bq2040 Messages (see Table 4)
Input/Output: unsigned integer. This sets/returns
the value where the Remaining_Time_Alarm bit is
set in Battery Status.
Units: minutes
Range: 0 to 65,535 minutes
ManufacturerAccess() (0x00)
This read/write word is an open location.
Input/Output: word.
RemainingCapacityAlarm() (0x01)
This function sets or returns the low-capacity alarm
value. When RM falls below the RemainingCapac-
ityAlarm value initialized from the external EE-
PROM, the Remaining_Capacity_Alarm bit is set in
BatteryStatus. The system may alter this alarm dur-
ing operation.
Input/Output: unsigned integer. This sets/returns
the value where the Remaining_Capacity_Alarm
bit is set in Battery Status.
Units: mAh
Range: 0 to 65,535mAh
RemainingTimeAlarm() (0x02)
This function sets or returns the low remaining time
alarm value. When the AverageTimeToEmpty falls be-
low this value, the Remaining_Time_Alarm bit in Bat-
teryStatus is set. The default value for this register is
programmed in EE 0x02-0x03.. The system may alter
this alarm during operation.
BatteryMode() (0x03)
This read/write word selects the various battery opera-
tional modes. The bq2040 supports the battery capacity
information specified in mAh. This function also deter-
mines whether the bq2040 charging values are broad-
casted to the Smart Battery Charger address.
Writing bit 14 to 1 disables voltage and current Master
Mode broadcasts to the Smart Battery Charger. Bit 14 is
automatically reset to 0 if SMBC and SMBD = 0 for
greater than 2 seconds (i.e. pack removal).
Writing bit 13 to 1 disables all Master Mode broadcasts
including alarm messages to the Smart Battery Charger
and Host. The bit remains set until overwritten. Pro-
gramming bit 3 of FLAGS2 in the EEPROM (EE0x3f)
initializes this bit to a 1.
Bit 7 is the condition request flag. It is set when the
bq2040 is initialized from the EEPROM and reset when a
learning cycle has been completed. It is also set to a 1 if
CycleCount increases by 32 without a new learning cycle.
AtRate() (0x04)
This read/write word is the first half of a two-function
set used to set the AtRate value used in calculations
made by the AtRateTimeToFull and AtRateTime-
ToEmpty.
11