| Os motores de busca de Datasheet de Componentes eletrônicos |
|
ADP1052ACPZ-R7 Folha de dados(PDF) 51 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADP1052ACPZ-R7 Folha de dados(HTML) 51 Page - Analog Devices |
|
51 / 113 page ![]() Data Sheet ADP1052 Rev. B | Page 51 of 113 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 56. Set the Return Bytes Number (= 3) 2. Set the address offset = 5. A S P A A 0x00 0x05 0xD3 W 7-BIT SLAVE ADDRESS A MASTER TO SLAVE SLAVE TO MASTER Figure 57. Set the 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 58. 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 ADP1052 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 Page Erase Operation section. In the following example, four bytes are written to Page 9, starting from the 257th byte of that page. 1. Set the address offset = 256. A S P A A 0x01 0x00 0xD3 W 7-BIT SLAVE ADDRESS A MASTER TO SLAVE SLAVE TO MASTER Figure 59. Set the 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 60. Write Four Bytes to Page 9 Note that the block write command can write a maximum of 256 bytes for any single transaction. EEPROM PASSWORD On ADP1052 VDD power-up, the EEPROM is locked and protected from accidental writes or erases. Only reads from Page 2 to Page 15 are allowed when the EEPROM is locked. Before any data can be written (programmed) to the EEPROM, the EEPROM must be unlocked for write access. After it is unlocked, the EEPROM is opened for reading, writing, and erasing. On power-up, Page 0 and Page 1 are also protected from read access. The EEPROM must first be unlocked to read these pages. Unlock the EEPROM To unlock the EEPROM, perform two consecutive writes with the correct password (default = 0xFF), using the EEPROM_PASSWORD command (Register 0xD5). The EEPROM_UNLOCKED flag (Register 0xFEA2[3]) is set to indicate that the EEPROM is unlocked for write access. Lock the EEPROM To lock the EEPROM, write any byte other than the correct password, using the EEPROM_PASSWORD command (Register 0xD5). The EEPROM_UNLOCKED flag is cleared to indicate that the EEPROM is locked from write access. Change the EEPROM Password To change the EEPROM password, first write the correct password, using the EEPROM_PASSWORD command (Register 0xD5). Immediately write the new password, using the same command. The password is now changed to the new password. |
|
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 |