| 数据搜索系统,热门电子元器件搜索 |
|
TUSB5052 数据表(PDF) 76 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TUSB5052 数据表(HTML) 76 Page - Texas Instruments |
|
76 / 84 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 + EPROM [High-Byte] • 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. • MCU writes the device address (R/W bit = 0) to the I2CADR register (write operation). • MCU writes the high-byte of the E2PROM address into the I2CDAO register (this starts the transfer on the SDA line). • TXE bit in the I2CSTA register is cleared (indicates busy). • The contents of the I2CADR register are transmitted to the device (preceded by start condition on SDA). • The contents of the I2CDAO register are transmitted to the device (E2PROM high-address). • TXE bit in the I2CSTA register is set and interrupts the MCU, indicating that the I2CDAO register contents have been transmitted. 10.5.2 EPROM [Low-Byte] • MCU writes the low-byte of the E2PROM address into the I2CDAO register. • TXE bit in the I2CSTA register is cleared (indicating busy). • The contents of the I2CDAO register are transmitted to the device (E2PROM address). • TXE bit in the I2CSTA register is set and interrupts the MCU, indicating that the I2CDAO register contents have been transmitted. 10.5.3 EPROM [DATA] • MCU sets I2CSTA[SWR] = 1. This forces the I2C controller to generate a stop condition after the contents of I2CDAO register are transmitted. • The data to be written to E2PROM are written by the MCU into the I2CDAO register. • TXE bit in the I2CSTA register is cleared (indicates busy). • The contents of the I2CDAO register are transmitted to the device (E2PROM data). • TXE bit in the I2CSTA register is set and interrupts the MCU, indicating that the I2CDAO register contents have been transmitted. |
|
链接网址 |
| 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 |