JAJSJ77 June 2023 OPT4060
PRODUCTION DATA
Data for each channel is given as exponent and mantissa components by the sensor. Raw ADC_CODES corresponding to the intensity measured on each channel is determined using the following equations. First the mantissa component is calculated from the MSB and LSB registers.
or
where
The RESULT_MSB_CHx register carries the most significant 12 bits of the MANTISSA_CHx, and RESULT_LSB_CHx register carries the least significant eight bits of the MANTISSA_CHx. The MANTISSA_CHx is then computed using the above equations to get the 20-bit number. The EXPONENT_CHx is directly read from the register, which is four bits.
After the EXPONENT_CHx and MANTISSA_CHx portions are calculated, use the following equations to calculate the linearized ADC_CODES_CHx:
or
The maximum value for register EXPONENT_CHx is 6, therefore ADC_CODES is effectively a 26-bit number. The semi-logarithmic numbers have been converted to a linear ADC_CODES_CHx representation making simple to convert to lux and RGB color coordinates.