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.

CC2642R: RGB COLOR SENSOR

Part Number: CC2642R

Dear Team,


We are planning to used CC2642R BLE controller for our new project. As per project requirement we are planning to use color sensor AS7261 which is interface with the CC2642R controller either on UART or I2C interface.

The calibrated white data from color sensor in the form of • XYZ,  • xy data (CIE 1931),  • DUV, u’v’, uv (CIE 1976), •  CCT, LUX.  

Below are the queries

1. The concern is that can we convert above raw data file in RGB data format? CC2642R is capable to run that algorithm?
2. Can we connect 16MB or 64MB SPI NOR flash with this CC2642R BLE controller, Memory mapping can be possible by this BLE controller.?

Waiting for your response.



  • Hi Dhaval,

    1. This depends on how complicated the formula you are using is, one simple solution I found on Wikipedia uses floating point mathematics:

    R =  3.2404542*X - 1.5371385*Y - 0.4985314*Z
    G = -0.9692660*X + 1.8760108*Y + 0.0415560*Z
    B =  0.0556434*X - 0.2040259*Y + 1.0572252*Z

    2. The simple_peripheral_oad_offchip example demonstrates the use of an external MX25R8035F SPI flash device to store OAD images, you can re-use this logic for your own application.

    Regards,
    Ryan