| Electronic Components Datasheet Search |
|
TUSB5052 Datasheet(PDF) 70 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TUSB5052 Datasheet(HTML) 70 Page - Texas Instruments |
|
70 / 82 page ![]() 10−4 10.4.2 N-Byte Read (31 Bytes) 1. Data from the device are latched into the I2CDAI register (stop condition is not transmitted). 2. RxF bit in the I2CSTA register is set and interrupts the MCU, indicating that data are available. 3. MCU reads the I2CDAI register. This clears the RxF bit (I2CSTA[RxF] = 0). 4. This operation repeats 31 times. 10.4.3 Last-Byte Read (Byte 32) 1. MCU sets I2CSTA[SRD] = 1. This forces the I2C controller to generate a stop condition after the I2CDAI register contents are received. 2. Data from the device are latched into the I2CDAI register (stop condition is transmitted). 3. RxF bit in the I2CSTA register is set and interrupts the MCU, indicating that data are available. 4. MCU reads the I2CDAI register. This clears the RxF bit (I2CSTA[RxF] = 0). 5. End 10.5 Byte-Write Operation 10.5.1 Device Address + EEPROM [High-Byte] 1. MCU sets I2CSTA[SWR] = 0. This forces the I2C controller not to generate a stop condition after the contents of the I2CDAO register are transmitted. 2. MCU writes the device address (R/W bit = 0) to the I2CADR register (write operation). 3. MCU writes the high-byte of the EEPROM address into the I2CDAO register (this starts the transfer on the SDA line). 4. TxE bit in the I2CSTA register is cleared (indicates busy). 5. The contents of the I2CADR register are transmitted to the device (preceded by start condition on SDA). 6. The contents of the I2CDAO register are transmitted to the device (EEPROM high-address). 7. TxE bit in the I2CSTA register is set and interrupts the MCU, indicating that the I2CDAO register contents have been transmitted. 10.5.2 EEPROM [Low-Byte] 1. MCU writes the low-byte of the EEPROM address into the I2CDAO register. 2. TxE bit in the I2CSTA register is cleared (indicating busy). 3. The contents of the I2CDAO register are transmitted to the device (EEPROM address). 4. TxE bit in the I2CSTA register is set and interrupts the MCU, indicating that the I2CDAO register contents have been transmitted. 10.5.3 EEPROM [DATA] 1. MCU sets I2CSTA[SWR] = 1. This forces the I2C controller to generate a stop condition after the contents of I2CDAO register are transmitted. 2. The data to be written to EEPROM are written by the MCU into the I2CDAO register. 3. TxE bit in the I2CSTA register is cleared (indicates busy). |
|
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 |