Datasheet
www.ti.com
2.11.4 Write Operation (Serial EEPROM)
2.11.5 Page Write Operation
TUSB3210
Universal Serial Bus
General-Purpose Device Controller
SLLS466F – FEBRUARY 2001 – REVISED AUGUST 2007
d. The MCU reads the I2CDAI register, clearing the RXF bit (I2CSTA[RXF] = 0).
The byte write operation involves three phases: 1) device address + EEPROM [high byte] phase, 2)
EEPROM [low byte] phase, and 3) EEPROM [DATA]. The following describes the sequence of events to
accomplish the byte write transaction:
Device Address + EEPROM [High Byte]
1. The MCU sets I2CSTA[SWR] = 0. This prevents the I
2
C controller from generating a stop condition
after the content of the I2CDAO register is transmitted.
2. The MCU writes the device address (R/W bit = 0) to the I2CADR register (write operation).
3. The MCU writes the high byte of the EEPROM address into the I2CDAO register, starting the transfer
on the SDA line.
4. The TXE bit in I2CSTA is cleared, indicating busy.
5. The content of the I2CADR register is transmitted to the device (preceded by a start condition on
SDA).
6. The content of the I2CDAO register is transmitted to the device (EEPROM high-address).
7. The TXE bit in I2CSTA is set and interrupts the MCU, indicating that the I2CDAO register has been
transmitted.
EEPROM [Low Byte]
1. The MCU writes the low byte of the EEPROM address into the I2CDAO register.
2. The TXE bit in I2CSTA is cleared, indicating busy.
3. The content of the I2CDAO register is transmitted to the device (EEPROM address).
4. The TXE bit in I2CSTA is set and interrupts the MCU, indicating that the I2CDAO register has been
transmitted.
EEPROM [DATA]
1. The MCU sets I2CSTA[SWR] = 1. This forces the I
2
C controller to generate a stop condition after the
content of the I2CDAO register is transmitted.
2. The MCU writes the DATA to be written to the EEPROM into the I2CDAO register.
3. The TXE bit in I2CSTA is cleared, indicating busy.
4. The content of the I2CDAO register is transmitted to the device (EEPROM data).
5. The TXE bit in I2CSTA is set and interrupts the MCU, indicating that the I2CDAO register has been
transmitted.
6. The I
2
C controller generates a stop condition after the content of the I2CDAO register is transmitted.
The page write operation is initiated the same way as byte write, with the exception that a stop condition is
not generated after the first EEPROM [DATA] is transmitted. The following describes the sequence of
writing 32 bytes in page mode:
Submit Documentation Feedback Functional Description 37