| Electronic Components Datasheet Search |
|
ADM1063ASU Datasheet(PDF) 30 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADM1063ASU Datasheet(HTML) 30 Page - Analog Devices |
|
30 / 36 page ![]() ADM1063 Rev. 0 | Page 30 of 36 • To erase a page of EEPROM memory. EEPROM memory can be written to only if it is unprogrammed. Before writing to one or more EEPROM memory locations that are already programmed, the page(s) containing those locations must first be erased. EEPROM memory is erased by writing a command byte. The master sends a command code that tells the slave device to erase the page. The ADM1063 command code for a page erasure is 0xFE (1111 1110). Note that, for a page erasure to take place, the page address must be given in the previous write word transaction (see the Write Byte/Word section). Also, Bit 2 in the UPDCFG register (Address 0x90) must be set to 1. 24 13 5 6 SLAVE ADDRESS COMMAND BYTE (0xFE) SW A A P Figure 43. EEPROM Page Erasure As soon as the ADM1063 receives the command byte, page erasure begins. The master device can send a stop command as soon as it sends the command byte. Page erasure takes approximately 20 ms. If the ADM1063 is accessed before erasure is complete, it responds with a no acknowledge (NACK). Write Byte/Word In a write byte/word operation, the master device sends a command byte and one or two data bytes to the slave device, as follows: 1. The master device asserts a start condition on SDA. 2. The master sends the 7-bit slave address followed by the write bit (low). 3. The addressed slave device asserts ACK on SDA. 4. The master sends a command code. 5. The slave asserts ACK on SDA. 6. The master sends a data byte. 7. The slave asserts ACK on SDA. 8. The master sends a data byte or asserts a stop condition. 9. The slave asserts ACK on SDA. 10. The master asserts a stop condition on SDA to end the transaction. In the ADM1063, the write byte/word protocol is used for three purposes: • To write a single byte of data to RAM. In this case, the command byte is the RAM addresses from 0x00 to 0xDF and the only data byte is the actual data, as shown in Figure 44. SLAVE ADDRESS RAM ADDRESS (0x00 TO 0xDF) S W A DATA AP A 24 13 5 8 7 6 Figure 44. Single Byte Write to RAM • To set up a 2-byte EEPROM address for a subsequent read, write, block read, block write, or page erase. In this case, the command byte is the high byte of the EEPROM addresses from 0xF8 to 0xFB. The only data byte is the low byte of the EEPROM address, as shown in Figure 45. SLAVE ADDRESS EEPROM ADDRESS HIGH BYTE (0xF8 TO 0xFB) SW A EEPROM ADDRESS LOW BYTE (0x00 TO 0xFF) AP A 24 13 5 8 7 6 Figure 45. Setting an EEPROM Address Note that for page erasure, because a page consists of 32 bytes, only the 3 MSBs of the address low byte are important. The lower five bits of the EEPROM address low byte specify the addresses within a page and are ignored during an erase operation. • To write a single byte of data to EEPROM. In this case, the command byte is the high byte of the EEPROM addresses from 0xF8 to 0xFB. The first data byte is the low byte of the EEPROM address, and the second data byte is the actual data, as shown in Figure 46. SLAVE ADDRESS EEPROM ADDRESS HIGH BYTE (0xF8 TO 0xFB) SW A EEPROM ADDRESS LOW BYTE (0x00 TO 0xFF) AP A 24 13 5 10 7 A 9 DATA 8 6 Figure 46. Single Byte Write to EEPROM Block Write In a block write operation, the master device writes a block of data to a slave device. The start address for a block write must have been set previously. In the ADM1063, a send byte opera- tion sets a RAM address, and a write byte/word operation sets an EEPROM address, as follows: 1. The master device asserts a start condition on SDA. 2. The master sends the 7-bit slave address followed by the write bit (low). 3. The addressed slave device asserts ACK on SDA. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |