Rainbow Electronics MAX6871 User Manual

Page 38

Advertising
background image

MAX6870/MAX6871

directed into the user EEPROM. If the command code is
80h, the data byte must be in the range of 00h to 45h. If
the command code is 81h or 82h, the data byte can be
00h to FFh. A NACK is generated in step 7 if none of the
above conditions are true.

To write a single byte of data to the user or configuration
EEPROM, the 8-bit command code and a single 8-bit
data byte are sent. The following 8-bit data byte is writ-
ten to the addressed EEPROM location.

Block Write

The block write protocol allows the master device to
write a block of data (1 to 16 bytes) to the EEPROM or
to the register bank (see Figure 7). The destination
address must already be set by the send byte or write
byte protocol and the command code must be 83h. If
the number of bytes to be written causes the address
pointer to exceed 45h for the configuration register or
configuration EEPROM, the address pointer stays at
45h, overwriting this memory address with the remain-
ing bytes of data. The last data byte sent is stored at
register address 45h. If the number of bytes to be writ-
ten exceeds the address pointer FFh for the user EEP-
ROM, the address pointer loops back to 00h, and
continues writing bytes until all data is written. The
block write procedure follows:

1) The master sends a start condition.

2) The master sends the 7-bit slave address and a

write bit (low).

3) The addressed slave asserts an ACK on SDA.

4) The master sends the 8-bit command code for

block write (83h).

5) The addressed slave asserts an ACK on SDA.

6) The master sends the 8-bit byte count (1 to 16 bytes) N.

7) The addressed slave asserts an ACK on SDA.

8) The master sends 8-bits of data.

9) The addressed slave asserts an ACK on SDA.

10) Repeat steps 8 and 9 one time.

11) The master generates a stop condition.

Receive Byte

The receive byte protocol allows the master device to
read the register content of the MAX6870/MAX6871
(see Figure 7). The EEPROM or register address must
be preset with a send byte or write word protocol first.
Once the read is complete, the internal pointer increas-
es by one. Repeating the receive byte protocol reads

the contents of the next address. The receive byte pro-
cedure follows:

1) The master sends a start condition.

2) The master sends the 7-bit slave address and a

read bit (high).

3) The addressed slave asserts an ACK on SDA.

4) The slave sends 8 data bits.

5) The master asserts a NACK on SDA.

6) The master generates a stop condition.

Block Read

The block read protocol allows the master device to
read a block of 16 bytes from the EEPROM or register
bank (see Figure 7). Read fewer than 16 bytes of data
by issuing an early STOP condition from the master, or
by generating a NACK with the master. The send byte
or write byte protocol predetermines the destination
address with a command code of 84h. The block read
procedure follows:

1) The master sends a start condition.

2) The master sends the 7-bit slave address and a

write bit (low).

3) The addressed slave asserts an ACK on SDA.

4) The master sends 8 bits of the block read command

(84h).

5) The slave asserts an ACK on SDA, unless busy.

6) The master generates a repeated start condition.

7) The master sends the 7-bit slave address and a

read bit (high).

8) The slave asserts an ACK on SDA.

9) The slave sends the 8-bit byte count (16).

10) The master asserts an ACK on SDA.

11) The slave sends 8 bits of data.

12) The master asserts an ACK on SDA.

13) Repeat steps 8 and 9 fifteen times.

14) The master generates a stop condition.

Address Pointers

Use the send byte protocol to set the register address
pointers before read and write operations. For the con-
figuration registers, valid address pointers range from
00h to 45h. Register addresses outside of this range
result in a NACK being issued from the MAX6870/
MAX6871. When using the block write protocol, the

EEPROM-Programmable Hex/Quad
Power-Supply Sequencers/Supervisors with ADC

38

______________________________________________________________________________________

Advertising