SBAS883A February 2018 – June 2018 OPT3101
PRODUCTION DATA.
The OPT3101 device also has an I2C master, which is used to read the calibration and configuration registers from an external memory with the I2C interface (EEPROM with I2C address of 1010 000) during power up. It can also read temperature from an external temperature sensor with the I2C interface (default address of 1001 000). Table 25 lists the register settings to configure the I2C Host.
PARAMETER | BIT | DESCRIPTION |
---|---|---|
TSENS_SLAVE0 | 02h[6:0] | I2C slave address.
In multi-channel illumination operation, the temperature-sensor slave address is selected based on the channel being used for reading the external temperature value (TX0: TSENS_SLAVE0, TX1: TSENS_SLAVE1, TX2: TSENS_SLAVE2) |
I2C_HOST_EN | 01h[19] | Enable the I2C host |
FRAME_VD_TRIG | 01h[17] | Trigger I2C host operation every frame VD |
I2C_TRIG_REG | 01h[18] | Manual trigger the I2C host by writing to this register |
I2C_NUM_TRAN | 03h[17] | 0: 1 transaction | 1: 2 transactions |
I2C_RW | 01h[21:20] | 0: Write | 1: Read
LSB: First transaction MSB: Second transaction |
I2C_NUM_BYTES_TRAN1 | 07h[17:16] | 0: 1 byte | 1: 2 bytes |
I2C_NUM_BYTES_TRAN2 | 05h[23:22] | 0: 1 byte | 1: 2 bytes |
I2C_WRITE_DATA1 | 03h[16:9] | First byte of I2C write transaction
8-bit register address |
I2C_WRITE_DATA2 | 07h[7:0] | Second byte of I2C write transaction
8-bit register data to be written |
I2C_SEL_READ_BYTES | 07h[19:18] | Selects the byte of read data.
0: 7:0 | 1: 15:8 | 2: 23:16 | 3: 31:24 |
I2C_READ_DATA | 03h[7:0] | I2C host read data can be accessed through this register. |