SBAS883A February 2018 – June 2018 OPT3101
PRODUCTION DATA.
To simplify the EEPROM programming in the end system, the OPT3101 device supports writing to EEPROM through the device I2C slave. The device auto loads from EEPROM on reset. Before programming EEPROM, this auto load might corrupt the registers. First erase the EEPROM and follow the flowchart shown in Figure 28. The register settings to write to external EEPROM on the OPT3101 I2C host through the OPT3101 I2C slave are listed in Table 28.
PARAMETER | VALUE | DESCRIPTION |
---|---|---|
TSENS_SLAVE0 | 50h | EEPROM I2C address. EEPROM with this I2C slave address should be used. |
I2C_HOST_EN | 1 | Enable device I2C host. |
I2C_NUM_TRAN | 0 | Number of I2C master transactions = 1 |
I2C_RW | 0 | Write transaction |
I2C_NUM_BYTES_TRAN1 | 1 | 2-byte transaction (register address, register data) |
I2C_WRITE_DATA1 | EEPROM register address | |
I2C_WRITE_DATA2 | Data to be written | |
I2C_TRIG_REG | 1 → 0 | Trigger the I2C host write by writing 1 to this register and make it 0 |