Datasheet

DS2762 High-Precision Li+ Battery Monitor With Alerts
21 of 25
Write Data [6Ch, XX]. This command writes data to the DS2762 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 DS2762 ignores the data. Writes to read-only addresses, reserved addresses and locked
EEPROM blocks are ignored. Incomplete bytes are not written. Writes to unlocked EEPROM blocks are to shadow
RAM rather than EEPROM. See the Memory section for more details.
Copy Data [48h, XX]. This command copies the contents of shadow RAM to EEPROM for the 16-byte 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 execution time, t
EEC
, is 2ms typical and starts after the last address bit is transmitted.
Recall Data [B8h, XX]. This command recalls the contents of the 16-byte EEPROM block containing address XX
to shadow RAM.
Lock [6Ah, XX]. This command locks (write-protects) the 16-byte block of EEPROM memory containing memory
address XX. The LOCK bit in the EEPROM register must be set to l before the lock command is executed. If the
LOCK bit is 0, the lock command has no effect. The lock command is permanent; a locked block can never be
written again.
Table 3. Function Commands
COMMAND FUNCTION
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 Bus idle None
Recall Data
Recalls EEPROM block
containing address XX to
shadow RAM
B8h, XX Bus idle None
Lock
Permanently locks the block
of EEPROM
containing address XX
6Ah, XX Bus idle None