8.4.1 Local I2C Interface Overview
The SN65DSI83-Q1 device local I2C interface is enabled when EN is input high, access to the CSR registers is supported during ULPS. The SCL and SDA pins are used for I2C clock and I2C data respectively. The SN65DSI83-Q1 device I2C interface conforms to the 2-wire serial interface defined by the I2C Bus Specification, Version 2.1 (January 2000) and supports fast mode transfers up to 400 kbps.
The device address byte is the first byte received following the start condition from the master device. The 7-bit device address for SN65DSI83-Q1 device is factory preset to 010110X with the least significant bit being determined by the ADDR control input. Table 3 clarifies the SN65DSI83-Q1 device target address.
Table 3. SN65DSI83-Q1 I2C Target Address Description (1)(2)
BIT 7 (MSB) |
BIT 6 |
BIT 5 |
BIT 4 |
BIT 3 |
BIT 2 |
BIT 1 |
BIT 0 (W/R) |
0 |
1 |
0 |
1 |
1 |
0 |
ADDR |
0/1 |
(1) When ADDR = 1, Address cycle is 0×5A (write) and 0×5B (read)
(2) When ADDR = 0, Address cycle is 0×58 (write) and 0×59 (read)
The following procedure is followed to write to the SN65DSI83-Q1 device I2C registers:
- The master initiates a write operation by generating a start condition (S), followed by the SN65DSI83-Q1 device 7-bit address and a zero-value W/R bit to indicate a write cycle.
- The SN65DSI83-Q1 device acknowledges the address cycle.
- The master presents the subaddress (I2C register within SN65DSI83-Q1 device) to be written, consisting of one byte of data, MSB-first.
- The SN65DSI83-Q1 device acknowledges the subaddress cycle.
- The master presents the first byte of data to be written to the I2C register.
- The SN65DSI83-Q1 device acknowledges the byte transfer.
- The master may continue presenting additional bytes of data to be written, with each byte transfer completing with an acknowledge from the SN65DSI83-Q1 device.
- The master terminates the write operation by generating a stop condition (P).
The following procedure is followed to read the SN65DSI83-Q1 I2C registers:
- The master initiates a read operation by generating a start condition (S), followed by the SN65DSI83-Q1 device 7-bit address and a one-value W/R bit to indicate a read cycle.
- The SN65DSI83-Q1 device acknowledges the address cycle.
- The SN65DSI83-Q1 device transmits the contents of the memory registers MSB-first starting at register 00h. If a write to the SN65DSI83-Q1 I2C register occurred prior to the read, then the SN65DSI83-Q1 device starts at the subaddress specified in the write.
- The SN65DSI83-Q1 device waits for either an acknowledge (ACK) or a not-acknowledge (NACK) from the master after each byte transfer; the I2C master acknowledges reception of each data byte transfer.
- If an ACK is received, the SN65DSI83-Q1 device transmits the next byte of data.
- The master terminates the read operation by generating a stop condition (P).
The following procedure is followed for setting a starting subaddress for I2C reads:
- The master initiates a write operation by generating a start condition (S), followed by the SN65DSI83-Q1 device 7-bit address and a zero-value W/R bit to indicate a write cycle.
- The SN65DSI83-Q1 device acknowledges the address cycle.
- The master presents the subaddress (I2C register within the SN65DSI83-Q1 device) to be written, consisting of one byte of data, MSB first.
- The SN65DSI83-Q1 device acknowledges the subaddress cycle.
- The master terminates the write operation by generating a stop condition (P).