Datasheet

I
2
C Interface Controller
10−7
SLLS535E − April 2008 TUSB6250
10.6 Page-Write Operation
The page-write operation is initiated in the same way as the byte-write operation, with the exception that a stop
condition is not generated after the first I
2
C EEPROM [DATA] is transmitted. The following describes the
sequence of writing 32 bytes in page mode.
Device Address + EEPROM [High Byte]
The MCU sets I2CSCR [STOP] = 0. This forces the I
2
C interface controller not to generate a stop
condition after the 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 I
2
C EEPROM address into the I2CDOUT register.
The TXE bit in the I2CSCR register is cleared (indicating busy).
The contents of the I2CADR register are transmitted to the I
2
C EEPROM (preceded by a start
condition on SDA).
The contents of the I2CDOUT register are transmitted to the I
2
C EEPROM (EEPROM address).
The TXE bit in the I2CSCR register is set and interrupts the MCU, indicating that the I2CDOUT register
contents have been transmitted.
EEPROM [Low Byte]
The MCU writes the low byte of the I
2
C 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 I
2
C EEPROM (EEPROM address).
The TXE bit in the I2CSCR register is set and interrupts the MCU, indicating that the I2CDOUT register
contents have been transmitted.
EEPROM [DATA] − 31 Bytes
The data to be written to the I
2
C EEPROM is written by the MCU 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 I
2
C EEPROM (EEPROM data).
The TXE bit in the I2CSCR register is set and interrupts the MCU, indicating that the I2CDOUT register
contents have been transmitted.
This operation repeats 31 times.
EEPROM [DATA] − Last Byte
The MCU sets I2CSCR [STOP] = 1. This forces the I
2
C interface controller to generate a stop condition
after the contents of the I2CDOUT register are transmitted.
The MCU writes the last date byte to be written to the I
2
C EEPROM into the I2CDOUT register.
The TXE bit in the I2CSCR register is cleared (indicates busy).
The contents of the I2CDOUT register are transmitted to I
2
C EEPROM (EEPROM data)
The TXE bit in the I2CSCR register is set and interrupts the MCU, indicating that the I2CDOUT register
contents have been transmitted.
The I
2
C interface controller generates a stop condition after the contents of I2CDOUT register are
transmitted.
End of 32-byte page-write operation