SBAA432A april   2020  – july 2023 OPT3001 , OPT3001-Q1 , OPT3004 , OPT3006 , OPT3007

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction to TI's Light Sensor Portfolio
  5. 2Material Inspection
  6. 3Sensor Board Hardware Design
  7. 4Build-up Standalone Light Sensor Test Platform
    1. 4.1 Functional Test
      1. 4.1.1 Communication Test
      2. 4.1.2 Sensor Function Test
    2. 4.2 Test Equipment
    3. 4.3 Hardware Platform
    4. 4.4 Software Code Examples
  8. 5Summary
  9. 6References
  10. 7Revision History

Communication Test

To verify that the I2C mode is functioning correctly, read the Device ID Register, as shown in Table 4-1 and Table 4-2 for OPT4001. For example, when the Device ID Register for the OPT4001 reads 121h, I2C is working correctly. Check the data sheet to verify the correct readout as the readout can differ for other light sensors. For example, the Device ID Register readout needs to be 3001h for all OPT300x devices, such as the OPT3004 or OPT3007.

Table 4-1 OPT4001 Device ID Register 11h
Register 11h (offset = 11h) [reset = 121h]
This register is also intended to help uniquely identify the device
15141321111098
00DIDLDIDH
Read or Write-0hRead or Write-0hRead-0hRead-1h
76543210
DIDH
Read-21h
Table 4-2 OPT4001 Device ID Register Field Descriptions
BitFieldTypeResetDescription
15-140Read or Write0hMust read or write 0
13-12DIDLRead0hDevice ID L
11-0DIDHRead121hDevice ID H

Another method to test I2C functionality is to write to and read back from the Configuration Register (offset = 11h). This test can be desired in addition to the read Device ID Register test to exercise both read and write functions.