This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT4048: Register writing problem

Part Number: OPT4048

Tool/software:

Hi ti team,

1. It is impossible to operate the register. Even if writing is repeated multiple times, the value read from the register is still always a default value (attempts have been made for the two registers 0A and 0B). Even after replacing the photosensitive board, the problem persists. Through the inspection with a logic analyzer, the written device address, sensor address and the value are all accurate. 2. Is it necessary to initialize when operating the register? If so, can you provide the example code (demo code)? 3. Does the brightness value and the xy value belong to one of the four channels or the combined data of the four channels?

  • Hello,

    Thank you for posting on the sensors forum,

    1. Could you send me an image of your I2C transactions from your logic analyzer? I tested the device by changing the contents of register 0A to 0x3238 from 0x3208 and then reading the new contents. See the attached images:

    2.  The device will need to be placed in operating mode, since it defaults to shutdown mode on startup. The I2C transactions previously shown change the configuration register from shutdown mode to continuous mode. 

    3. These values consist of the combined data of the four channels. How these values are calculated from the 4 output registers can be found in section 8.3.4.5 Light and Color Measurement of the datasheet: OPT4048 High Speed High Precision Tristimulus XYZ Color Sensor datasheet