| 数据搜索系统,热门电子元器件搜索 |
|
ADP1046AACPZ-R7 数据表(PDF) 42 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADP1046AACPZ-R7 数据表(HTML) 42 Page - Analog Devices |
|
42 / 88 page ![]() ADP1046A Data Sheet Rev. 0 | Page 42 of 88 WRITE OPERATION (BYTE WRITE AND BLOCK WRITE) 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_00 and EEPROM_DATA_01 commands. A user write to Page 0 or 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 0x82). 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 (Register 0x8B to Register 0x9A). 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 0x85). 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 256th byte of that page. 1. Set address offset = 256. S 7-BIT SLAVE ADDRESS W A A 0x01 A A P 0x85 0x00 = MASTER-TO-SLAVE = SLAVE-TO-MASTER 2. Write four bytes to Page 9. S 7-BIT SLAVE ADDRESS BYTE COUNT = 4 W A A A 0x94 DATA BYTE 1 DATA BYTE 4 A A P ... = MASTER-TO-SLAVE = SLAVE-TO-MASTER Note that the block write command can write a maximum of 256 bytes for any single transaction (set the byte count = 0). EEPROM PASSWORD On power-up, the EEPROM is locked and protected from accidental writes or erases. Only reads from Page 2 to Page 15 of the main block 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. Unlock the EEPROM To unlock the EEPROM, perform two consecutive writes with the correct password (default = 0xFF) using the EEPROM_ PASSWORD command (Register 0x88). The EEPROM unlocked flag (Bit 0 of Register 0x03) 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 pass- word using the EEPROM_PASSWORD command (Register 0x88). The EEPROM unlocked flag (Bit 0 of Register 0x03) 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 0x88). Immediately write the new password using the same command. The password is now changed to the new password. DOWNLOADING EEPROM SETTINGS TO INTERNAL REGISTERS Download User Settings to Registers The user settings are stored in Page 1 of the EEPROM main block. These settings are downloaded from the EEPROM into the registers under the following conditions: • On power-up. The user settings are automatically down- loaded into the internal registers, powering the part up in a state previously saved by the user. • On execution of the RESTORE_USER_ALL command (Register 0x83). This command allows the user to force a download of the user settings from Page 1 of the EEPROM main block into the internal registers. Download Factory Default Settings to Registers The factory default settings are stored in Page 0 of the EEPROM main block. The factory default settings can be downloaded from the EEPROM into the internal registers using the RESTORE_ DEFAULT_ALL command (Register 0x81). When this command is executed, the EEPROM password is also reset to the factory default setting of 0xFF. |
|
链接网址 |
| 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 |