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 | 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 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.
Value | Name | Description |
---|---|---|
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.
Value | Name | Description |
---|---|---|
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
Value | Description |
---|---|
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.
.
Value | Description |
---|---|
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
Value | Description |
---|---|
0 | Grayscale mode is disabled. |
1 | Input image is assumed to be grayscale-coded. |
Bit 12 – RGB_MODE RGB Input Mode
Value | Description |
---|---|
0 | RGB 8:8:8 24 bits. |
1 | RGB 5:6:5 16 bits. |
Bit 11 – GS_MODE Grayscale Pixel Format Mode
Value | Description |
---|---|
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