19-4683; Rev 1; 7/09 Current Monitor and Accumulator with Integrated Sense Resistor The DS2741 current monitor/accumulator is a complete current-sensing, measuring, and accumulation device tailored for cost-sensitive, battery-powered applications in a small 3mm x 3mm TDFN package. As a result, the DS2741 is a key component in battery-charge control and remaining capacity-estimation applications. Through its I2C interface, the DS2741 gives the host system access to current measurement and accumulation registers. The 7-bit slave address is factory programmable, allowing up to 128 devices to be individually addressed by the host system. Applications Cell Phones Complete, Low-Cost, Integrated Current-Sensing and Accumulation Solution with Serial Digital Output On-Board 38m Sense Resistor Current Measurement: Signed 10-Bit Bidirectional Measurement 2.5A Dynamic Range 1% Error at +25C 2% Error Over Temperature Current Accumulation: 0.247mAhr LSB 8.1Ahrs Full-Scale Range Industry-Standard I2C Interface with FactoryProgrammable Slave Address PDAs Battery Monitor/Rechargers 2.5V to 4.5V Single-Supply Operation Ordering Information PART Features Low-Power Consumption: Active Current: 60A (typ) Sleep Current: 1A (typ) TEMP RANGE PIN-PACKAGE DS2741N+ -20C to +70C 14 TDFN-EP* -20C to +70C Operating Range DS2741N+T -20C to +70C 14 TDFN-EP* 14-Pin TDFN (3mm x 3mm x 0.8mm) +Denotes a lead(Pb)-free/RoHS-compliant package. T = Tape and reel. *EP = Exposed pad. Pin Configuration Typical Operating Circuit TOP VIEW RS- RS- RS- RS- SLP GND DNC CHARGER/ LOAD 14 RS+ 13 12 11 10 9 8 RSDC-DC CONVERTER DS2741 VCC Li + BATTERY 1.8V SLP 2.2k EP* + 2.2k DS2741 0.1F GND SDA SCL MICROPROCESSOR 1 2 3 4 5 6 7 RS+ RS+ RS+ RS+ SDA SCL VCC TDFN *EXPOSED PAD ________________________________________________________________ Maxim Integrated Products For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642, or visit Maxim's website at www.maxim-ic.com. 1 DS2741 General Description DS2741 Current Monitor and Accumulator with Integrated Sense Resistor ABSOLUTE MAXIMUM RATINGS Pulsed Internal Sense Resistor Current ..................................10A for <100s/s, <1000 pulses Operating Temperature Range ...........................-20C to +70C Storage Temperature Range .............................-55C to +125C Soldering Temperature...........................Refer to the IPC/JEDEC J-STD-020 Specification. Voltage Range on VCC Relative to GND ...............-0.5V to +6.0V Voltage Range on SDA, SCL, RS+, RS-, SLP Relative to GND.....-0.5V to (VCC + 0.5V), not to exceed +6.0V Continuous Internal Sense Resistor Current ......................2.7A Stresses beyond those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. RECOMMENDED OPERATING CONDITIONS (TA = -20C to +70C.) PARAMETER SYMBOL CONDITIONS TYP 2.5 MAX UNITS 4.5 V Supply Voltage VCC Input Logic-High: SCL, SDA VIH Input Logic-Low: SCL, SDA VIL Input Logic-High: SLP VIH Input Logic-Low: SLP VIL 0.3 x VCC V tRAMP 25 ms TYP MAX UNITS 60 90 A 1 2 A Power-Up Ramp Time from 0V to VCCMIN (Note 1) MIN 1.5 V 0.4 0.7 x VCC V V DC ELECTRICAL CHARACTERISTICS (2.5V VCC 4.5V, TA = -20C to +70C.) PARAMETER SYMBOL Active Current IACTIVE Sleep-Mode Current I SLEEP Output Logic-Low: SDA VOL Internal Current-Sense Resistor Value RSNS Current Resolution ILSB CONDITIONS MIN SLP = SCL = SDA = VCC SLP = 0V I OL = 4mA (Note 1) 0.4 +25C V 38 45 2.64 mA Current Full-Scale Magnitude IFS (Note 2) Current-Sense Accuracy at +25C ATL I SENSE at 1.5A 1 3 % Current-Sense Accuracy from 0C to +70C ATL I SENSE at 1.5A 2 5 % Current Sampling Rate tCSR (Note 3) Accumulator Resolution qCA Internal Time-Base Accuracy Current-Sense Offset 2 t ERR1 (Note 4) t ERR2 (Note 4) Measured with RS+ and RS- shorted 2.54 m 2.7 A 200 s 0.247 mAh 1 3 6.5 -20 _______________________________________________________________________________________ +20 % mA Current Monitor and Accumulator with Integrated Sense Resistor DS2741 TEMPERATURE SENSOR CHARACTERISTICS (VCC = +2.5V to +4.5V, TA = -20C to +70C, unless otherwise noted.) PARAMETER SYMBOL CONDITIONS MIN TYP Temperature Error MAX UNITS 5 C MAX UNITS 400 kHz AC ELECTRICAL CHARACTERISTICS: I2C INTERFACE (2.5V VCC 4.5V, TA = -20C to +70C, timing referenced to VIL(MAX) and VIH(MIN). See Figure 4.) PARAMETER SYMBOL CONDITIONS fSCL Bus Free Time Between STOP and START Conditions tBUF 1.3 s Hold Time (Repeated) START Condition tHD:STA 0.6 s tLOW 1.3 s High Period of SCL 0 TYP SCL Clock Frequency Low Period of SCL (Note 5) MIN tHIGH 0.6 Data Hold Time tHD:DAT 0 s Data Setup Time tSU:DAT 100 ns START Setup Time tSU:STA 0.6 s 0.9 s SDA and SCL Rise Time tR (Note 6) 20 + 0.1CB 300 ns SDA and SCL Fall Time tF (Note 6) 20 + 0.1CB 300 ns STOP Setup Time tSU:STO SDA and SCL Capacitive Loading CB 0.6 (Note 6) s 400 pF Note 1: All voltages are referenced to GND. Currents entering the IC are specified positive and currents exiting the IC are negative. Note 2: Compensation of the internal sense resistor value for initial tolerance and temperature coefficient of -20C to +70C can reduce the maximum reportable magnitude to 2.5A. Note 3: Current sampling ceases for 2.5ms every 144ms to allow the ADC to measure temperature. Note 4: Typical value for tERR1 is specified at 3.6V and +25C, max value is specified for 0C to +50C. Max value for tERR2 is specified for -20C to +70C. Note 5: Interface timing shown is for fast-mode (400kHz) operation. This device is also backward compatible with standard-mode I2C timing. Note 6: CB--Total capacitance of one bus line in pF; timing referenced to 0.1 x VCC and 0.9 x VCC. _______________________________________________________________________________________ 3 Typical Operating Characteristics (VCC = +2.5V to +4.5V, TA = -20C to +70C, unless otherwise noted.) 40 30 20 1.5 SDA = SCL = VCC SLP = GND TA = +25C SLP = SDA = SCL = VCC = +3.5V 60 SUPPLY CURRENT (A) SLEEP-MODE CURRENT (A) 1.0 0.5 50 40 30 20 10 10 0 0 3.0 3.5 4.0 3.0 3.5 4.5 4.0 -20 -10 0 10 20 30 40 50 60 SUPPLY VOLTAGE (V) SUPPLY VOLTAGE (V) TEMPERATURE (C) SUPPLY CURRENT vs. SCL FREQUENCY DISTRIBUTION OF CURRENT-SENSE OFFSET INITIAL CURRENT-SENSE ACCURACY DISTRIBUTION 90 POPULATION OF PARTS 50 40 30 20 247 SAMPLES 80 70 60 50 POPULATION OF PARTS SLP = SDA = SCL = VCC = +3.5V TA = +25C DS2741 toc05 70 60 0 2.5 4.5 DS2741 toc04 2.5 60 50 40 30 ISENSE AT 1.5A 247 SAMPLES 40 30 20 20 10 10 10 0 0 0 50 100 150 200 250 300 350 400 SCL FREQUENCY (kHz) 4 0 -10 -7 -4 -1 2 5 CURRENT-SENSE OFFSET (mA) 8 -2.0 -1.4 -0.8 70 DS2741 toc06 SUPPLY CURRENT (A) 50 70 DS2741 toc02 SLP = SDA = SCL = VCC TA = +25C 60 2.0 DS2741 toc01 70 SUPPLY CURRENT vs. TEMPERATURE SLEEP-MODE CURRENT vs. SUPPLY VOLTAGE DS2741 toc03 SUPPLY CURRENT vs. SUPPLY VOLTAGE SUPPLY CURRENT (A) DS2741 Current Monitor and Accumulator with Integrated Sense Resistor -0.2 0.4 1.0 1.6 CURRENT-SENSE ACCURACY (%) _______________________________________________________________________________________ Current Monitor and Accumulator with Integrated Sense Resistor PIN NAME FUNCTION 1-4 RS+ Sense Resistor High Side. Connection to high side of internal 38m sense resistor. All RS+ pins must be connected together. 5 SDA Serial Data Input/Output. SDA is the input/output pin for the I2C serial interface. The SDA pin is an open-drain output and requires an external pullup resistor. 6 SCL Serial Clock Input. SCL is used to synchronize data movement on the I2C serial interface. 7 VCC Supply Voltage. Power-supply input. 8 DNC Do Not Connect 9 GND Ground 10 SLP Sleep Input (Active Low). When taken low, the DS2741 is placed in a low-power sleep state where all internal circuitry including the I2C bus is disabled. Toggling the SLP pin low and then back high resets the device and the I2C bus logic. 11-14 RS- Sense Resistor Low Side. Connection to low side of internal 38m sense resistor. All RS- pins must be connected together. -- EP Exposed Pad. Can be left floating. Block Diagram SDA SCL VCC SLP I2C INTERFACE VOLTAGE REFERENCE POWER CONTOL CURRENT REGISTER 10-BIT PLUS SIGN A/D CONVERTER CURRENT ACCUMULATOR REGISTER DS2741 TEMPERATURE REGISTER 38m GND RS+ RS- _______________________________________________________________________________________ 5 DS2741 Pin Description DS2741 Current Monitor and Accumulator with Integrated Sense Resistor Detailed Description The DS2741 is a small, low-cost, current-sensing and accumulation IC that is intended for current-monitoring applications. The differential voltage measured across the on-chip 38m sense resistor is digitized by an internal ADC that provides an accurately scaled digital signed 10-bit value that represents bidirectional current up to 2.5A. The measured current result is reported in an internal SRAM register that can be read using the I 2 C interface. After each current measurement, the signed result value is added to an accumulator in order to maintain a signed accumulated current value with a 0.247mAhr LSB and a full-scale range of 8.1Ahrs. The device can be placed into a low-power sleep mode when current measurements are not needed. to be the filtered voltage drop across the sense resistor. A positive VRS value indicates current is flowing into the battery (charging), while a negative VRS value indicates current is flowing out of the battery (discharging). VRS is measured with a signed resolution of 10 bits. The current register is updated in two's-complement format every 22.7ms with an average of eight readings. Current measurements outside the register range are reported at the range limit. Figure 1 shows the format of the current register. The DS2741 maintains the current register in units of amps, with a resolution of 2.64mA and full-scale range of no less than 2.5A. The DS2741 automatically compensates for internal sense resistor process variations and temperature effects when reporting current. Power Modes Current Accumulator The DS2741 has two power modes: active and sleep. While in active mode, the DS2741 continually measures and accumulates current and provides data to the host system through its I2C interface. In sleep mode, the DS2741 ceases these activities. The DS2741 enters sleep mode whenever an active-low signal is applied to the SLP pin and remains in sleep as long as the SLP pin is held low. Active mode resumes when the SLP pin is returned to a logic-high level. The SLP pin resets the Current and Temperature registers, but not the Current Accumulator register. The current accumulator facilitates remaining capacity estimation by tracking the net current flow into and out of the battery. Current flow into the battery increments the current accumulator, while current flow out of the battery decrements it. The DS2741 maintains the current accumulator 0.247mAhrs resolution and full-scale value of 8.1Ahrs range. Data is maintained in the current accumulator in two's-complement format. Figure 2 shows the format of the current accumulator. The current accumulator is a read/write register that can be altered by the host system as needed. The Current Accumulator register is not reset when the DS2741 is in sleep mode. Current Measurement In active mode, the DS2741 continually measures the current flow into and out of the battery by measuring the voltage drop across the internally integrated 38m current-sense resistor. The DS2741 considers the voltage difference between pins RS+ and RS- (VRS = VRS+ - VRS-) Temperature Measurement The on-board temperature sensor measures temperatures from +127C to -128C. The LSb of register 14h has a 1C bit weight. See Figure 3 for the temperature register's two's-complement format. MSB--ADDRESS 16h S 29 28 27 26 25 LSB--ADDRESS 17h 24 MSb 23 22 LSb MSb 28 27 21 20 X X X X X LSb Figure 1. Current Register Format MSB--ADDRESS 10h S 214 213 212 211 210 LSB--ADDRESS 11h 29 MSb LSb 26 25 24 23 22 MSb Figure 2. Current Accumulator Register Format ADDRESS 14h S 26 25 24 23 MSb 22 21 20 LSb Figure 3. Temperature Register Format 6 _______________________________________________________________________________________ 21 20 LSb Current Monitor and Accumulator with Integrated Sense Resistor Table 1. Register Map ADDRESS (HEX) 00h to 0Fh DESCRIPTION READ/WRITE Reserved -- 10h and 11h Current Accumulator Register 12h and 13h Reserved R/W -- 14h Temperature Register R 15h Reserved -- 16h and 17h Current Register 18h to FFh R Reserved -- I2C Bus Interface I2C Definitions The following terminology is commonly used to describe I2C data transfers. Master Device: The master device controls the slave devices on the bus. The master device generates SCL clock pulses and START and STOP conditions. Slave Devices: Slave devices send and receive data at the master's request. Bus Idle or Not Busy: Time between STOP and START conditions when both SDA and SCL are inactive and in their logic-high states. When the bus is idle it often initiates a low-power mode for slave devices. START Condition: A START condition is generated by the master to initiate a new data transfer with a slave. Transitioning SDA from high to low, while SCL remains high, generates a START condition. See Figure 4 for applicable timing. STOP Condition: A STOP condition is generated by the master to end a data transfer with a slave. Transitioning SDA from low to high, while SCL remains high, generates a STOP condition. See Figure 4 for applicable timing. Repeated START Condition: The master can use a repeated START condition at the end of one data transfer to indicate that it will immediately initiate a new data transfer following the current one. Repeated STARTs are commonly used during read operations to identify a specific memory address to begin a data transfer. A repeated START condition is issued identically to a normal START condition. See Figure 4 for applicable timing. Bit Write: Transitions of SDA must occur during the low state of SCL. The data on SDA must remain valid and unchanged during the entire high pulse of SCL plus the setup and hold-time requirements (see Figure 4). Data is shifted into the device during the rising edge of the SCL. SDA tBUF tF tHD:STA tLOW tSP SCL tHIGH tHD:STA tHD:DAT STOP tSU:STA tR START tSU:STO tSU:DAT REPEATED START NOTE: TIMING IS REFERENCED TO VIL(MAX) AND VIH(MIN). Figure 4. I2C Timing Diagram _______________________________________________________________________________________ 7 DS2741 Registers The DS2741 has 2-byte registers for current measurement and accumulation. When the MSB of a 2-byte register is read, both the MSB and LSB are latched and held for the duration of the read data command to prevent updates during the read and ensure synchronization between the two register bytes. For consistent results, always read the MSB and the LSB of a 2-byte register during the same read data command sequence. Current Monitor and Accumulator with Integrated Sense Resistor DS2741 Bit Read: At the end a write operation, the master must release the SDA bus line for the proper amount of setup time (Figure 4) before the next rising edge of SCL during a bit read. The device shifts out each bit of data on SDA at the falling edge of the previous SCL pulse, and the data bit is valid at the rising edge of the current SCL pulse. Remember that the master generates all SCL clock pulses, including when it is reading bits from the slave. Acknowledgement (ACK and NACK): An acknowledgement (ACK) or not acknowledge (NACK) is always the 9th bit transmitted during a byte transfer. The device receiving data (the master during a read or the slave during a write operation) performs an ACK by transmitting a zero during the 9th bit. A device performs a NACK by transmitting a one during the 9th bit. Timing for the ACK and NACK is identical to all other bit writes (see Figure 4). An ACK is the acknowledgment that the device is properly receiving data. A NACK is used to terminate a read sequence or as an indication that the device is not receiving data. Byte Write: A byte write consists of 8 bits of information transferred from the master to the slave (most significant bit first) plus a 1-bit acknowledgement from the slave to the master. The 8 bits transmitted by the master are done according to the bit-write definition and the acknowledgement is read using the bit-read definition. Byte Read: A byte read is an 8-bit information transfer from the slave to the master plus a 1-bit ACK or NACK from the master to the slave. The 8 bits of information that are transferred (most significant bit first) from the slave to the master are read by the master using the bit-read definition, and the master transmits an ACK using the bit-write definition to receive additional data bytes. The master must NACK the last byte read to terminate communication so that the slave returns control of SDA to the master. Slave Address Byte: Each slave on the I2C bus responds to a slave addressing byte sent immediately following a START condition. The slave address byte (Figure 5) contains the slave address in the most significant 7 bits and the R/W bit in the least significant bit. The DS2741's default factory programmed 7-bit slave address is 0110100b (binary) or 68h (hex). By writing the correct slave address with R/W = 0, the master indicates it will write data to the slave. If R/W = 1, the master reads data from the slave. If an incorrect slave address is written, the DS2741 assumes the master is communicating with another 8 7-BIT SLAVE ADDRESS 0 1 1 0 1 0 0 R/W MOST SIGNIFICANT BIT DETERMINES READ OR WRITE Figure 5. DS2741 Slave Address Byte I2C device and ignores the communications until the next start condition is sent. This value can be changed at the factory to match the user's need. Contact the factory for more details on custom I2C device addresses for the DS2741. Memory Address: During an I2C write operation, the master must transmit a memory address to identify the memory location where the slave is to store the data. The memory address is always the second byte transmitted during a write operation following the slave address byte. I2C Communication See Figure 6 for examples of I2C communication. Writing a Single Byte to a Slave: The master must generate a START condition, write the slave address byte (R/W = 0), write the memory address, write the byte of data, and generate a STOP condition. Remember that the master must read the slave's acknowledgement during all byte-write operations. Writing Multiple Bytes to a Slave: To write multiple bytes to a slave, the master generates a START condition, writes the slave address byte (R/W = 0), writes the memory address, writes up to 8 data bytes, and generates a STOP condition. Reading a Single Byte from a Slave: Unlike the write operation that uses the memory address byte to define where the data is to be written, the read operation occurs at the present value of the memory address counter. To read a single byte from the slave the master generates a START condition, writes the slave address byte with R/W = 1, reads the data byte with a NACK to indicate the end of the transfer, and generates a STOP condition. Manipulating the Address Counter for Reads: A dummy write cycle can be used to force the address counter to a particular value. To do this the master generates a START condition, writes the slave address byte (R/W = 0), writes the memory address where it desires to read, generates a repeated START condition, writes the slave address byte (R/W = 1), reads data with ACK or NACK as applica- _______________________________________________________________________________________ Current Monitor and Accumulator with Integrated Sense Resistor DS2741 COMMUNICATIONS KEY NOTES S START A ACK P STOP N NACK SR REPEATED START WHITE BOXES INDICATE THE MASTER IS CONTROLLING SDA SHADED BOXES INDICATE THE SLAVE IS CONTROLLING SDA X X X X X X X X 1) ALL BYTES ARE SENT MOST SIGNIFICANT BIT FIRST. 2) THE FIRST BYTE SENT AFTER A START CONDITION IS ALWAYS THE SLAVE ADDRESS FOLLOWED BY THE READ/WRITE BIT. 8-BIT ADDRESS OR DATA WRITE TWO BYTES WITH A SINGLE TRANSACTION TO SLAVE ADRESS 68h S 0 1 1 0 1 0 0 0 A MEMORY ADDRESS A DATA A DATA A P READ A SINGLE BYTE WITH A DUMMY WRITE CYCLE TO SET THE ADDRESS COUNTER FROM SLAVE ADDRESS 68h S 0 1 1 0 1 0 0 0 A MEMORY ADDRESS A SR 0 1 1 0 1 0 0 1 A DATA N DATA A P READ TWO BYTES WITH A DUMMY WRITE CYCLE TO SET THE ADDRESS COUNTER FROM SLAVE ADDRESS 68h S 0 1 1 0 1 0 0 0 A MEMORY ADDRESS A SR 0 1 1 0 1 0 0 1 A DATA N P Figure 6. I2C Communications Examples ble, and generates a STOP condition. See Figure 6 for a read example using the repeated START condition to specify the starting memory location. Reading Multiple Bytes from a Slave: The read operation can be used to read multiple bytes with a single transfer. When reading bytes from the slave, the master simply ACKs the data byte if it desires to read another byte before terminating the transaction. After the master reads the last byte, it NACKs to indicate the end of the transfer and generates a STOP condition. This can be done with or without modifying the address counter's location before the read cycle. The DS2741's address counter does not wrap on page boundaries during read operations, but the counter rolls from its uppermost memory address FFh to 00h if the last memory location is read during the read transaction. Applications Information Power-Supply Decoupling To achieve best results, it is recommended that the power supply is decoupled with a 0.01F or a 0.1F capacitor. Use high-quality, ceramic, surface-mount capacitors, and mount the capacitors as close as possible to the VCC and GND pins to minimize lead inductance. SDA and SCL Pullup Resistors SDA is an open-collector output on the DS2741 that requires a pullup resistor to realize high logic levels. A master using either an open-collector output with a pullup resistor or a push-pull output driver can be used for SCL. Pullup resistor values should be chosen to ensure that the rise and fall times listed in the AC electrical characteristics are within specification. Package Information For the latest package outline information and land patterns, go to www.maxim-ic.com/packages. PACKAGE TYPE PACKAGE CODE DOCUMENT NO. 14 TDFN-EP T1433+2 21-0137 _______________________________________________________________________________________ 9 DS2741 Current Monitor and Accumulator with Integrated Sense Resistor Revision History PAGES CHANGED REVISION NUMBER REVISION DATE 0 8/08 Initial release. -- 7/09 * Current-Sense Accuracy specification at +25C maximum limit changed to 3% in the DC Electrical Characteristics. * Current-Sense Accuracy specification from 0C to +70C maximum limit changed to 5% in the DC Electrical Characteristics. * Current-Sense Offset minimum specification changed to -20mA and the maximum specification changed to +20mA in the DC Electrical Characteristics. 2 1 DESCRIPTION Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time. 10 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 (c) 2009 Maxim Integrated Products Maxim is a registered trademark of Maxim Integrated Products, Inc. Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Maxim Integrated: DS2741N+T