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

no-image

ADP1053

Manufacturer Part Number
ADP1053
Description
3-Channel Digital
Manufacturer
AD [Analog Devices]
Datasheet
ADP1053
EEPROM
The
communicate with the embedded 8K × 8-byte EEPROM. The
EEPROM, also called Flash®/EE, is partitioned into two major
blocks: the INFO block and the main block. The INFO block
contains 128 8-bit bytes, and the main block contains 8K 8-bit
bytes. The main block is further partitioned into 16 pages, each
page containing 512 bytes.
FEATURES
The function of the EEPROM controller is to decode the
operation that is requested by the
the required timing to the EEPROM interface. Data is written
to or read from the EEPROM, as requested by the decoded
command. Features of the EEPROM controller include
OVERVIEW
The EEPROM controller provides an interface between the
ADP1053
control data access to and from the EEPROM through this
controller interface. Separate PMBus commands are available
for the read, write, and erase operations to the EEPROM.
Communication is initiated by the master device sending a
command to the PMBus slave device to access data from or
send data to the EEPROM. Read, write, and erase commands
are supported. Data is transferred between devices in a byte
wide format. Using a read command, data is received from the
EEPROM and transmitted to the master device. Using a write
command, data is received from the master device and stored
in the EEPROM through the EEPROM controller.
PAGE ERASE OPERATION
INFO Block Page Erase
The INFO block consists of 128 bytes organized as a single
page. The page erase operation to the INFO block erases (sets
high) all bits of the 128-byte page. The INFO block erase oper-
ation is part of a sequence of actions that occurs when the first
flag information is saved into the EEPROM. Essentially, the
page is first erased before the contents of the first flag registers
are written to the erased page. There is no separate command to
erase the INFO block.
ADP1053
Separate page erase functions for each page in the
EEPROM
Single-byte and multibyte (block) read of the INFO block
with up to 128 bytes at a time
Single-byte and multibyte (block) write and read of the
main block with up to 256 bytes at a time
Automatic upload on start-up from the user settings to
the internal registers
Separate commands to upload and download data from the
factory default or user settings to the internal registers
core logic and the built-in EEPROM. The user can
has a built-in EEPROM controller that is used to
ADP1053
and to provide
Rev. A | Page 38 of 84
Main Block Page Erase
The main block consists of 16 equivalent pages of 512 bytes each,
numbered Page 0 to Page 15. 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 page erase operation
to Page 0 or Page 1. Page 2 and Page 3 are reserved for internal
use, and their contents should not be erased.
Only Page 4 to Page 15 of the main block should be used to store
data. To erase any page from Page 4 to Page 15, the EEPROM
must first be unlocked for access. For instructions on how to
unlock the EEPROM, see the Unlock the EEPROM section.
Page 4 to Page 15 of the main block can be individually erased
using the EEPROM_PAGE_ERASE command (Command 0xD4).
For example, to perform a page erase of Page 10, execute the
following command:
In this example, Command Code = 0xD4 and Data Byte = 0x0A.
Note that it is important to wait at least 35 ms for the page erase
operation to complete before executing the next PMBus command.
The EEPROM allows erasing of whole pages only; therefore,
to change the data of any single byte in a page, the entire page
must first be erased (set high) for that byte to be writable.
Subsequent writes to any bytes in that page are allowed as long
as that byte has not been written to a low previously.
READ OPERATION (BYTE READ AND BLOCK READ)
Read from INFO Block
The data in the EEPROM INFO block can be read one byte at
a time or in multiple bytes in series using the EEPROM_INFO
command (Command 0xF1). 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, two bytes from the INFO block are
read, starting from the first byte of the page.
1.
2.
S
MASTER TO SLAVE
SLAVE TO MASTER
Set number of return bytes = 2.
Set address offset = 0.
S
S
MASTER TO SLAVE
SLAVE TO MASTER
7-BIT SLAVE
MASTER TO SLAVE
SLAVE TO MASTER
ADDRESS
7-BIT SLAVE
7-BIT SLAVE
ADDRESS
ADDRESS
Figure 38. Example Erase Command
W
W
W
A
A
A
0xD3
COMMAND
CODE
0xD2
A
0x00
A
A
DATA BYTE
A
0x02
Data Sheet
0x00
A
A
A
P
P
P

Related parts for ADP1053