ISI_CFG2

ISI Configuration 2 Register

  0x04 32 Read/Write 0x00000000  

ISI Configuration 2 Register

Bit  31 30 29 28 27 26 25 24  
  RGB_CFG[1:0] YCC_SWAP[1:0]   IM_HSIZE[10:8]  
Access  R/W R/W R/W R/W   R/W R/W R/W  
Reset  0 0 0 0   0 0 0  
Bit  23 22 21 20 19 18 17 16  
  IM_HSIZE[7:0]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  
Bit  15 14 13 12 11 10 9 8  
  COL_SPACE RGB_SWAP GRAYSCALE RGB_MODE GS_MODE IM_VSIZE[10:8]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  
Bit  7 6 5 4 3 2 1 0  
  IM_VSIZE[7:0]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  

Bits 10:0 – IM_VSIZE[10:0]: Vertical Size of the Image Sensor [0..2047]

Vertical Size of the Image Sensor [0..2047]

IM_VSIZE = Vertical size - 1

Bit 11 – GS_MODE: Grayscale Pixel Format Mode

Grayscale Pixel Format Mode

ValueDescription
0

2 pixels per word.

1

1 pixel per word.

Bit 12 – RGB_MODE: RGB Input Mode

RGB Input Mode

ValueDescription
0

RGB 8:8:8 24 bits.

1

RGB 5:6:5 16 bits.

Bit 13 – GRAYSCALE: Grayscale Mode Format Enable

Grayscale Mode Format Enable

ValueDescription
0

Grayscale mode is disabled.

1

Input image is assumed to be grayscale-coded.

Bit 14 – RGB_SWAP: RGB Format Swap Mode

RGB Format Swap Mode

The RGB_SWAP has no effect when Grayscale mode is enabled.

ValueDescription
0

D7 → R7.

1

D0 → R7.

Bit 15 – COL_SPACE: Color Space for the Image Data

Color Space for the Image Data

ValueDescription
0

YCbCr.

1

RGB.

Bits 26:16 – IM_HSIZE[10:0]: Horizontal Size of the Image Sensor [0..2047]

Horizontal Size of the Image Sensor [0..2047]

If 8-bit Grayscale mode is enabled, IM_HSIZE = (Horizontal size/2) - 1.

Else IM_HSIZE = Horizontal size - 1.

Bits 29:28 – YCC_SWAP[1:0]: YCrCb Format Swap Mode

YCrCb Format Swap Mode

Defines the YCC image data.

ValueNameDescription
0 DEFAULT

Byte 0 Cb(i)

Byte 1 Y(i)

Byte 2 Cr(i)

Byte 3 Y(i+1)

1 MODE1

Byte 0 Cr(i)

Byte 1 Y(i)

Byte 2 Cb(i)

Byte 3 Y(i+1)

2 MODE2

Byte 0 Y(i)

Byte 1 Cb(i)

Byte 2 Y(i+1)

Byte 3 Cr(i)

3 MODE3

Byte 0 Y(i)

Byte 1 Cr(i)

Byte 2 Y(i+1)

Byte 3 Cb(i)

Bits 31:30 – RGB_CFG[1:0]: RGB Pixel Mapping Configuration

RGB Pixel Mapping Configuration

Defines RGB pattern when RGB_MODE is set to 1.

If RGB_MODE is set to RGB 8:8:8, then RGB_CFG = 0 implies RGB color sequence, else it implies BGR color sequence.

ValueNameDescription
0 DEFAULT

Byte 0 R/G(MSB)

Byte 1 G(LSB)/B

Byte 2 R/G(MSB)

Byte 3 G(LSB)/B

1 MODE1

Byte 0 B/G(MSB)

Byte 1 G(LSB)/R

Byte 2 B/G(MSB)

Byte 3 G(LSB)/R

2 MODE2

Byte 0 G(LSB)/R

Byte 1 B/G(MSB)

Byte 2 G(LSB)/R

Byte 3 B/G(MSB)

3 MODE3

Byte 0 G(LSB)/B

Byte 1 R/G(MSB)

Byte 2 G(LSB)/B

Byte 3 R/G(MSB)