DS2438
7 of 29
OPERATION - CURRENT ACCUMULATORS
The DS2438 tracks the remaining capacity of a battery using the Integrated Current Accumulator (ICA).
The ICA maintains a net accumulated total of current flowing into and out of the battery; therefore, the
value stored in this register is an indication of the remaining capacity in a battery and may be used in
performing fuel gauge functions. In addition, the DS2438 has another register that accumulates only
charging (positive) current (CCA) and one that accumulates only discharging (negative) current (DCA).
The CCA and DCA give the host system the information needed to determine the end of life of a
rechargeable battery, based on total charge/discharge current over its lifetime.
The current measurement described above yields the voltage across sense resistor R
SENS
measured every
27.46 ms. This value is then used to increment or decrement the ICA register, increment the CCA (if
current is positive), or increment the DCA (if current is negative). The ICA is a scaled 8-bit volatile
binary counter that integrates the voltage across R
SENS
over time. The ICA is only
incremented/decremented if the IAD bit is set to 1 in the Status/Configuration Register. Table 5 illustrates
the contents of the ICA. See Memory Map section for the address location of the ICA.
ICA REGISTER FORMAT Table 5
(This register accumulates the voltage measured across current sense resistor R
SENS
. This
value can be used to calculate remaining battery capacity using the equation below.)
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
MSb (unit = 0.4882 mVhr) LSb
Remaining battery capacity is calculated from the ICA value using the equation:
Remaining Capacity
= ICA / (2048 * R
SENS
)
(where R
SENS
is in W)
For example, if a battery pack has 0.625 Ahr of remaining capacity, and the pack uses a 0.025W sense
resistor, the ICA will contain the value 32. From this value, remaining capacity can be calculated to be:
Remaining Capacity = 32 / ( 2048 * 0.025) = 0.625 Ahr
Since the accuracy of the current ADC is +2 LSb, measurements of very small currents can be inaccurate
by a high percentage. Because these inaccuracies can turn into large ICA errors when accumulated over a
long period of time, the DS2438 provides a method for filtering out potentially erroneous small signals so
that they are not accumulated. The DS2438’s Threshold Register specifies a current measurement
magnitude (after offset cancellation) above which the measurement is accumulated in the ICA, CCA and
DCA and below which it is not accumulated. The format of the Threshold Register is shown in Table 6.
The power-on default Threshold Register value is 00h (no threshold).
NOTE:
When writing to the Threshold Register, current measurement must be disabled (IAD bit set to “0”).
DS2438
8 of 29
THRESHOLD REGISTER FORMAT Table 6
TH2 TH1 0 0 0 0 0 0
MSb LSb
TH2
TH1 THRESHOLD
0 0 None (default)
0 1 ±2 LSB
1 0 ±4 LSB
1 1 ±8 LSB
The Charging Current Accumulator (CCA) is a two-byte nonvolatile read/write counter which represents
the total charging current the battery has encountered in its lifetime. It is only updated when current
through R
SENS
, is positive; i.e., when the battery is being charged. Similarly, the Discharge Current
Accumulator (DCA) is a two-byte nonvolatile counter which represents the total discharging current the
battery has encountered over its lifetime.
The CCA and DCA can be configured to function in any of three modes: disabled, enabled with shadow-
to-EEPROM, and enabled without shadow-to-EEPROM. When the CCA and DCA are disabled (by
setting either the IAD bit or the CA bit in the Status/Configuration Register to “0”), the memory in page
07h is free for general purpose data storage. When the CCA and DCA are enabled (by setting both IAD
and CA to “1”), page 07h is reserved for these registers, and none of the bytes in page 07h should be
written to via the 1-Wire bus. When the CCA and DCA are enabled, their values are automatically
shadowed to EEPROM memory by setting the EE bit in the Status/Configuration Register to “1”. When
these registers are configured to shadow to EEPROM, the information will accumulate over the lifetime
of the battery pack and will not be lost when the battery becomes discharged. Shadow-to-EEPROM is
disabled when the EE bit is “0”. Table 7 illustrates the format of the CCA and DCA registers. Table 8
summarizes the modes of operation for ICA, CCA and DCA.
CCA/DCA REGISTER FORMAT Table 7
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
LSB
MSb (unit = 15.625 mVHr) LSb
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
MSB
ICA/CCA/DCA MODES OF OPERATION Table 8
IAD Bit
CA Bit EE Bit ICA CCA/DCA
CCA/DCA Copy-
to-EEPROM
0 X X Inactive Inactive Inactive
1 0 X Active Inactive Inactive
1 1 0 Active Active Inactive
1 1 1 Active Active Active
DS2438
9 of 29
Figure 2 illustrates the activity of the ICA, CCA, and DCA over a sample charge/discharge cycle of a
battery pack, assuming the DS2438 is configured for the ICA to function and the CCA/DCA to function
and shadow data to EEPROM. To simplify the illustration of the accumulators, they are treated as analog
values, although they are digital counters in the DS2438. Note that when the battery becomes fully
discharged, i.e., the ICA value reaches 0, the CCA and DCA register values are maintained.
CURRENT ACCUMULATOR ACTIVITY Figure 2
SENSE RESISTOR SELECTION
The selection of R
SENS
involves a tradeoff. On the one hand, the impedance of R
SENS
must be minimized
to avoid excessive voltage drop during peak current demands. On the other hand, the impedance of R
SENS
should be maximized to achieve the finest resolution for current measurement and accumulation. Table 9
below lists several example R
SENS
values, the LSb of the current calculation ( 1/(4096 * R
SENS
) ) and the
LSb of the remaining capacity calculation ( 1/(2048 * R
SENS
) ). The user should carefully consider
voltage drop at maximum current and required current measurement/accumulation resolution when
selecting R
SENS
.
SENSE RESISTOR TRADEOFFS Table 9
SENSE RESISTOR
VALUE (R
SENS
)
CURRENT lsb
REMAINING
CAPACITY lsb
MAX REMAINING
CAPACITY VALUE
25 mW
9.76 mA 19.53 mAHr 5000 mAhr
50 mW
4.88 mA 9.76 mAHr 2500 mAhr
100 mW
2.44 mA 4.88 mAHr 1250 mAhr
200 mW
1.22 mA 2.44 mAHr 625 mAhr
OPERATION - ELAPSED TIME METER
An internal oscillator is used as the timebase for the timekeeping functions. The elapsed time functions
are double buffered, allowing the master to read elapsed time without the data changing while it is being
read. To accomplish this, a snapshot of the counter data is transferred to holding registers which the user
accesses. This occurs after the 8th bit of the Recall Memory command.
The elapsed time meter (ETM) is a 4-byte binary counter with 1-second resolution. The ETM can
accumulate 136 years of seconds before rolling over. Time/date is represented by the number of seconds
since a reference point, which is determined by the user. For example, 12:00 A.M., January 1, 1970 could
be used as a reference point.

DS2438Z

Mfr. #:
Manufacturer:
Description:
IC MONITOR SMART BATTERY 8-SOIC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet