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 |
Vertical Size of the Image Sensor [0..2047]
IM_VSIZE = Vertical size - 1
Grayscale Pixel Format Mode
Value | Description |
---|---|
0 | 2 pixels per word. |
1 | 1 pixel per word. |
RGB Input Mode
Value | Description |
---|---|
0 | RGB 8:8:8 24 bits. |
1 | RGB 5:6:5 16 bits. |
Grayscale Mode Format Enable
Value | Description |
---|---|
0 | Grayscale mode is disabled. |
1 | Input image is assumed to be grayscale-coded. |
RGB Format Swap Mode
The RGB_SWAP has no effect when Grayscale mode is enabled.
Value | Description |
---|---|
0 | D7 → R7. |
1 | D0 → R7. |
Color Space for the Image Data
Value | Description |
---|---|
0 | YCbCr. |
1 | RGB. |
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.
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) |
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.
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) |