ADP1053 AD [Analog Devices], ADP1053 Datasheet - Page 39

no-image

ADP1053

Manufacturer Part Number
ADP1053
Description
3-Channel Digital
Manufacturer
AD [Analog Devices]
Datasheet
Data Sheet
3.
Note that the block read command to the INFO block can read
a maximum of 128 bytes. However, only the first two bytes are
used to store the first flag information.
Read from Main Block, Page 0 and Page 1
Page 0 and Page 1 of the main block are reserved for storing the
default settings and user settings, respectively, and are meant to
prevent third-party access to this data. To read from Page 0 or
Page 1, the user must first unlock the EEPROM (see the Unlock
the EEPROM section). After the EEPROM is unlocked, Page 0
and Page 1 are readable using the EEPROM_DATA_xx
commands, as described in the Read from Main Block, Page 2
to Page 15 section. Note that when the EEPROM is locked, a
read from Page 0 or Page 1 returns invalid data.
Read from Main Block, Page 2 to Page 15
Data in Page 2 to Page 15 of the main block is always readable,
even with the EEPROM locked. The data in the EEPROM main
block can be read one byte at a time or in multiple bytes in series
using the EEPROM_DATA_xx commands (Command 0xB0 to
Command 0xBF).
Before executing this command, the user must program the
number of bytes to read using the EEPROM_NUM_RD_BYTES
command (Command 0xD2). The user can also program the offset
from the page boundary where the first read byte is returned using
the EEPROM_ADDR_OFFSET command (Command 0xD3).
In the following example, three bytes from Page 4 are read from
the EEPROM, starting from the fifth byte of that page.
1.
2.
3.
Note that the block read command can read a maximum of
256 bytes for any single transaction.
S
S
S
MASTER TO SLAVE
SLAVE TO MASTER
MASTER TO SLAVE
SLAVE TO MASTER
MASTER TO SLAVE
SLAVE TO MASTER
Read two bytes from the INFO block.
Set number of return bytes = 3.
Set address offset = 5.
Read three bytes from Page 4.
7-BIT SLAVE
S
7-BIT SLAVE
7-BIT SLAVE
ADDRESS
ADDRESS
ADDRESS
MASTER TO SLAVE
SLAVE TO MASTER
BYTE COUNT =
7-BIT SLAVE
ADDRESS
0x03
BYTE COUNT =
0x80
W
W
W
W
A
A
A
A
DATA BYTE
A
A
0xD3
0xB4
0xF1
1
DATA BYTE
0xD2
1
A
A
A
A
0x00
A
...
Sr
A
Sr
DATA BYTE
7-BIT SLAVE
7-BIT SLAVE
DATA BYTE
ADDRESS
0x03
A
ADDRESS
3
2
0x05
A
A
R
A
R
P
A
P
A
P
A
P
Rev. A | Page 39 of 84
WRITE OPERATION (BYTE WRITE AND BLOCK
WRITE)
Write to INFO Block
The user cannot write directly to the INFO block; this block is
used by the
First Flag ID Recording section).
Write to Main Block, Page 0 and Page 1
Page 0 and Page 1 of the main block are reserved for storing the
default settings and user settings, respectively. The user cannot
perform a direct write operation to Page 0 or Page 1 using the
EEPROM_DATA_xx commands. A user write to Page 0 or Page 1
returns a not-acknowledge. To program the register contents of
Page 1 of the main block, it is recommended that the STORE_
USER_ALL command be used (Command 0x15). See the Save
Register Settings to User Settings section.
Write to Main Block, Page 2 and Page 3
Page 2 and Page 3 of the main block are reserved for internal
use and their contents should not be written to. Only Page 4
to Page 15 should be used to store data.
Write to Main Block, Page 4 to Page 15
Before performing a write to Page 4 through Page 15 of the
main block, the user must first unlock the EEPROM (see the
Unlock the EEPROM section).
Data in Page 4 to Page 15 of the EEPROM main block can be
programmed (written to) one byte at a time or in multiple
bytes in series using the EEPROM_DATA_xx commands
(Command 0xB0 to Command 0xBF). Before executing this
command, the user can program the offset from the page
boundary where the first byte is written using the EEPROM_
ADDR_OFFSET command (Command 0xD3).
If the targeted page has not yet been erased, the user can erase
the page as described in the Main Block Page Erase section.
In the following example, four bytes are written to Page 9,
starting from the 256
1.
2.
Note that the block write command can write a maximum of
256 bytes for any single transaction.
S
S
MASTER TO SLAVE
SLAVE TO MASTER
MASTER TO SLAVE
SLAVE TO MASTER
7-BIT SLAVE
Set address offset = 256.
Write four bytes to Page 9.
ADDRESS
7-BIT SLAVE
ADDRESS
DATA BYTE 1
ADP1053
W
A
W
th
to store the first flag information (see the
byte of that page.
A
0xD3
A
...
0xB9
A
DATA BYTE 4
0x01
A
A
BYTE COUNT =
A
0x00
ADP1053
P
4
A
P
A

Related parts for ADP1053