beautypg.com

Ds 2 7 8 8, Stand-alone fuel-gauge ic with led display drivers – Rainbow Electronics DS2788 User Manual

Page 26

background image

D

S

2

7

8

8

Copy Data [48h, XX]. This command copies the con-
tents 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 con-
tents 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 memory 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 imme-

diately precede the lock command, the lock command

has no effect. The lock command is permanent; a

locked block can never be written again.

Stand-Alone Fuel-Gauge IC with
LED Display Drivers

26

______________________________________________________________________________________

Table 5. 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