| 数据搜索系统,热门电子元器件搜索 |
|
ADP1050ACPZ-R7 数据表(PDF) 44 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADP1050ACPZ-R7 数据表(HTML) 44 Page - Analog Devices |
|
44 / 93 page ![]() Data Sheet ADP1050 READ OPERATION (BYTE READ AND BLOCK READ) 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 the user settings, respectively, and are intended 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 and 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 multiple bytes in series, using the EEPROM_DATA_xx commands (Register 0xB0 to Register 0xBF). Before executing this command, the user must program the number of bytes to read, using the EEPROM_NUM_RD_BYTES command (Register 0xD2). Also, the user can program the offset from the page boundary where the first read byte is returned, using the EEPROM_ADDR_OFFSET command (Register 0xD3). In the following example, three bytes from Page 4 are read from the EEPROM, starting from the sixth byte of that page. 1. Set number of return bytes = 3. A S P A A 0x03 0xD2 W 7-BIT SLAVE ADDRESS MASTER TO SLAVE SLAVE TO MASTER Figure 47. Set Number of Return Bytes = 3 2. Set address offset = 5. A S P A A 0x00 0x05 0xD3 W 7-BIT SLAVE ADDRESS A MASTER TO SLAVE SLAVE TO MASTER Figure 48. Set Address Offset = 5 3. Read three bytes from Page 4. R S A A A Sr 0xB4 W 7-BIT SLAVE ADDRESS 7-BIT SLAVE ADDRESS P A ... BYTE COUNT = 0x03 DATA BYTE 1 A A DATA BYTE 3 MASTER TO SLAVE SLAVE TO MASTER Figure 49. Read Three Bytes from Page 4 Note that the block read command can read a maximum of 256 bytes for any single transaction. WRITE OPERATION (BYTE WRITE AND BLOCK WRITE) The user cannot write directly to the information block; this block is used by the ADP1050 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 the user settings, respectively. The user cannot perform a direct write operation to Page 0 or Page 1 using the EEPROM_DATA_xx commands. If the user writes to Page 0, Page 1 returns a no acknowledge. To program the register contents of Page 1 of the main block, it is recommended that the STORE_ USER_ALL command be used (Register 0x15). See the Save Register Settings to the User Settings section. Write to Main Block, Page 2 to Page 15 Before performing a write to Page 2 through Page 15 of the main block, the user must first unlock the EEPROM (see the Unlock the EEPROM section). Data in Page 2 to Page 15 of the EEPROM main block can be programmed (written to) one byte at a time or multiple bytes in series, using the EEPROM_DATA_xx commands (Register 0xB0 to Register 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 (Register 0xD3). If the targeted page has not yet been erased, the user can erase the page, as described in the EEPROM Password section. In the following example, four bytes are written to Page 9, starting from the 257th byte of that page. 1. Set address offset = 256. A S P A A 0x01 0x00 0xD3 W 7-BIT SLAVE ADDRESS A MASTER TO SLAVE SLAVE TO MASTER Figure 50. Set Address Offset = 256 2. Write four bytes to Page 9. A S A 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 Figure 51. Write Four Bytes to Page 9 Note that the block write command can write a maximum of 256 bytes for any single transaction. Rev. A | Page 43 of 92 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |