| Electronic Components Datasheet Search |
|
TUSB6250 Datasheet(PDF) 77 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
TUSB6250 Datasheet(HTML) 77 Page - Texas Instruments |
|
77 / 124 page ![]() I2C Interface Controller 10−4 SLLS535A − January 2004 TUSB6250 10.2 Random-Read Operation A random read requires a dummy byte-write sequence to load in the data word address. Once the device-address word and the data-word address are clocked out and acknowledged by the device, the MCU starts a current-address sequence. The following describes the sequence of events to accomplish this transaction. Device Address + EPROM [High Byte] • The MCU sets I2CSCR [STOP] = 0. This forces the I2C interface controller to not generate a stop condition after either the contents of the I2CDIN register are received or contents of the I2CDOUT register are transmitted. • The MCU writes the device address (R/W bit = 0) to the I2CADR register (write operation). • The MCU writes the high byte of the I2C EEPROM address into the I2CDOUT register (this starts the transfer on the SDA line). • The TXE bit in the I2CSCR register is cleared (indicates busy). • The contents of the I2CADR register are transmitted to the I2C EEPROM (preceded by a start condition on SDA). • The contents of the I2CDOUT register are transmitted to the I2C EEPROM (EPROM address). • The TXE bit in the I2CSCR register is set and interrupts the MCU, indicating that the I2CDOUT register has been transmitted. • Stop condition is not generated. EPROM [Low Byte] • The MCU writes the low byte of the I2C EEPROM address into the I2CDOUT register. • The TXE bit in the I2CSCR register is cleared (indicates busy). • The contents of the I2CDOUT register are transmitted to the I2C EEPROM (EPROM address). • The TXE bit in the I2CSCR register is set and interrupts the MCU, indicating that the I2CDOUT register has been transmitted. • This completes the dummy write operation. At this point, the I2C EEPROM address is set and the MCU can perform either a single- or a sequential-read operation. 10.3 Current-Address Read Operation Once the I2C EEPROM address is set, the MCU can read a single byte by executing the following steps: • The MCU sets I2CSCR [STOP] = 1. This forces the I2C controller to generate a stop condition after the I2CDIN register contents are received. • The MCU writes the device address (R/W bit = 1) to the I2CADR register (read operation). • The MCU writes a dummy byte to the I2CDOUT register (this starts the transfer on SDA line). • The RXF bit in the I2CSTA register is cleared. • Contents of the I2CADR register are transmitted to the device (preceded by a start condition on SDA). • Data from the I2C EEPROM are latched into the I2CDIN register (a stop condition is transmitted). • The RXF bit in the I2CSCR register is set and interrupts the MCU, indicating that the data is available. • The MCU reads the I2CDIN register. This clears the RXF bit (I2CSCR [RXF] = 0). • End |
|
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 |