Datasheet

SAM9G20
DS60001516A-page 704 2017 Microchip Technology Inc.
38.4.2 ISI Control 2 Register
Name: ISI_CR2
Access: Read/Write
IM_VSIZE: Vertical Size of the Image Sensor [0..2047]
Vertical size = IM_VSIZE + 1
GS_MODE
0: 2 pixels per word
1: 1 pixel per word
RGB_MODE: RGB Input Mode
0: RGB 8:8:8 24 bits
1: RGB 5:6:5 16 bits
GRAYSCALE
0: Grayscale mode is disabled
1: Input image is assumed to be grayscale coded
RGB_SWAP
0: D7 -> R7
1: D0 -> R7
The RGB_SWAP has no effect when the grayscale mode is enabled.
COL_SPACE: Color Space for The Image Data
0: YCbCr
1: RGB
IM_HSIZE: Horizontal Size of the Image Sensor [0..2047]
Horizontal size = IM_HSIZE + 1
YCC_SWAP: Defines the YCC Image Data
31 30 29 28 27 26 25 24
RGB_CFG YCC_SWAP IM_HSIZE
23 22 21 20 19 18 17 16
IM_HSIZE
15 14 13 12 11 10 9 8
COL_SPACE RGB_SWAP GRAYSCALE RGB_MODE GS_MODE IM_VSIZE
76543210
IM_VSIZE
YCC_SWAP Byte 0 Byte 1 Byte 2 Byte 3
00: Default Cb(i) Y(i) Cr(i) Y(i+1)
01: Mode1 Cr(i) Y(i) Cb(i) Y(i+1)
10: Mode2 Y(i) Cb(i) Y(i+1) Cr(i)
11: Mode3 Y(i) Cr(i) Y(i+1) Cb(i)