| Electronic Components Datasheet Search |
|
ADM1041 Datasheet(PDF) 37 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADM1041 Datasheet(HTML) 37 Page - Analog Devices |
|
37 / 64 page ![]() ADM1041 Rev. A | Page 37 of 64 In the ADM1041, the send byte protocol is used to write a register address to RAM for a subsequent single-byte read from the same address or block read or write starting at that address. This is illustrated in Figure 30. SLAVE ADDRESS S RAM ADDRESS (00h TO 7Fh) W A A P 45 6 2 13 Figure 30. Setting a RAM Address for Subsequent Read If it is required to read data from the RAM immediately after setting up the address, the master can assert a repeat start condition immediately after the final ACK and carry out a single-byte read, block read, or block write operation without asserting an intermediate stop condition. Write Byte/Word In this 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 may assert stop at this point). 9. The slave asserts ACK on SDA. 10. The master asserts a stop condition on SDA to end the transaction. In the ADM1041, the write byte/word protocol is used for the following three purposes. The ADM1041 knows how to respond by the value of the command byte. • Write a single byte of data to RAM. In this case, the command byte is the RAM address from 00h to 7Fh and the (only) data byte is the actual data. This is illustrated in Figure 31. SLAVE ADDRESS S DATA W A A P A 67 8 5 2 13 RAM ADDRESS (00h TO 7Fh) 4 Figure 31. Single-Byte Write to RAM • Set up a 2-byte EEPROM address for a subsequent read or block read. In this case, the command byte is the high byte of the EEPROM address (80h). The (only) data byte is the low byte of the EEPROM address. This is illustrated in Figure 32. SLAVE ADDRESS S EEPROM ADDRESS HIGH BYTE (80h OR 81h) EEPROM ADDRESS LOW BYTE (00h TO FFh) W A P A A 67 8 5 2 14 3 Figure 32. Setting an EEPROM Address If it is required to read data from the EEPROM immedi- ately after setting up the address, the master can assert a repeat start condition immediately after the final ACK and carry out a single-byte read or a block read without asserting an intermediate stop condition. • Write a single byte of data to EEPROM. In this case, the command byte is the high byte of the EEPROM address, 80h or 81h. The first data byte is the low byte of the EEPROM address and the second data byte is the actual data. Bit 1 of EEPROM Register 3 must be set. This is illustrated in Figure 33. SLAVE ADDRESS S EEPROM ADDRESS HIGH BYTE (80h OR 81h) EEPROM ADDRESS LOW BYTE (00h TO FFh) W A A P A 5 A 69 10 7 2 14 3 DATA 8 Figure 33. Single-Byte Write to EEPROM If it is required to read data from the ASIC immediately after setting up the address, the master can assert a repeat start condition immediately after the final ACK and carry out a single-byte read, block read, or block write operation without asserting an intermediate stop condition. Block Write In this operation, the master device writes a block of data to a slave device. Programming an EEPROM byte takes approximately 300 µs, which limits the SMBus clock for repeated or block write operations. The start address for a block write must have been set previously. In the case of the ADM1041, this is done by a send byte operation to set a RAM address or by a write byte/ word operation to set an EEPROM address. 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 that tells the slave device to expect a block write. The ADM1041 command code for a block read is A0h (10100000). 5. The slave 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 |