
camisp-203
CCP2_LCx_DAT_PING_ADDR
or
CCP2_LCx_DAT_PONG_ADDR
Frame buffer
Pixel data
CCP2_LCx_DAT_OFST
@Line1
@Line2
FRAME_BUFFER_WIDTH
IMAGE_WIDTH
@Line0
Public Version
www.ti.com
Camera ISP Basic Programming Model
Figure 6-108. Camera ISP CSI1/CCP2B Pixel Data Destination Settings
6.5.3.20 Camera ISP CSI1/CCP2B Memory Read Channel
6.5.3.20.1 Camera ISP CSI1/CCP2B Write Data From Sensor to Memory
Data can be captured from the sensor using any logical channel. To keep the native data format, the
channel format must be set to YUV422 little-endian format.
6.5.3.20.2 Camera ISP CSI1/CCP2B Read Data from Memory
By default, the memory read channel is disabled. Before the memory read channel can be enabled (
[0] CHAN_EN = 1), all logical channels must be disabled (
[0] IF_EN = 0)
and required registers must be configured.
When the
[3] FRAME bit is set, software must wait until disabling of the physical interface is
effective before enabling the memory read channel.
The SBL image data read port is shared by the PREVIEW and CSI1/CCP2B receiver modules. The read
port must be affected to the CSI1/CCP2B receiver module by writing 1 to the
[27]
SBL_SHARED_RPORTA bit. The programmer must ensure that the PREVIEW module does not use this
port before switching to the CSI1/CCP2B module.
The burst size must be configured to 32 x 64-bit bursts, using the
[7:5] BURST_SIZE
register.
Firmware must then configure the source data format, location, and framing. In addition to the
[11:0] SKIP and
[27:16] COUNT registers, the firmware must
specify the amount of data to be fetched from memory. This value is set in 64-bit word steps and must be
a multiple of 32 bytes (four words of 64 bits). The value is computed with the following formula:
HWORDS = 4 x ceil( ((SKIP + COUNT) x bits_per_pixel)/(8 x 32) )
(3)
The
and
registers must be aligned on 32-byte
boundaries for correct operation. For best performance, both registers must be aligned on 256-byte
boundaries.
Example:
•
[7:5] BURST_SIZE is set to 32 x 64 bits
•
[11:0] SKIP = 0
1255
SWPU177N – December 2009 – Revised November 2010
Camera Image Signal Processor
Copyright © 2009–2010, Texas Instruments Incorporated