Table 28. command codes – Rainbow Electronics MAX16066 User Manual

Page 41

Advertising
background image

12-Channel/8-Channel, Flash-Configurable System

Managers with Nonvolatile Fault Registers

MAX16065/MAX16066

______________________________________________________________________________________ 41

CRC-8 error check byte is added in the data string dur-
ing each read and/or write sequence. Enable PEC by
writing a ‘1’ to r8Bh[7].
The CRC-8 byte is calculated using the polynomial

C = X

8

+ X

2

+ X + 1

The PEC calculation includes all bytes in the transmis-
sion, including address, command, and data. The PEC
calculation does not include ACK, NACK, START, STOP,
or REPEATED START.

Command Codes

The MAX16065/MAX16066 use eight command codes
for block read, block write, and other commands. See
Table 28 for a list of command codes.
To initiate a software reboot, send A7h using the send byte
format. A software-initiated reboot is functionally the same

as a hardware-initiated power-on reset. During boot-up,
flash configuration data in the range of 230h to 28Ch is
copied to r30h to r8Ch registers in the default page.
Send command code A8h to trigger a fault store to flash.
Configure the Critical Fault Log Control register (6Dh) to
store ADC conversion results and/or fault flags.
While in the flash page, send command code A9h to
access the flash page (addresses from 200h to 28Fh).
Once command code A9h has been sent, all addresses
are recognized as flash addresses only. Send command
code AAh to return to the default page (addresses from
000h to 0FFh). Send command code ABh to access
the user flash-page (addresses from 300h to 3A4h and
3ADh to 3FFh), and send command code ACh to return
to the flash page.

Table

26. SMBus Settings Register

Table

27. Setting the SMBus Slave Address

R = Read/Write select bit.

Table

28. Command codes

REGISTER

ADDRESS

FLASH ADDRESS

BIT RANGE

DESCRIPTION

8Bh

28Bh

[6:0]

SMBus Slave Address Register. Set to 00h to use A0
pin address setting.

[7]

1 = Enable PEC (packet error check).

SLAVE ADDRESSES

A0

SLAVE ADDRESS

0

1010 000R

1

1010 001R

SCL

1010 010R

SDA

1010 011R

COMMAND

CODE

ACTION

A5h

Block write

A6h

Block read

A7h

Reboot flash in register file

A8h

Trigger emergency save to flash

A9h

Flash page access ON

AAh

Flash page access OFF

ABh

User flash access ON (must be in flash page already)

ACh

User flash access OFF (return to flash page)

Advertising