Periph ID AIC | Symbol | Description |
---|---|---|
22 | (AT91C_ID_HISI) | Image Sensor Interface |
Signal | Symbol | PIO controller | Description |
---|---|---|---|
ISI_D5 | (AT91C_PB25_ISI_D5 ) | PIOB Periph: B Bit: 25 | Image Sensor Data 5 |
ISI_D6 | (AT91C_PB26_ISI_D6 ) | PIOB Periph: B Bit: 26 | Image Sensor Data 6 |
ISI_MCK | (AT91C_PB31_ISI_MCK ) | PIOB Periph: B Bit: 31 | Image Sensor Reference Clock |
ISI_D7 | (AT91C_PB27_ISI_D7 ) | PIOB Periph: B Bit: 27 | Image Sensor Data 7 |
ISI_D8 | (AT91C_PB10_ISI_D8 ) | PIOB Periph: B Bit: 10 | Image Sensor Data 8 |
ISI_D9 | (AT91C_PB11_ISI_D9 ) | PIOB Periph: B Bit: 11 | Image Sensor Data 9 |
ISI_D10 | (AT91C_PB12_ISI_D10 ) | PIOB Periph: B Bit: 12 | Image Sensor Data 10 |
ISI_D11 | (AT91C_PB13_ISI_D11 ) | PIOB Periph: B Bit: 13 | Image Sensor Data 11 |
ISI_PCK | (AT91C_PB28_ISI_PCK ) | PIOB Periph: B Bit: 28 | Image Sensor Data Clock |
ISI_HSYNC | (AT91C_PB30_ISI_HSYNC) | PIOB Periph: B Bit: 30 | Image Sensor Horizontal Synchro |
ISI_D0 | (AT91C_PB20_ISI_D0 ) | PIOB Periph: B Bit: 20 | Image Sensor Data 0 |
ISI_D1 | (AT91C_PB21_ISI_D1 ) | PIOB Periph: B Bit: 21 | Image Sensor Data 1 |
ISI_VSYNC | (AT91C_PB29_ISI_VSYNC) | PIOB Periph: B Bit: 29 | Image Sensor Vertical Synchro |
ISI_D2 | (AT91C_PB22_ISI_D2 ) | PIOB Periph: B Bit: 22 | Image Sensor Data 2 |
ISI_D3 | (AT91C_PB23_ISI_D3 ) | PIOB Periph: B Bit: 23 | Image Sensor Data 3 |
ISI_D4 | (AT91C_PB24_ISI_D4 ) | PIOB Periph: B Bit: 24 | Image Sensor Data 4 |
Function | Description |
---|---|
AT91F_HISI_CfgPMC | Enable Peripheral clock in PMC for HISI |
AT91F_HISI_CfgPIO | Configure PIO controllers to drive HISI signals |
Offset | Field | Description |
---|---|---|
0x0 | ISI_CR1 | Control Register 1 |
0x4 | ISI_CR2 | Control Register 2 |
0x8 | ISI_SR | Status Register |
0xC | ISI_IER | Interrupt Enable Register |
0x10 | ISI_IDR | Interrupt Disable Register |
0x14 | ISI_IMR | Interrupt Mask Register |
0x20 | ISI_PSIZE | Preview Size Register |
0x24 | ISI_PDECF | Preview Decimation Factor Register |
0x28 | ISI_PFBD (ISI_PPFBD) | Preview Frame Buffer Address Register |
0x2C | ISI_CDBA | Codec Dma Address Register |
0x30 | ISI_Y2RSET0 (ISI_Y2R_SET0) | Color Space Conversion Register |
0x34 | ISI_Y2RSET1 (ISI_Y2R_SET1) | Color Space Conversion Register |
0x38 | ISI_R2YSET0 (ISI_R2Y_SET0) | Color Space Conversion Register |
0x3C | ISI_R2YSET1 (ISI_R2Y_SET1) | Color Space Conversion Register |
0x40 | ISI_R2YSET2 (ISI_R2Y_SET2) | Color Space Conversion Register |
Offset | Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | ISI_RST AT91C_ISI_RST | Image sensor interface reset resets the image sensor interface. | ||||||||||||
1 | ISI_DISABLE AT91C_ISI_DISABLE | image sensor disable. 0: Enable the Image Sensor interface, 1: Finish to capture the current frame and then shut down the module. | ||||||||||||
2 | ISI_HSYNC_POL AT91C_ISI_HSYNC_POL | Horizontal synchronisation polarity 0: HSYNC active high, 1: HSYNC active low | ||||||||||||
3 | ISI_HSYNC_POL AT91C_ISI_HSYNC_POL | Vertical synchronisation polarity 0: VSYNC active high, 1: VSYNC active low | ||||||||||||
4 | ISI_PIXCLK_POL AT91C_ISI_PIXCLK_POL | Pixel Clock Polarity 0: Data is sampled on rising edge of pixel clock, 1: Data is sampled on falling edge of pixel clock | ||||||||||||
6 | ISI_EMB_SYNC AT91C_ISI_EMB_SYNC | Embedded synchronisation 0: Synchronisation by HSYNC, VSYNC, 1: Synchronisation by Embedded Synchronisation Sequence SAV/EAV | ||||||||||||
7 | ISI_CRC_SYNC AT91C_ISI_CRC_SYNC | CRC correction 0: No CRC correction performed on embedded synchronisation, 1: CRC correction is performed. | ||||||||||||
10..8 | ISI_CRC_SYNC AT91C_ISI_CRC_SYNC | Frame rate capture 0: All the frame are captured else one frame every FRATE+1 is captured. | ||||||||||||
12 | ISI_FULL AT91C_ISI_FULL | Full mode is allowed 0:Full mode disabled, 1 : both codec and preview datapath are working simultaneoulsy | ||||||||||||
14..13 | ISI_THMASK AT91C_ISI_THMASK | DMA Burst Mask Burst Mode
| ||||||||||||
15 | ISI_CODEC_ON AT91C_ISI_CODEC_ON | Enable the codec path 0: No CRC correction performed on embedded synchronisation, 1:CRC correction is performed. | ||||||||||||
23..16 | ISI_SLD AT91C_ISI_SLD | Start of Line Delay SLD pixel clock periods to wait before the beginning of a line. | ||||||||||||
31..24 | ISI_SFD AT91C_ISI_SFD | Start of frame Delay SFD lines are skipped at the beginning of the frame. |
Offset | Name | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10..0 | ISI_IM_VSIZE AT91C_ISI_IM_VSIZE | Vertical size of the Image sensor [0..2047] Vertical size = IM_VSIZE + 1 | |||||||||||||||
11 | ISI_GS_MODE AT91C_ISI_GS_MODE | Grayscale Memory Mode 0 : 2 pixels per word, 1:1 pixel per word | |||||||||||||||
13..12 | ISI_RGB_MODE AT91C_ISI_RGB_MODE | RGB mode RGB mode
| |||||||||||||||
13 | ISI_GRAYSCALE AT91C_ISI_GRAYSCALE | Grayscale Mode 0: Grayscale mode is disabled, 1: Input image is assumed to be grayscale coded | |||||||||||||||
14 | ISI_RGB_SWAP AT91C_ISI_RGB_SWAP | RGB Swap 0: D7 ->R7, 1: D0->R7 | |||||||||||||||
15 | ISI_COL_SPACE AT91C_ISI_COL_SPACE | Color space for the image data Color space for the image data 0: YCbCr 1: RGB | |||||||||||||||
26..16 | ISI_IM_HSIZE AT91C_ISI_IM_HSIZE | Horizontal size of the Image sensor [0..2047] Horizontal size = IM_HSIZE + 1 | |||||||||||||||
29..28 | ISI_RGB_MODE AT91C_ISI_RGB_MODE | Ycc swap defines the YCC image data
| |||||||||||||||
31..30 | ISI_RGB_CFG AT91C_ISI_RGB_CFG | RGB configuration defines RGB pattern when RGB_MODE is set to 1
|
Offset | Name | Description |
---|---|---|
0 | ISI_SOF AT91C_ISI_SOF | Start of Frame When set a start of frame has been detected. |
1 | ISI_DIS AT91C_ISI_DIS | Image Sensor Interface disable 0 = The Image Sensor Interface is enabled; 1:The Image sensor interface is disabled and stops capturing data. |
2 | ISI_SOFTRST AT91C_ISI_SOFTRST | Software Reset 0 : Software reset not asserted or not completed, 1 : Software reset has completed successfully |
4 | ISI_CRC_ERR AT91C_ISI_CRC_ERR | CRC synchronisation error 1: CRC_SYNC is enabled in the control register and an error has been detected and not corrected. The frame is discarded and the ISI waits for a new one. |
5 | ISI_FO_C_OVF AT91C_ISI_FO_C_OVF | Fifo Codec Overflow 1: An overrun condition has occurred in input FIFO on the codec path. |
6 | ISI_FO_P_OVF AT91C_ISI_FO_P_OVF | Fifo Preview Overflow 1: An overrun condition has occurred in input FIFO on the preview path. |
7 | ISI_FO_P_EMP AT91C_ISI_FO_P_EMP | Fifo Preview Empty 1: 1:The DMA has finished transferring all the contents of the preview FIFO. |
8 | ISI_FO_C_EMP AT91C_ISI_FO_C_EMP | Fifo Codec Empty 1: 1:The DMA has finished transferring all the contents of the Codec FIFO. |
9 | ISI_FR_OVR AT91C_ISI_FR_OVR | Frame rate overun 0: No Frame overrun, 1: Frame overrun, the current frame is being skipped because a vsync signal has been detected while flushing FIFOs. |
Offset | Name | Description |
---|---|---|
0 | ISI_SOF AT91C_ISI_SOF | Start of Frame When set a start of frame has been detected. |
1 | ISI_DIS AT91C_ISI_DIS | Image Sensor Interface disable 0 = The Image Sensor Interface is enabled; 1:The Image sensor interface is disabled and stops capturing data. |
2 | ISI_SOFTRST AT91C_ISI_SOFTRST | Software Reset 0 : Software reset not asserted or not completed, 1 : Software reset has completed successfully |
4 | ISI_CRC_ERR AT91C_ISI_CRC_ERR | CRC synchronisation error 1: CRC_SYNC is enabled in the control register and an error has been detected and not corrected. The frame is discarded and the ISI waits for a new one. |
5 | ISI_FO_C_OVF AT91C_ISI_FO_C_OVF | Fifo Codec Overflow 1: An overrun condition has occurred in input FIFO on the codec path. |
6 | ISI_FO_P_OVF AT91C_ISI_FO_P_OVF | Fifo Preview Overflow 1: An overrun condition has occurred in input FIFO on the preview path. |
7 | ISI_FO_P_EMP AT91C_ISI_FO_P_EMP | Fifo Preview Empty 1: 1:The DMA has finished transferring all the contents of the preview FIFO. |
8 | ISI_FO_C_EMP AT91C_ISI_FO_C_EMP | Fifo Codec Empty 1: 1:The DMA has finished transferring all the contents of the Codec FIFO. |
9 | ISI_FR_OVR AT91C_ISI_FR_OVR | Frame rate overun 0: No Frame overrun, 1: Frame overrun, the current frame is being skipped because a vsync signal has been detected while flushing FIFOs. |
Offset | Name | Description |
---|---|---|
0 | ISI_SOF AT91C_ISI_SOF | Start of Frame When set a start of frame has been detected. |
1 | ISI_DIS AT91C_ISI_DIS | Image Sensor Interface disable 0 = The Image Sensor Interface is enabled; 1:The Image sensor interface is disabled and stops capturing data. |
2 | ISI_SOFTRST AT91C_ISI_SOFTRST | Software Reset 0 : Software reset not asserted or not completed, 1 : Software reset has completed successfully |
4 | ISI_CRC_ERR AT91C_ISI_CRC_ERR | CRC synchronisation error 1: CRC_SYNC is enabled in the control register and an error has been detected and not corrected. The frame is discarded and the ISI waits for a new one. |
5 | ISI_FO_C_OVF AT91C_ISI_FO_C_OVF | Fifo Codec Overflow 1: An overrun condition has occurred in input FIFO on the codec path. |
6 | ISI_FO_P_OVF AT91C_ISI_FO_P_OVF | Fifo Preview Overflow 1: An overrun condition has occurred in input FIFO on the preview path. |
7 | ISI_FO_P_EMP AT91C_ISI_FO_P_EMP | Fifo Preview Empty 1: 1:The DMA has finished transferring all the contents of the preview FIFO. |
8 | ISI_FO_C_EMP AT91C_ISI_FO_C_EMP | Fifo Codec Empty 1: 1:The DMA has finished transferring all the contents of the Codec FIFO. |
9 | ISI_FR_OVR AT91C_ISI_FR_OVR | Frame rate overun 0: No Frame overrun, 1: Frame overrun, the current frame is being skipped because a vsync signal has been detected while flushing FIFOs. |
Offset | Name | Description |
---|---|---|
0 | ISI_SOF AT91C_ISI_SOF | Start of Frame When set a start of frame has been detected. |
1 | ISI_DIS AT91C_ISI_DIS | Image Sensor Interface disable 0 = The Image Sensor Interface is enabled; 1:The Image sensor interface is disabled and stops capturing data. |
2 | ISI_SOFTRST AT91C_ISI_SOFTRST | Software Reset 0 : Software reset not asserted or not completed, 1 : Software reset has completed successfully |
4 | ISI_CRC_ERR AT91C_ISI_CRC_ERR | CRC synchronisation error 1: CRC_SYNC is enabled in the control register and an error has been detected and not corrected. The frame is discarded and the ISI waits for a new one. |
5 | ISI_FO_C_OVF AT91C_ISI_FO_C_OVF | Fifo Codec Overflow 1: An overrun condition has occurred in input FIFO on the codec path. |
6 | ISI_FO_P_OVF AT91C_ISI_FO_P_OVF | Fifo Preview Overflow 1: An overrun condition has occurred in input FIFO on the preview path. |
7 | ISI_FO_P_EMP AT91C_ISI_FO_P_EMP | Fifo Preview Empty 1: 1:The DMA has finished transferring all the contents of the preview FIFO. |
8 | ISI_FO_C_EMP AT91C_ISI_FO_C_EMP | Fifo Codec Empty 1: 1:The DMA has finished transferring all the contents of the Codec FIFO. |
9 | ISI_FR_OVR AT91C_ISI_FR_OVR | Frame rate overun 0: No Frame overrun, 1: Frame overrun, the current frame is being skipped because a vsync signal has been detected while flushing FIFOs. |
Offset | Name | Description |
---|---|---|
9..0 | ISI_PREV_VSIZE AT91C_ISI_PREV_VSIZE | Vertical size for the preview path Vertical Preview size = PREV_VSIZE + 1 (480 max) |
25..16 | ISI_PREV_HSIZE AT91C_ISI_PREV_HSIZE | Horizontal size for the preview path Horizontal Preview size = PREV_HSIZE + 1 (640 max) |
Offset | Name | Description |
---|---|---|
7..0 | ISI_Y2R_C0 AT91C_ISI_Y2R_C0 | Color Space Conversion Matrix Coefficient C0 C0 element, default step is 1/128, range from 0 to 1.9921875 |
15..8 | ISI_Y2R_C1 AT91C_ISI_Y2R_C1 | Color Space Conversion Matrix Coefficient C1 C1 element, default step is 1/128, range from 0 to 1.9921875 |
23..16 | ISI_Y2R_C2 AT91C_ISI_Y2R_C2 | Color Space Conversion Matrix Coefficient C2 C2 element, default step is 1/128, range from 0 to 1.9921875 |
31..24 | ISI_Y2R_C3 AT91C_ISI_Y2R_C3 | Color Space Conversion Matrix Coefficient C3 C3 element, default step is 1/128, range from 0 to 1.9921875 |
Offset | Name | Description |
---|---|---|
8..0 | ISI_Y2R_C4 AT91C_ISI_Y2R_C4 | Color Space Conversion Matrix Coefficient C4 C4 element default step is 1/128, range from 0 to 3.9921875 |
19..12 | ISI_Y2R_YOFF AT91C_ISI_Y2R_YOFF | Color Space Conversion Luninance default offset Yoff is set to 1 implies 128, Yoff is set to 0 implies 0 |
20..13 | ISI_Y2R_CROFF AT91C_ISI_Y2R_CROFF | Color Space Conversion Red Chrominance default offset Croff is set to 1 implies 16, Croff is set to 0 implies 0 |
21..14 | ISI_Y2R_CBFF AT91C_ISI_Y2R_CBFF | Color Space Conversion Luninance default offset Cboff is set to 1 implies 16, Croff is set to 0 implies 0 |
Offset | Name | Description |
---|---|---|
6..0 | ISI_R2Y_C0 AT91C_ISI_R2Y_C0 | Color Space Conversion RGB to YCrCb Matrix coefficient C0 C0 element default step is 1/256, from 0 to 0.49609375 |
7..1 | ISI_R2Y_C1 AT91C_ISI_R2Y_C1 | Color Space Conversion RGB to YCrCb Matrix coefficient C1 C1 element default step is 1/128, from 0 to 0.9921875 |
9..3 | ISI_R2Y_C2 AT91C_ISI_R2Y_C2 | Color Space Conversion RGB to YCrCb Matrix coefficient C2 C2 element default step is 1/512, from 0 to 0.2480468875 |
4 | ISI_R2Y_ROFF AT91C_ISI_R2Y_ROFF | Color Space Conversion Red component offset Roff is set to 1 implies 16, Roff is set to 0 implies 0 |
Offset | Name | Description |
---|---|---|
6..0 | ISI_R2Y_C3 AT91C_ISI_R2Y_C3 | Color Space Conversion RGB to YCrCb Matrix coefficient C3 C3 element default step is 1/128, range from 0 to 0.9921875 |
7..1 | ISI_R2Y_C4 AT91C_ISI_R2Y_C4 | Color Space Conversion RGB to YCrCb Matrix coefficient C4 C1 element default step is 1/256, range from 0 to 0.49609375 |
9..3 | ISI_R2Y_C5 AT91C_ISI_R2Y_C5 | Color Space Conversion RGB to YCrCb Matrix coefficient C5 C1 element default step is 1/512, range from 0 to 0.2480468875 |
4 | ISI_R2Y_GOFF AT91C_ISI_R2Y_GOFF | Color Space Conversion Green component offset GOFF is set to 1 implies 128, GOFF is set to 0 implies 0 |
Offset | Name | Description |
---|---|---|
6..0 | ISI_R2Y_C6 AT91C_ISI_R2Y_C6 | Color Space Conversion RGB to YCrCb Matrix coefficient C6 C6 element default step is 1/512, range from 0 to 0.2480468875 |
7..1 | ISI_R2Y_C7 AT91C_ISI_R2Y_C7 | Color Space Conversion RGB to YCrCb Matrix coefficient C7 C7 element default step is 1/256, range from 0 to 0.49609375 |
9..3 | ISI_R2Y_C8 AT91C_ISI_R2Y_C8 | Color Space Conversion RGB to YCrCb Matrix coefficient C8 C8 element default step is 1/128, range from 0 to 0.9921875 |
4 | ISI_R2Y_BOFF AT91C_ISI_R2Y_BOFF | Color Space Conversion Blue component offset BOFF is set to 1 implies 128, BOFF is set to 0 implies 0 |