49.6.2 ISI Configuration 2 Register

This register can only be written if WPEN is cleared in ISI_WPMR.

Name: ISI_CFG2
Offset: 0x04
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
 RGB_CFG[1:0]YCC_SWAP[1:0] IM_HSIZE[10:8] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 2322212019181716 
 IM_HSIZE[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 COL_SPACERGB_SWAPGRAYSCALERGB_MODEGS_MODEIM_VSIZE[10:8] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 IM_VSIZE[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 31:30 – RGB_CFG[1:0] 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 = 1 implies the BGR color sequence, else it implies the RGB 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)

Bits 29:28 – YCC_SWAP[1:0] 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 26:16 – IM_HSIZE[10:0] 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.

Bit 15 – COL_SPACE Color Space for the Image Data

ValueDescription
0

YCbCr.

1

RGB.

Bit 14 – RGB_SWAP RGB Format Swap Mode

When Grayscale mode is enabled (GRAYSCALE=1) or the color space is configured in YCbCr mode (COL_SPACE=0), the bit RGB_SWAP must be cleared.

.

ValueDescription
0

No swap.

1

RGB data bus is swapped (D[7:0] is translated into D[0:7]).

Bit 13 – GRAYSCALE Grayscale Mode Format Enable

ValueDescription
0

Grayscale mode is disabled.

1

Input image is assumed to be grayscale-coded.

Bit 12 – RGB_MODE RGB Input Mode

ValueDescription
0

RGB 8:8:8 24 bits.

1

RGB 5:6:5 16 bits.

Bit 11 – GS_MODE Grayscale Pixel Format Mode

ValueDescription
0

2 pixels per word.

1

1 pixel per word.

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

IM_VSIZE = Vertical size - 1