DS2756: High-Accuracy Battery Fuel Gauge with Programmable Suspend Mode
10 of 27
PROGRAMMABLE I/O
The PIO pin can be configured as a general purpose programmable I/O pin, or as an interrupt output. To use the
PIO pin in the programmable I/O mode described in this section, the PIO interrupt method must not be enabled.
See the Interrupt Signaling section for information on disabling interrupts.
As a programmable I/O pin, PIO provides a digital input or an open drain digital output. Writing a 1 to the PIO bit in
the Special Feature Register disables the output driver. With the PIO pin Hi-Z, it can be used as an input. The logic
level of the PIO pin is reported in the Special Feature Register through the serial interface.
To use the PIO pin as an output, write the desired output value to the PIO bit in the Special Feature Register.
Writing a 0 to the PIO bit enables the PIO output driver, pulling the PIO pin to V
SS
. As stated above, writing a 1 to
the PIO bit forces the pin to a Hi-Z state. A pullup resistor or current source must be provided to force the pin high.
The PIO pin can be biased several volts above VDD allowing inter-operation with a system voltage which is higher
than the battery voltage. Consult the Absolute Maximum Ratings table when operating the PIO pin significantly
above VDD. The DS2756 turns off the PIO output driver and sets the PIO bit high when in Sleep mode or when DQ
is low for more than t
SLEEP
, regardless of the state of the PMOD bit.
INTERRUPT SIGNALING
The DS2756 interrupt can be configured as the Suspend interrupt that is signaled on the PIO pin, or as an Alarm
Comparator interrupt (based on Current Accumulator and Temperature Alarm Comparator thresholds) that is
signaled on either the PIO pin or DQ pin.
The Suspend interrupt is used to signal that the current level is greater than the user programmable Charge
Suspend Threshold or less than (more negative) than the Discharge Suspend Threshold. The Suspend interrupt is
enabled by setting one or both of the PIE bits in the Status Register. The PIE bits select one of three intervals for
the Suspend Period, t
SUS
. If either PIE bit is set, the Alarm Comparator interrupt is disabled. The Suspend interrupt
event is signaled by internally clearing the PIO bit in the SFR in order to force the PIO output from high to low. The
PIO output remains low in Active mode until the PIO bit in the SFR is written to a 1 by the host to disable the PIO
output. Note that the PIO output is disabled in Suspend mode, allowing the PIO pin to be pulled high and ensuring
the DS2756 can always signal a Suspend interrupt with a high to low transition.
The Temperature and ACR Alarm Comparator interrupt is enabled by setting the Interrupt Enable (IE) bit in the
Special Feature Register with PIE cleared. When IE is set and both PIE bits are cleared, an interrupt will be
signaled if the Alarm Comparator thresholds are crossed. A 1-Wire RESET always clears the IE bit. The host must
re-enable interrupts by setting IE in the last transaction on the bus. Note that when either PIE bit is set, the state of
IE has no effect.
The interrupt signal pin for the Alarm Comparator interrupt is selected by setting or clearing the Interrupt Output
Select (IOS) bit in the Status Register. When IOS is set, the DQ pin performs Alarm Comparator interrupt signaling,
when IOS is cleared, the PIO pin performs Alarm Comparator interrupt signaling. Note that when either PIE bit is
set, the state of IOS has no effect.
DQ signals an Alarm Comparator interrupt condition by driving the 1-Wire bus low for t
IL
. The DS2756 and all other
1-Wire devices present on the bus interpret this signal as a 1-Wire RESET. A Presence Pulse should be expected
from all 1-Wire devices, including the DS2756 following the alarm interrupt signal. The host system can sense the
alarm interrupt signal on the falling or rising edge of either the RESET or Presence Pulse.
PIO signals an Alarm Comparator interrupt by driving low. PIO remains low until the host clears the condition by
writing a 1 to the PIO bit (bit 6 in the Special Feature Register). A pullup resistor or current source must be
provided to force the pin high. The host must sense the alarm interrupt on the falling edge of PIO.
DS2756: High-Accuracy Battery Fuel Gauge with Programmable Suspend Mode
Table 1. PIO/DQ Pin Function
REGISTER BIT SETTING PIO/DQ PIN FUNCTION
PIE IOS IE PIO
xx x x 0
PIO pin: GPIOOutput LOW
00 x 0 1
PIO pin: GPIOOutput High-Z, Input mode
00 0 1 1 PIO pin: Alarm Comparator Interrupt Output
00 1 1 0
DQ pin: Alarm Comparator Interrupt Output (low for t
IL
)
PIO pin: GPIOOutput LOW
00 1 1 1
DQ pin: Alarm Comparator Interrupt Output (low for t
IL
)
PIO pin: GPIOOutput High-Z, Input mode
01
10
11
x x 1 PIO pin: Suspend Interrupt Output
xDon’t care.
SUSPEND THRESHOLDS
The suspend thresholds set the current level to enter and exit Suspend mode. The threshold levels are
programmable with a magnitude range of 0 to 4mV, and are compared against the value in the Current register.
Values are programmed in two’s complement format with an implied sign bit in a virtual 9
th
bit position. The Charge
Suspend Threshold register is always a positive value. The Discharge Suspend Threshold register is always a
negative value.
The thresholds define an inclusive, continuous range of currents in which the DS2756 enters or re-enters Suspend
mode from Active mode. The Charge Suspend Threshold represents the minimum measured charge current which
will cause the DS2756 to transition modes. The Discharge Suspend Threshold represents the minimum discharge
current which will cause the DS2756 to transition modes.
The user values of the suspend thresholds are programmed into two bytes located within EEPROM block 0. These
memory locations serve as current threshold values only when either PIE bit is set, and can be used as general
purpose EEPROM if PIE = 00b. A copy command is required to save the byte values to EEPROM. See the
Memory section for information on copying shadow RAM to EEPROM.
Figure 9. Charge Suspend Threshold Format
Address 35h
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
MSb LSb
15.625V/R
SNS
11 of 27
Figure 10. Discharge Suspend Threshold Format
Address 34h
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
MSb LSb
15.625V/R
SNS
DS2756: High-Accuracy Battery Fuel Gauge with Programmable Suspend Mode
12 of 27
ALARM COMPARATORS AND INTERRUPT THRESHOLDS
Alarm interrupt threshold values can be programmed by the user in the designated SRAM memory registers in the
formats and locations found in Figure 11. Since these thresholds are located in SRAM memory, they must be
reprogrammed if a loss of power to the DS2756 occurs. The DS2756 generates an alarm interrupt to indicate that
one of the following events has occurred:
Accumulated Current Current Accumulator Interrupt High Threshold
Accumulated Current Current Accumulator Interrupt Low Threshold
Temperature Temperature Interrupt High Threshold
Temperature Temperature Interrupt Low Threshold
The host may then poll the DS2756 to determine which threshold has been met or exceeded.

DS2756E+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Battery Management High-Accuracy Bat Fuel Gauge
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet