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.

CCDC configuration questions - missing 2 MSB

Hello,

We are using a 12 bit sensor with bayer pattern connected to a DM355.

We want to write RAW data directly to SDRAM without any kind of processing.

Here are the data connections done on our custom board (SENSOR => DM355)

SENSOR D0 => YIN0 (D0)
SENSOR D1 => YIN1 (D1)
SENSOR D2 => YIN2 (D2)
SENSOR D3 => YIN3 (D3)
SENSOR D4 => YIN4 (D4)
SENSOR D5 => YIN5 (D5)
SENSOR D6 => YIN6 (D6)
SENSOR D7 => YIN7 (D7)
SENSOR D8 => CIN0 (D8)
SENSOR D9 => CIN1 (D9)
SENSOR D10 => CIN2 (D10)
SENSOR D11 => CIN3 (D11)

Here are the settings used on the CCDC module :

MODESET : 0x200
CCDCFGT : 0x8000
DCSUB   : 0x19
SDOFST  : 0x0
DATAOFST: 0x0
CLAMP   : 0x0
CSCCTL  : 0x0
DFCCTL  : 0x0
LSCCFG1 : 0x0
LSCCFG2 : 0xe
MEDFILT : 0x0
GAMMAWD : 0x8
BLKCMP0 : 0x0
BLKCMP1 : 0x0
COLPTN  : 0x4e4e
BLKCMP1 : 0x0
RYEGAIN : 0x400
GRCYGAIN: 0x400
GRCYGAIN: 0x400
BMGGAIN : 0x400
OFFSET  : 0x0
OUTCLIP : 0x3fff

We know that we have to set the GAIN to 4 to shift the bits and fit the CCDC working path.

With this configuration, we are missing 2 MSB, if the sensor send a 0x0FFF, then we only receive a 0x03FF (2 bits missing).

What could be wrong with our CCDC settings ? Are we doing anything wrong with the GAIN / MODESET / OUTCLIP ?

Thanks a lot for your help.

Kind regards,

Richard