DS2780 Standalone Fuel Gauge IC
25 of 31
FUNCTION COMMANDS
After successfully completing one of the net address commands, the bus master can access the features of the
DS2780 with any of the function commands described in the following paragraphs. The name of each function is
followed by the 8-bit opcode for that command in square brackets. The function commands are summarized in
Table 4.
Read Data [69h, XX]. This command reads data from the DS2780 starting at memory address XX. The LSb of the
data in address XX is available to be read immediately after the MSb of the address has been entered. Because
the address is automatically incremented after the MSb of each byte is received, the LSb of the data at address XX
+ 1 is available to be read immediately after the MSb of the data at address XX. If the bus master continues to read
beyond address FFh, data is read starting at memory address 00 and the address is automatically incremented
until a reset pulse occurs. Addresses labeled “Reserved” in the memory map contain undefined data values. The
read data command can be terminated by the bus master with a reset pulse at any bit boundary. Reads from
EEPROM block addresses return the data in the shadow RAM. A Recall Data command is required to transfer data
from the EEPROM to the shadow. See the Memory section for more details.
Write Data [6Ch, XX]. This command writes data to the DS2780 starting at memory address XX. The LSb of the
data to be stored at address XX can be written immediately after the MSb of address has been entered. Because
the address is automatically incremented after the MSb of each byte is written, the LSb to be stored at address XX
+ 1 can be written immediately after the MSb to be stored at address XX. If the bus master continues to write
beyond address FFh, the data starting at address 00 is overwritten. Writes to read-only addresses, reserved
addresses and locked EEPROM blocks are ignored. Incomplete bytes are not written. Writes to unlocked EEPROM
block addresses modify the shadow RAM. A Copy Data command is required to transfer data from the shadow to
the EEPROM. See the Memory section for more details.
Copy Data [48h, XX]. This command copies the contents of the EEPROM shadow RAM to EEPROM cells for the
EEPROM block containing address XX. Copy data commands that address locked blocks are ignored. While the
copy data command is executing, the EEC bit in the EEPROM register is set to 1 and writes to EEPROM
addresses are ignored. Reads and writes to non-EEPROM addresses can still occur while the copy is in progress.
The copy data command takes t
EEC
time to execute, starting on the next falling edge after the address is
transmitted.
Recall Data [B8h, XX]. This command recalls the contents of the EEPROM cells to the EEPROM shadow memory
for the EEPROM block containing address XX.
Lock [6Ah, XX]. This command locks (write-protects) the block of EEPROM containing memory address XX. The
LOCK bit in the EEPROM register must be set to 1 before the lock command is executed. To help prevent
unintentional locks, one must issue the lock command immediately after setting the LOCK bit (EEPROM register,
address 1Fh, bit 06) to a 1. If the LOCK bit is 0 or if setting the lock bit to 1 does not immediately precede the lock
command, the lock command has no effect. The lock command is permanent; a locked block can never be written
again.
DS2780 Standalone Fuel Gauge IC
26 of 31
Table 4. Function Commands
COMMAND
DESCRIPTION
COMMAND
PROTOCOL
BUS STATE
AFTER
COMMAND
PROTOCOL
BUS DATA
Read Data
Reads data from
memory starting at
address XX
69h, XX Master Rx
Up to 256 bytes of
data
Write Data
Writes data to
memory starting at
address XX
6Ch, XX Master Tx
Up to 256 bytes of
data
Copy Data
Copies shadow RAM
data to EEPROM
block containing
address XX
48h, XX Master Reset None
Recall Data
Recalls EEPROM
block containing
address XX to RAM
B8h, XX Master Reset None
Lock
Permanently locks
the block of EEPROM
containing address
XX
6Ah, XX
Master Reset
None
DS2780 Standalone Fuel Gauge IC
27 of 31
Figure 21. Net Address Command Flow Chart
MASTER TX
RESET PULSE
DS2780 Tx
PRESENCE PULSE
MASTER Tx NET
ADDRESS
COMMAND
55h
MATCH
33h / 39h
READ
F0h
SEARCH
CCh
SKIP
DS2780 Tx
FAMILY CODE
1 BYTE
DS2780 Tx
SERIAL NUMBER
6 BYTES
DS2780 Tx
CRC
1 BYTE
MASTER TX
BIT 0
BIT 0
MATCH ?
MASTER TX
BIT 1
DS2780 Tx BIT 0
DS2780 Tx BIT 0
MASTER Tx BIT 0
BIT 0
MATCH ?
DS2780 Tx BIT 1
DS2780 Tx BIT 1
MASTER Tx BIT 1
BIT 1
MATCH ?
BIT 1
MATCH ?
MASTER TX
FUNCTION
COMMAND
MASTER X T
BIT 63
DS2780 Tx BIT 63
DS2780 Tx BIT 63
MASTER Tx BIT 63
BIT 63
MATCH ?
MASTER TX
FUNCTION
COMMAND
YES
NO NO NO
NO
YESYES
NO NO
NO NO
YESYES
YES
YESYES
NO
YES
A5h
RESUME
YES
NO
RESUME
FLAG SET ?
MASTER TX
FUNCTION
COMMAND
YES
NO
SET
RESUME
FLAG
CLEAR RESUME
CLEAR RESUME
CLEAR RESUME

DS2780G+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Battery Management Stand-Alone 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