Public Version
Camera ISP Basic Programming Model
www.ti.com
Table 6-62. Camera ISP CCDC Conditional Configuration Parameters (continued)
Function
Condition
Configuration Required
Optical black clamp enabled
[31] CLAMPEN = 0x1
[4:0] OBGAIN
&&
[24:10] OBST
[13:12] INPMOD == 0
[27:25] OBSLN
[30:28] OBSLEN
Optical black clamp disabled
[31] CLAMPEN = 0x0
&&
[13:12] INPMOD == 0
Faulty-pixel correction
[15] FPCEN = 0x1
[14:0] FPNUM
Fault Pixel Table must be in memory
Video-port (data formatter)
[15] VPEN = 0x1
[14:12] VPIN
enabled
CCDC_FMT_HORZ
CCDC_FMT_VERT
CCDC_FMTCFG
[0] FMTEN
[21:16] VPIF_FRQ
Reformatter enabled
[0] FMTEN = 0x1
[1] LNALT
Reformatter enabled and
[0] FMTEN = 0x1
[3:2] LNUM
line-alternating mode
&&
CCDC_FMT_ADDRx (x = 0 to 7)
disabled
[1] LNALT = 0x0
[11:8] PLEN_EVEN
[7:4] PLEN_ODD
or
or
Write to memory or resizer
[17] WEN = 0x1
||
[19] SDR2RSZ = 0x1
CCDC_VERT_START
CCDC_VERT_LINES
CCDC_SYN_MODE
[14] LPF
[3] CCDTBL
[11] PACK8
[12] BSWD
Write to memory
[17] WEN = 0x1
CCDC_SDR_ADDR
CCDC_HSIZE_OFF
CCDC_SDOFST
A-Law
[3] CCDTBL = 0x1
[2:0] GWDI
Interrupt usage
VDINT[1:0] Interrupts are enabled
Lens-shading compensation
[0] ENABLE
CCSC_LSC_INITIAL
CCDC_LSC_TABLE_BASE
CCDC_LSC_TABLE_OFFSET
6.5.6.1.3 Camera ISP CCDC Pixel Selection (Framing) Register Dependencies
There are three locations in the data flow where the valid frame data can be defined:
•
Data formatter input pixel selection
•
Video port output pixel selection
•
Output formatter pixel selection
Care must be taken to ensure that the frame definitions correspond to the output of the upstream frame
definitions. When the video port is enabled,
[30:17] VERT_NUM must be less than
[12:0] FMTLNV.
Two data paths through the CCDC affect the programming of the pixel-selection registers, depending on
the value of the
[18] VP2SDR bit:
•
VP2SDR = 0: The input data bypasses the data formatter/video port. In this case, only the memory
output frame parameters apply. This data path is represented by the white arrow in
.
•
VP2SDR = 1: The input data passes through the data formatter/video port. In this case, both data
formatter frame definitions apply to the video-port output, and all three frame definitions apply to the
memory output. This data path is represented by the green shaded arrow in
.
1266
Camera Image Signal Processor
SWPU177N – December 2009 – Revised November 2010
Copyright © 2009–2010, Texas Instruments Incorporated