| Os motores de busca de Datasheet de Componentes eletrônicos |
|
ADP1053ACPZ-R7 Folha de dados(PDF) 39 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADP1053ACPZ-R7 Folha de dados(HTML) 39 Page - Analog Devices |
|
39 / 84 page ![]() Data Sheet ADP1053 Rev. A | Page 39 of 84 3. Read two bytes from the INFO block. R S A A ASr 0xF1 W 7-BIT SLAVE ADDRESS 7-BIT SLAVE ADDRESS P A BYTE COUNT = 0x80 DATA BYTE 1 AA DATA BYTE 2 MASTER TO SLAVE SLAVE TO MASTER 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. Set number of return bytes = 3. A SP A A0x03 0xD2 W 7-BIT SLAVE ADDRESS MASTER TO SLAVE SLAVE TO MASTER 2. Set address offset = 5. A S P AA A 0x00 0x05 0xD3 W 7-BIT SLAVE ADDRESS MASTER TO SLAVE SLAVE TO MASTER 3. Read three bytes from Page 4. R S A A ASr 0xB4 W 7-BIT SLAVE ADDRESS 7-BIT SLAVE ADDRESS P A... BYTE COUNT = 0x03 DATA BYTE 1 AA DATA BYTE 3 MASTER TO SLAVE SLAVE TO MASTER Note that the block read command can read a maximum of 256 bytes for any single transaction. 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 ADP1053 to store the first flag information (see 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 256th byte of that page. 1. Set address offset = 256. A S P AA A 0x01 0x00 0xD3 W 7-BIT SLAVE ADDRESS MASTER TO SLAVE SLAVE TO MASTER 2. Write four bytes to Page 9. A SA A BYTE COUNT = 4 0xB9 W 7-BIT SLAVE ADDRESS MASTER TO SLAVE SLAVE TO MASTER P A A... DATA BYTE 1 DATA BYTE 4 Note that the block write command can write a maximum of 256 bytes for any single transaction. |
|
Ligação URL |
| ALLDATASHEET é útil para você? [ DONATE ] |
Sobre Alldatasheet | Publicidade | Contato conosco | Privacy Policy | Link para a ficha técnica | roca de Link | Lista de Fabricantes All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |