beautypg.com

Rainbow Electronics DS2784 User Manual

Page 34

background image

DS2784: 1-Cell Stand-Alone Fuel Gauge IC with Li+ Protector and SHA-1 Authentication

34 of 38

Table 11. All Function Commands

COMMAND HEX

DESCRIPTION

Write Challenge

0C

Writes 64-bit challenge for SHA-1 processing. Required
immediately prior to all Compute MAC and Compute Next Secret
commands.

Compute MAC
Without

ROM ID and Return

MAC

36

Computes hash operation of message block with logical 1s in
place of the ROM ID.

Compute MAC
With

ROM ID and Return MAC

35

Computes hash operation of message block using the ROM ID.

Clear Secret

5A

Clears the 64-bit secret to 0000 0000 0000 0000h.

Compute Next Secret Without
ROM ID

30

Generates new global secret.

Compute Next Secret With
ROM ID

33

Generates new unique secret.

Lock Secret

60

Sets lock bit to prevent changes to the secret.

Read Data

69, XX

Reads data from memory starting at address XX.

Write Data

6C, XX

Writes data to memory starting at address XX.

Copy Data

48, XX

Copies shadow RAM data to EEPROM block containing address
XX.

Recall Data

B8, XX

Recalls EEPROM block containing address XX to RAM.

Lock 6A,

XX

Permanently locks the block of EEPROM
containing address XX.

Set Overdrive

8B

Sets 1-Wire interface timings to overdrive.

Clear Overdrive

8D

Sets 1-Wire interface timings to standard (factory default).

Reset

C4

Resets DS2784 (software POR).