42. Digital camera interface pixel pipeline (DCMIPP)

42.1 DCMIPP introduction

The DCMIPP is the pixel pipeline section of a high-resolution camera subsystem: it gets pixels from a parallel or a CSI interface, and after some processing (such as decimation, cropping, downsize, color conversion, gamma correction, auto-exposure) dumps them to the memory.

DCMIPP supports multiple types of external sensors, among others:

The DCMIPP input interface integrates a parallel interface (up to 16 bits at 120 MHz, with internal/external synchronization), and makes it possible to abut an external CSI-2 host (one to two data lanes, up to 2.5 Gbps/lane).

A first common part of the DCMIPP selects the input exclusively from the parallel or the CSI interfaces. Data go to dedicated pipeline(s) before they are sent to memory for further processing or display purposes.

Table 372. Available pipelines

IDFunctionDescription
Pipe0Dump pipeUsed to dump the received data as-is, without any processing (for example. without pixel extraction, no formatting), with an exception: it formats the CSI 10/12/14-bit raw Bayer components mapped unpacked into 16-bit memory words, to ease the job of a downstream application.
2D crop operation and basic decimation can be performed within this pipe.
Pipe1Main pipeTypically used for the main needs (such as video encode, software analysis, neural network), it allows to downsize the input, convert its color and dump to multiple pixel formats, including multi-planar ones. It can adapt the luminosity (gamma conversion) as well as auto-exposure and black level calibration based on its own embedded image processing functions, handling camera sensor without internal ISP. It can convert the raw Bayer to RGB (demosaicing). Pipe1 shares all the image processing functions with Pipe2.
Pipe2Ancillary pipeTypically used for ancillary needs (such as a permanent display), also allows to downsize the input and dump to several pixel formats, however restricted to coplanar ones (as specialized for display-like usage).

Figure 343 shows the DCMIPP main functions, namely the integrated parallel interface, the abutted CSI-2 host, the ISP functions in Pipe1 and shareable with Pipe2, the differentiated applicative post-processing pipelines with their crop, downsize, and pixel formatting.

Figure 343. DCMIPP overview

Block diagram of the DCMIPP architecture showing three processing pipes (Pipe0: Dump, Pipe1: Image processing, Pipe2: Post-processing) and their connections to CSI-HOST, IP-PLUG, and AXI bus.

The diagram illustrates the DCMIPP architecture. It starts with a CSI-HOST interface connected to a Test pattern generator and a Parallel Interface. The Parallel Interface leads to an Input selector, which then branches into three main processing paths: Pipe0, Pipe1, and Pipe2. Pipe0 is labeled 'Pipe0: Dump' and contains blocks for Flow select (CSI-/I, VC, DT), Frame control (snap, rate), Decimation (ratio 1, 2, 4), and Crop. Pipe1 is labeled 'Pipe1: Image processing' and contains a sequence of blocks: Flow select (CSI-/I, VC, DT), Stats removal (first/last line), Bad pixel, Decimation (ratio 1, 2, 4, 8), Black level (sub per RGB), Exposure (mult and shift per RGB), Demosaicing (raw Bayer-to-RGB), Color conv (configuration coefficients), and Contrast (LUT in luminance). A Statistics extractor and Histogram block are also part of Pipe1. Pipe1 then branches into two post-processing paths: Pipe1 Post-processing (containing Frame control, Crop, Downsize (max 8x8, 2568p), Gamma (fixed g = 2.2), YUV conv (configuration coefficients), 444-to-420, and Pixel packer) and Pipe2 Post-processing (containing Frame control, Crop, Downsize (max 8x8, 2568p), Gamma (fixed g = 2.2), and Pixel packer). Pipe2 also includes a Flow select (CSI-/I, VC, DT) block. The output of the post-processing paths goes to an IP-PLUG, which then connects to an AXI bus (64 bits). Control signals like PipeDiff=1 and PipeDiff=0 are shown between the pipes. The diagram is labeled MSv77298V1.

Block diagram of the DCMIPP architecture showing three processing pipes (Pipe0: Dump, Pipe1: Image processing, Pipe2: Post-processing) and their connections to CSI-HOST, IP-PLUG, and AXI bus.

In the ISP processing, and therefore before the post-processing pipes (Pipe1 and Pipe2), the component dynamic is reduced to 8 bits per component. If the software intends to benefit of the wider dynamic, the input data must be dumped via Pipe0, which keeps the input pixel format (10/12/14 bpp) when storing them in memory.

Table 373. Glossary

ItemDefinition
AAlpha component, used to define transparency, opaque = 0xFF, for example ARGB.
3A
(or AAA)
In ISP domain: acronym for AE-AF-AWB, algorithms automatically correcting pictures:
– AE: automatic exposure control (adapts exposure or sensibility of sensor)
– AF: automatic focus control (adapts the focus)
– AWB: automatic white balance (adapts the color tones to have a white balance).
BPCBits per component (for example, RGB565 has five bits for the red component, hence 5 bpc)
BPPBits per pixel (for example, RGB565 has 16 bits per pixel, hence 16 bpp)
CSICamera serial interface, and its latest standard by MIPI®, the CSI-2 v1.3 (and v2.0)
DCMIPP_Digital camera interface - Pixel pipeline
DTData type, used in the CSI-2 standard. The data type is a concept similar to the pixel format, but adds support for other data like the byte format.
InterlacedInterlaced video: the field with odd lines is transmitted first, followed, after the last odd line, by the field with even lines. The two fields are thus consecutive but exclusive.
InterleavedInterleaved packets, applies to CSI-2: two groups of packets transmitted by the sensor can be emitted mixed, as a packet granularity.

Table 373. Glossary (continued)

ItemDefinition
ISPImage signal processing: algorithms that retune the sensor output (through correction of pixels, demosaicing, lens-correction, light/contrast correction) to build a good quality picture.
NPUNeural network processing engine (also known as NN, neural network).
PlanarDefines in how many sub-buffers a pixel buffer is split into: 1 (coplanar), 2 (semi-planar), 3 (full planar).
VCVirtual channel, used in the CSI-2 standard, makes it possible to simultaneously transmit up to four parallel flows (in CSI-2 v1.3) or more (in CSI-2 v2.0).
YUV444Pixel format, YUV color reference, all three components (Y, U, V) given per pixel.
YUV422Pixel format, YUV color reference, chroma component (U, V) sub-sampled 1/2 in X

42.2 DCMIPP main features

42.3 DCMIPP functional description

42.3.1 DCMIPP block diagram

The block diagram of the DCMIPP is shown in Figure 344.

Figure 344. DCMIPP block diagram

DCMIPP block diagram showing internal components like Parallel interface, Input selection, Pipe 0: Dump, Pipe 1: Main, Pipe 2: Ancillary, and AXI Master clients.

The diagram illustrates the internal architecture of the DCMIPP. It features a Parallel interface on the left, connected to external signals: DCMIPP_D0, DCMIPP_D1, DCMIPP_D14, DCMIPP_D15, DCMIPP_PIXCLK, DCMIPP_HSYNC, and DCMIPP_VSYNC. A CSI2 host is connected via an ISB byte header to an Input selection block. The Input selection block feeds into three parallel processing pipes: Pipe 0: Dump, Pipe 1: Main, and Pipe 2: Ancillary. Pipe 0: Dump includes a Pipe control, Crop 2D Decimation, Dump counter, Event controller, and Interrupt controller. Pipe 1: Main includes a Pipe control, Image processing, Post processing, Event controller, and Interrupt controller. Pipe 2: Ancillary includes a Pipe control, Crop 2D Downsize Gamma, Event controller, and Interrupt controller. A Frame counter and a Global interrupt controller are also present. The Global interrupt controller outputs dcmipp_it_global and event signals for each pipe: dcmipp_p0_hsync_evt, dcmipp_p0_vsync_evt, dcmipp_p0_frameend_evt, dcmipp_p0_lineend_evt, dcmipp_p1_hsync_evt, dcmipp_p1_vsync_evt, dcmipp_p1_frameend_evt, dcmipp_p1_lineend_evt, dcmipp_p2_hsync_evt, dcmipp_p2_vsync_evt, dcmipp_p2_frameend_evt, and dcmipp_p2_lineend_evt. A Register bank is connected via an APB bus. Reset and clock modules receive dcmipp_pclk, dcmipp_aclk, dcmipp_ker_ck, and dcmipp_pxclk. On the right, an IPPLUG block contains six AXI Master client blocks (client1 to client6), which connect to an AXI bus.

DCMIPP block diagram showing internal components like Parallel interface, Input selection, Pipe 0: Dump, Pipe 1: Main, Pipe 2: Ancillary, and AXI Master clients.

MSv76612V1

42.3.2 DCMIPP pads and internal signals

Table 374. DCMIPP input/output pads

Pin nameSignal typeDescription
DCMIPP_Dn
(n = 0 to 15)
InputBit n of the parallel data bus coming from the camera sensor
DCMIPP_PIXCLKInputPixel clock sent by the master (parallel camera sensor module)
DCMIPP_VSYNCInputVSYNC signal (vertical synchronization) coming from the camera sensor
DCMIPP_HSYNCInputHSYNC signal (horizontal synchronization) coming from the camera sensor

Table 375. DCMIPP input/output pins

Internal signal nameSignal typeDescription
dcmipp_pclkInputDCMIPP APB clock (APB bus)
dcmipp_aclkInputDCMIPP AXI clock (AXI bus)
dcmipp_ker_ckInputInterface from the CSI2 host
dcmipp_it_globalOutputDCMIPP interrupts (refer to Table 410 for the full list of interrupt sources)
dcmipp_p0_hsync_evtOutputPipe0 Hsync event
dcmipp_p0_vsync_evtPipe0 Vsync event
dcmipp_p0_frameend_evtPipe0 frame end event
dcmipp_p0_lineend_evtPipe0 line event
dcmipp_p1_hsync_evtOutputPipe1 Hsync event
dcmipp_p1_vsync_evtPipe1 Vsync event
dcmipp_p1_frameend_evtPipe1 frame end event
dcmipp_p1_lineend_evtPipe1 line event
dcmipp_p2_hsync_evtOutputPipe2 Hsync event
dcmipp_p2_vsync_evtPipe2 Vsync event
dcmipp_p2_frameend_evtPipe2 frame end event
dcmipp_p2_lineend_evtPipe2 line event

42.3.3 DCMIPP reset and clocks

Table 376. DCMIPP clocks

DomainClockMaximum frequencyComments
Paralleldcmipp_pxclock120 MHzUp to 2x 120 MB/s in 16-bit mode
Pipelinedcmipp_ker_ck333 MHzUp to 333 Mpixels/s (minus the blanking)
AXI busdcmipp_aclk400 MHzSoC AXI frequency
APB busdcmipp_pclk200 MHzSoC APB frequency

Table 377. DCMIPP resets

DomainReset typeComments
Parallel + PipelineAsynchronousResynchronized internally on dcmipp_pxclk/dcmipp_ker_ck
AXI busSynchronousResets directly the dcmipp_aclk domain
APB busSynchronousResets directly the dcmipp_pclk domain

Clocks and pixel rate limitations

This paragraph lists the DCMIPP limitations and bottlenecks:

Table 378. Parallel interface maximum resolution (80 MHz)

PixelTransmission on the interfaceResolution (30 fps), including blanking
FormatWidth (bpp)WidthCycles/pixelPixel rateMpixel/frameExample
Mono/raw881802.151080 p
14141802.151080 p
RGB5651682401.08720 p
161802.151080 p
RGB8882483270.72qHD
122401.08720 p
YUV42216161802.151080 p
162401.08720 p
YUV44424122401.08720 p
162401.08720 p

42.3.4 DCMIPP maximum resolution

The limitations related to the maximum resolution supported by the DCMIPP are:

42.3.5 DCMIPP minimum requirements for frame structure

DCMIPP imposes the following minimum requirements for the frame architecture:

Blanking phase

Data image area

42.3.6 Description of DCMIPP pixel format support

Table 379 lists the supported pixel formats in the input interfaces (parallel, CSI), as input to the pixel Pipe1 and Pipe2, and in the three output pipes.

Table 379. Supported pixel formats

Index
(1)
Pixel formatBPPParallel
input
(clk/pix)(2)
CSI
input
Pipe0
output
(dump)
Pipe1 and
Pipe2
input
Pipe1
output
(main)
Pipe2
output
(ancillary)
-Bytes
(CSI: long packets and user)
8-YY---
13(3)Byte stream
(JPEG, compressed video)
8Y, 1-Y---
14(4)Other data8 to 16(4)Y, 1-Y---
5Raw66(5)Y(6)Y(6)---
5Raw77(5)Y(6)Y(6)---
5Raw88Y, 1YYYYY
6Raw1010Y, 1YTo 16 bpcTo 8 bpc--
7Raw1212Y, 1YTo 16 bpcTo 8 bpc--
8Raw1414Y, 1YTo 16 bpcTo 8 bpc--
9Mono88Y, 1-YYYY
10Mono1010Y, 1-To 16 bpcTo 8 bpc--
11Mono1212Y, 1-To 16 bpcTo 8 bpc--
12Mono1414Y, 1-To 16 bpcTo 8 bpc--
2RGB44412(5)Y(5)To 8 bpc--
2RGB55515(5)Y(5)To 8 bpc--

Table 379. Supported pixel formats (continued)

Index (1)Pixel formatBPPParallel input (clk/pix)(2)CSI inputPipe0 output (dump)Pipe1 and Pipe2 inputPipe1 output (main)Pipe2 output (ancillary)
2RGB56516Y, 1, 2YYTo 8 bpcYY
3RGB66618(5)Y(5)To 8 bpc--
4RGB888 / YUV444(6)24Y, 2, 3YYYYY
-xRGB888 / xYUV444(6)32--Y-YY
-RGBx888 / YUVx444(6)32--Y-YY
1YUV422-1 (YUYV)16Y, 1, 2YYYYY
-YUV422-216-Y(6)Y(6)-Y-
-YUV420-2 (NV21/NV12)12-Y(6)Y(6)-Y-
-YUV420-3 (YV12)12-Y(6)Y(6)-Y-
-YUV422 10 bpc20-Y(6)Y(6)---
-YUV420 10 bpc15-Y(6)Y(6)---
-Any other CSI-2Any-Y(6)Y(6)---
  1. 1. Index is used to link the input pixel format to the DCMIPP_PRCR register. The index has a meaning only for camera connected with the parallel interface
  2. 2. Pixel formats on 16 bpp (like RGB565 or YUV422-1) can be received either on an 8-bit interface (using 2 cycles), or on a 16-bit input interface (using one cycle). Pixel formats on 24 bpp (like RGB888) can be received either on an 8-bit interface (using three cycles), or on a 12-bit input interface (using two cycles).
  3. 3. In Byte stream mode, the bytes are dumped consecutively with only a 32-bit padding (if needed) at the end of the frame (or JPEG stream). There is no 32-bit padding operation inside the stream until the VSYNC deassertion (end of frame, or end of JPEG stream).
  4. 4. If the data format is different from those in this table, user can choose “others” configuration into bit field FORMAT in the DCMIPP_PRCR register, using bit-field EDM to select how many data bits must be captured in one pixel clock. It is possible to capture two 8-bit data mapped on 16-bit parallel input data in a single cycle (for instance FORMAT = Others, EDM = 100, i.e. 16-bit capture on each pixel clock). Data are 32-bit padded at the end of a line to have a complete line aligned on 32-bit width.
  5. 5. On the parallel interface input, some sensor pixel formats are supported by the DCMIPP, by selecting a wider pixel format in DCMIPP, by mapping the sensor wires onto the MSB of the DCMIPP interface. On the input missing pins, it is recommended to replicate the sensor MSB pins onto the missing input LSB pins. This helps achieving full dynamic on the extended pixel format. The work-around can be applied on the following formats (sensor output on left, mapping on DCMIPP format on right):
    • - Raw6: Raw8 with 1-cycle input, processed as a 8 bpp
    • - Raw7: Raw8 with 1-cycle input, processed as a 8 bpp
    • - RGB444: RGB565 with 1-cycle input, processed as a 16 bpp
    • - RGB555: RGB565 with 1-cycle input, processed as a 16 bpp
    • - RGB666: RGB888 with 3-cycle input, processed as a 24 bpp
  6. 6. The same bit mapping is used for the input RGB888 and YUV444, the input xRGB and xYUV, and similarly for the outputs. The difference between RGB and YUV is the color reference, set in the color conversion that occurs after the input or before the output.

42.4 DCMIPP input and flow control

This section describes the functional elements of the DCMIPP. For each, it details the features, the software configuration, and provides a software configuration example (when needed).

42.4.1 DCMIPP common configuration

The DCMIPP common configuration register (DCMIPP_CMCR) enables the selection of the input interface—either parallel DCMI or serial CSI-2—from which to fetch the input pixels. It also allows swapping the R/B color components of the incoming pixels and selecting the pipe used by the frame counter.

Table 380. DCMIPP_CMCR bit function

Bit IDFunctionComments
INSELInput selectionSelect the input interface to fetch pixels from. The selection is common to all pipes and must not be changed while they are active.
– 0: DCMI
– 1: CSI-2
PSFCPipe selection for the frame counterSelect which pipe the frame counter maps to.
CFCClear frame counterClear the frame counter when set.
SWAPRBSwaps R-versus-B components (and U-versus-V) of the input pixelsOperate only on pixel pipes, not on dump pipe.

42.4.2 Parallel input interface

The parallel interface is a flexible pixel interface that clocks in a bus of 8- to 16-bit in parallel, with an externally provided clock, and adds vertical and horizontal synchronization, provided either with specific pins (external sync) or flagged via specific data (as in CCIR601).

Interface (all inputs)

Features

Hardware synchronization mode

In this mode two synchronization signals (DCMIPP_HSYNC and DCMIPP_VSYNC) are used.

Depending on the camera module/mode, data can be transmitted during horizontal/vertical synchronization periods. DCMIPP_HSYNC/DCMIPP_VSYNC act as blanking signals, as all data received during DCMIPP_HSYNC/DCMIPP_VSYNC active periods are ignored.

To correctly transfer images in the RAM buffer, data transfer is synchronized with the DCMIPP_HSYNC/DCMIPP_VSYNC signals. When the hardware synchronization mode is selected, and capture is enabled (CPTREQ bit set in DCMIPP_PxFACTCR), data transfer is synchronized with the deassertion of the DCMIPP_VSYNC signal (next start of frame).

Transfer can then be continuous, with successive frames transferred by the IP-Plug to successive buffers or the same/circular buffer.

Embedded data synchronization mode

In this synchronization mode, the data flow is synchronized using embedded 32-bit codes, using the 0x00/0xFF values not used in data anymore. There are four types of codes, all with 0xFF00 00XY format. The embedded synchronization codes are supported only in 8-bit parallel data capture (in the DCMIPP_PRCR register, the EDM[2:0] bits must be programmed to “000”). For other data widths, this mode generates unpredictable results.

Note: Camera modules generate up to eight synchronization codes when in interleaved mode, while the DCMIPP reacts to one single code. As a consequence, an interleaved flow with an embedded synchronization has one every other frame discarded as not detected.

Mode 2

Four embedded codes signal the following events:

The XY values in the 0xFF00 00XY format of these codes are programmable (see Section 42.14.9).

A 0xFF value programmed as a frame end means that all the unused codes are interpreted as valid frame end codes.

In this mode, once the camera interface has been enabled, the frame capture starts after the first occurrence of the frame end (FE) code followed by a frame start (FS) code.

Mode 1

An alternative coding is the camera mode 1. This mode is ITU656 compatible.

The codes signal another set of events:

This mode can be supported by programming the following codes:

An embedded unmask code is also implemented for frame/line start and frame/line end codes. Using it, it is possible to compare only the selected unmasked bits with the programmed code. User can therefore select a bit to compare in the embedded code and detect a frame/line start or frame/line end. This means that there can be different codes for the frame/line start and frame/line end with the unmasked bit position remaining the same.

Example:

In this case the frame start code is embedded in bit 4 of the frame start code.

Note: FEC sequence must be sent before the transfer of the first frame, otherwise other codes are not decoded and the first frame can be lost after the DCMIPP has been enabled. After the first FE sequence, the following frame is captured based on FS sequence.

Error conditions

Error conditions can be detected when using the embedding synchronization data modes. Flags PRERRF in DCMIPP_CMSR2 and ERRF in DCMIPP_PRSR are used for this function. An interruption can be triggered based on error detection if bit PRERRIE in

DCMIPP_CMIER is set for the global interrupt (or bit ERRIE in DCMIPP_PRIER for a local interrupt line).

For instance, such kind of wrong sequences or values generate an error:

Software configuration

Table 381. DCMIPP_PRCR bit function

Bit IDFunctionComments
ENABLEEnables the parallel interfaceLow-power mode when disabled.
PCKPOLDefines clock polarity– 0: Falling edge
– 1: Rising edge
ESSDefines if VSync and HSync synchronizations are provided by sideband (specific hardware IO) or by in-band (specific embedded codes) signals– 0: Hardware (external) synchronization: using DCMIPP_HSYNC and DCMIPP_VSYNC pins.
– 1: Embedded (internal) synchronization: using codes FSC, FEC, LSC, LEC and masks in registers DCMIPP_PRESCR and DCMIPP PRESURy.
VSPOL, HSPOLDefines the polarity of the IO DCMIPP_VSYNC and DCMIPP_HSYNC used for, respectively, the vertical and horizontal synchronization– 0: Active low
– 1: Active high
FORMATDefines the pixel format used on the IO DCMIPP_DxFrom 0 to 15
EDMDefines the amount of valid bits received per cycle8/10/12/14/16 bits
The duration of a pixel is extracted by the bit-per-pixel (given by FORMAT) and bit-per-cycle (given by EDM) ratios1, 2 or 3 cycles
SWAPBITSSwaps the 16 bits of the parallel interface15:0 becomes 0:15
SWAPCYCLESSwaps, when a pixel is received in two cycles, the data from the first cycle with the data from the second cycleSoftware must not activate it when a pixel is received in one or three cycles.

The embedded synchronization codes are configured by means of DCMIPP_PRESCR and DCMIPP PRESUR registers (see Table 382).

Table 382. DCMIPP_PRESCR and DCMIPP PRESUR bit function

Bit IDFunction
FSC, FECFrame-start and frame-end synchronization, when embedded synchronization ESS = 1
FSU, FEUMasks for FSC and FEC codes
Table 382. DCMIPP_PRESCR and DCMIPP PRESUR bit function (continued)
Bit IDFunction
LSC, LECLine-start and line-end synchronization, when embedded synchronization ESS = 1
LSU, LEUMasks for LSC and LEC codes

42.4.3 Interface from CSI-2 host

The CSI-2 host and DPHY_RX (both external to the DCMIPP) provide the data from the CSI-2 camera sensor, forward them into the DCMIPP using the ISB byte header interface.

The ISB byte header features are:

42.4.4 Test pattern generator (TPG)

This is a continuous frame generator that replaces the need, for a camera sensor, to test the DCMIPP and the system. It is located at the head of the DCMIPP pipelines, aside of the parallel interface, or the interface from the CSI-Host.

When active, frames are generated indefinitely, with a deterministic pattern, at the desired resolution, pixel format, and with a potential lifeline to show an evolution from frame to frame.

Functionality

The test pattern generator generates one pixel (visible or blanking) per clock cycle of clk_proc for all formats, except RGB888, generated every two clock cycles.

Software configuration

The software configuration registers are not shadowed as assumed constants.

Table 383. DCMIPP_CMTPGCR1 and DCMIPP_CMTPGCR2 bit function

Bit IDFunction
WIDTHWidth of the visible pixels to generate per frame, up to 16383 pixels wide.
The TPG adds an additional horizontal blanking, 1/8 of the width (with a minimum of 16 pixels), and one additional sync cycle.
If FORMAT is YUV, WIDTH is rounded to the lower 16.
HEIGHTHeight of the visible lines to generate per frame, up to 16383 pixels wide.
The TPG adds an additional vertical blanking of VBL lines.
VBLVertical blanking at the bottom of the frame.
FORMATPixel format generated, among RGB565, RGB888, RAW, Mono, YUV422.
RTRaw Bayer type: the sequence of components (RGGB, GRBG, GBRG, BGGR)
YTYUV422 type: whether BT.601 or 709, and whether full or reduced range.
PATTERNDefines the pattern used to fill the frame:
– Can be a color bar pattern, with 8 vertical color bars generated. The colors, from left to right, are: white, yellow, cyan, green, pink, red, blue, black.
– Can be a color square pattern, with the frame built of adjacent in 256x256 color squares, with a color gradient across each pixel.
GSENTransforms the color of the pattern to a grey scale.
LFLENActivates the lifeline. When active, it becomes visible, and progresses indefinitely, frame after frame.
TPGENActivates the TPG.

After the TPG activation with ENABLE = 1, a frame is generated with the desired resolution (WIDTH, HEIGHT) and pixel format (FORMAT). If FORMAT selects a raw Bayer format, then TYPE selects the raw Bayer sequence of component.

The frame rate (FPS) is configured using the vertical blanking (VBL). One pixel (visible or in the horizontal or vertical blanking) is generated per clock cycle at the clk_proc clock (except for the RGB888, with one pixel every two clock cycle). The relation between these items is:

\[\text{FPS} = \text{clk\_proc} / \text{Resolution (with blanking)}\]

\[= \text{clk\_proc} / (\text{WIDTH} + \max(16, \text{WIDTH}/8) + 1) \times (\text{HEIGHT} + \text{VBL}).\]

For a usecase with a large needed visible resolution (WIDTH, HEIGHT), a needed FPS, and a given constant clock frequency clk_proc, VBL is configured as follows:

\[\text{VBL} = (\text{clk\_proc} / \text{FPS} / (\text{WIDTH} + \max(16, \text{WIDTH}/8) + 1)) - \text{HEIGHT}\]

Note that the RGB888 FORMAT and its pixel rate are 2x lower than those for other formats:

RGB888 later in the pipe, resulting in a similar result in the pixel pipe. This permits to benefit of the full pixel rate, 1 pix / clk.

Configuration example

To generate an VGA frame at 30 fps, based on a clk_proc clock of 200 MHz, and with a raw Bayer 10 pixel format, with the sequence RGGB, configure:

42.4.5 Input selection

Input selection block is ahead of any pipe to select the camera sensor module interface connected to the DCMIPP. Two interfaces are supported:

Both interfaces are exclusive. The selected one is applied to all the input pipes.

The camera sensor interface is selected by means of bit INSEL of the DCMIPP_CMCR register.

42.4.6 Flow selection

The module, present in each pipe, handles the flow control around the CSI2 camera sensor interface. For each pipe, the software needs to configure which virtual channel (VC) and which Datatypes (DT) are processed by the pipe.

For Pipe0 and Pipe1, multiple Datatypes can be selected whereas only one virtual channel can be defined for a frame. Configuration can be changed frame by frame if the application requires it, offering some flexibility.

For Pipe2, when the pipe is independent with PIPEDIFF = 1, only one virtual channel and only one data type by frame can be selected.

The software has to reconfigure the flow selection module to handle interleaved frames from a sensor if it uses virtual channels as a mean to make the differentiation, accepting to lose frames since there can be only one virtual channel active for a given frame (it decreases the FPS).

Multiple cameras data flow can be received simultaneously through the CSI2 ISB header bus. For instance, for a system having two different camera data flows, it is possible to redirect one virtual channel on a pipe and the other one on the other pipe. It can be

interesting to dump them on Pipe0, but only one frame over two since the flow selection block has to be reconfigured to switch from one VC to another one.

The flow selection module is used also to share some image processing features (demosaicing, color conversion, statistics, contrast enhancement, auto exposure, statistics removal and basic decimation) between Pipe1 and Pipe2, whatever the camera sensor interface solution (parallel interface or CSI2 interface): when bit PIPEDIFF in the DCMIPP_P1FSCR register is 0, or the input is on the parallel interface that provides unique flow, the Pipe2 samples pixels from the output of the ISP of Pipe1 (see Figure 343). PIPEDIFF must be reconfigured when Pipe1 and Pipe2 are disabled.

Software configuration

The following configurations must be set first, because static in the DCMIPP_PxFSCR registers:

Pipe0

Pipe1

Pipe2

If PIPEDIFF = 0 in DCMIPP_P1FSCR, the configuration bits are directly those set in the DCMIPP_P1FSCR register.

The above bit fields are meaningful when PIPEDIFF = 1.

42.4.7 Frame counter

A frame counter is available for a tag purpose and counts all the frame received on the selected pipe.

The counter is 32-bit, read-only. It is active at least when bit PIPEN of the pipe to whom it is connected is enabled (PIPEN = 1).

It provides an (almost) unique frame number, with a loop time of 4.5 years (if 30 fps).

The counter can be incremented, depending on the PSFC in DCMIPP_CMCR, at the FrameStart event of the selected virtual channel, when a CSI-2 camera sensor is connected, or at the FrameStart event of the pipe when the camera sensor module is connected with parallel interface.

The frame counter is cleared by setting CFC in the DCMIPP_CMCR register.

Software configuration

The frame counter must be configured before it is used for the pipe. Software action(s) must be performed in the DCMIPP_CMCR register:

Note: It is possible to have the Frame counter run on a pipe, while having the pipe not flowing any pixel: this is achieved with pipe enable active (PIPEN = 1) to have the frame counter run, but with CPTREQ = 0 to avoid any pixel flow.

42.4.8 Frame control

The module is replicated for each dump and pixel pipe. It handles the frame control and the capture of each pipe, grouping data into frames, and capturing them when requested.

Definitions

There are two notions of frame events

Features

Extraction algorithm for FrameStart and FrameEnd

The extraction of the FrameStart and FrameEnd is straightforward.

In CSI-2 mode, each pipe is handling a unique virtual channel ID by frame. In case of interleaved flow in input of the DCMIPP, the software can decide to:

The interlaced mode can be handled by the software in CSI-2 mode by changing the pipe configuration frame by frame.

The following usecases are supported and detailed in the figures below:

The use cases with two exclusive VCs can be handled either using one single pipe, by reconfiguring it from frame to frame, or by splitting the flow on more than one pipe, each of them handling its own VC:

Figure 345. VC flow processed by one pipe

Diagram illustrating VC flow processed by one pipe. It shows two consecutive frames, labeled FRMCNT = N and FRMCNT = N + 1. Each frame starts with a FrameStart marker and ends with a FrameEnd marker. Within each frame, there is a VC0_SOF (Start of Frame) and a VC0_EOF (End of Frame) signal. The time between FrameStart and FrameEnd is labeled CPTACT = 1. The entire sequence is shown on a horizontal timeline with an arrow pointing right.

The diagram illustrates the processing of two consecutive frames, labeled FRMCNT = N and FRMCNT = N + 1, by a single pipe. Each frame is bounded by a FrameStart and a FrameEnd marker. Within each frame, there is a VC0_SOF (Start of Frame) and a VC0_EOF (End of Frame) signal. The time between FrameStart and FrameEnd is labeled CPTACT = 1. The entire sequence is shown on a horizontal timeline with an arrow pointing right.

Diagram illustrating VC flow processed by one pipe. It shows two consecutive frames, labeled FRMCNT = N and FRMCNT = N + 1. Each frame starts with a FrameStart marker and ends with a FrameEnd marker. Within each frame, there is a VC0_SOF (Start of Frame) and a VC0_EOF (End of Frame) signal. The time between FrameStart and FrameEnd is labeled CPTACT = 1. The entire sequence is shown on a horizontal timeline with an arrow pointing right.

Figure 346. Two exclusive VC flows processed by one reconfigured pipe

Timing diagram for two exclusive VC flows processed by one reconfigured pipe. The diagram illustrates pipe reconfiguration between frames from VC0 (VC0_SOF to VC0_EOF) and VC1 (VC1_SOF to VC1_EOF), showing DCMIPP_PxFSCR.VC[1:0] reconfiguration timings, CPTACT = 1 pulses, and FRMCNT(1) = N, N + 1, N + 2 progression.
Timing diagram for two exclusive VC flows processed by one reconfigured pipe. The diagram illustrates pipe reconfiguration between frames from VC0 (VC0_SOF to VC0_EOF) and VC1 (VC1_SOF to VC1_EOF), showing DCMIPP_PxFSCR.VC[1:0] reconfiguration timings, CPTACT = 1 pulses, and FRMCNT(1) = N, N + 1, N + 2 progression.
  1. 1. If frame counter is attached to the pipe and if reset is not requested when changing VC.

Figure 347. Two overlapping VC flows processed by two pipes

Timing diagram showing DCMIPP input (CSI-2 interface) with multiplexed VC0 and VC1 packets (VC0_SOF, VC1_SOF, VC0_EOF, VC0_SOF, VC1_EOF, VC1_SOF, VC0_EOF, VC0_SOF, VC1_EOF), demultiplexed into PipeA (processing VC0 with FrameStart and FrameEnd markers) and PipeB (processing VC1 with FrameStart and FrameEnd markers), each maintaining CPTACT = 1 during their active capture periods.
Timing diagram showing DCMIPP input (CSI-2 interface) with multiplexed VC0 and VC1 packets (VC0_SOF, VC1_SOF, VC0_EOF, VC0_SOF, VC1_EOF, VC1_SOF, VC0_EOF, VC0_SOF, VC1_EOF), demultiplexed into PipeA (processing VC0 with FrameStart and FrameEnd markers) and PipeB (processing VC1 with FrameStart and FrameEnd markers), each maintaining CPTACT = 1 during their active capture periods.

Use cases

The Continuous mode is typically used to send to display or to software-analysis a continuous stream of frames.

The Snapshot mode is typically used to dump a high-resolution frame.

The Frame rate mode is typically used for a low-power continuous analysis, where only one frame every eight is dumped and analyzed.

The frame informations are typically used for interlaced video use cases, where the sensors transmit alternatively odd and even fields (top vs. bottom), and where software must be able to retrieve the type of field. Depending on the sensor, it can be retrieved from:

Software configuration

The frame control supports two different capture modes:

The timing diagram of these two modes is shown in Figure 348.

Figure 348. Snapshot (CPTMODE = 1) and Continuous (CPTMODE = 0) capture modes

Timing diagram showing Snapshot (CPTMODE = 1) and Continuous (CPTMODE = 0) capture modes. The diagram illustrates the sequence of events for each mode, including VSYNC, CPTREQ, CPTACT, and CAPTURE to AXI.

The diagram illustrates the timing of capture modes for the DCMIPP. It is divided into two sections: Snapshot mode (CPTMODE = 1) and Continuous mode (CPTMODE = 0).

Snapshot mode (CPTMODE = 1):

Continuous mode (CPTMODE = 0):

Timing diagram showing Snapshot (CPTMODE = 1) and Continuous (CPTMODE = 0) capture modes. The diagram illustrates the sequence of events for each mode, including VSYNC, CPTREQ, CPTACT, and CAPTURE to AXI.

Table 384. DCMIPP_PxFCTCR bit function

Bit IDFunctionValues
CPTMODECapture mode– 0: Continuous
– 1: Snapshot
CPTREQCapture request– 1: Capture requested
FRATEFrame rate– 0: Full rate capture
– 1: 1/2-rate capture
– 2: 1/4-rate capture
– 3: 1/8-rate capture
CPTACT(1)Capture status– 1: Capture currently active

1. Bit read from the DCMIPP_PxSR register.

Configuration example

The software operations when using the Snapshot mode are the following:

  1. 1. Software sets CPTMODE = 1, to use the Snapshot mode.
  2. 2. Software sets PIPEN = 1, to let the flow selection send data to PipeN.
  3. 3. Software sets CPTREQ = 1, to request the capture of one frame.
  4. 4. At the first following VSync, the HW samples CPTREQ at 1, with the following impact:
    1. a) The capture effectively starts: pixels flow into the pipe and are dumped in memory.
    2. b) CPTACT is set to 1, to mention that a capture is currently ongoing, and that it is best to not modify the configuration of the pipe operators, unless shadowed.
    3. c) CPTREQ is reset to 0, so that only a single frame is dumped.
  5. 5. At the following capture complete interrupt
    1. a) CPTACT is reset to 0, to signal that the capture is over.
    2. b) The capture is complete, no more pixels are flowing, hence software can restart to update the configuration of non-shadowed registers without any issue, and use the captured pixels in memory. Depending upon the sensor blanking, this period can be short.
  6. 6. At the next VSync, CPTREQ usually is sampled at 0, so that no more frames are captured
    • – As soon as CPTREQ is reset to 0 the software can set it again to 1, to request a capture at the following frame. It means that a continuous sequence of frame can be captured by setting again CPTREQ to 1, continuously frame after frame.

The software operations when using the Continuous mode are the following:

  1. 1. Software sets CPTMODE = 0, to use the Continuous mode.
  2. 2. Software sets PIPEN = 1, to let the flow selection send data to PipeN.
  3. 3. Software sets CPTREQ = 1, to request the continuous capture of frames.
  4. 4. At the first following VSync, CPTREQ is sampled at 1, with the following impact:
    • – As in Snapshot mode, the capture starts, and CPTACT is set at 1.
    • – Unlike the Snapshot mode, CPTREQ is not modified and remains at 1.
  5. 5. At the following capture complete interrupt:
    • – As in Snapshot mode, CPTACT is reset to 0, capture stops, software can shortly reconfigure the pipes, and software can use the captured pixels.
  6. 6. At the next VSync, and as long as CPTREQ remains at 1, the capture restarts, similarly as described above.
  7. 7. To stop capturing later frames, software resets CPTREQ to 0.
    • – An ongoing capture continues until completion.
  8. 8. At the next VSync, CPTREQ is sampled at 0, and the next capture does not restart.

42.4.9 Pipe deactivation

It is possible to abort a pipe to stop any frame acquisition and to potentially offer a mean to reprogram it completely (including non-shadowed registers), or to let it fully disabled for some time. The following operating mode has to be considered to correctly stop the pipe:

  1. 1. Disable the CPTREQ bit of the DCMIPP_PxFCTCR register of the corresponding pipe
  2. 2. Poll CPTACT = 0 status bit in the DCMIPP_CMSR1 register to check if the pipe is no longer active (idle state)
  3. 3. Disable PIPEN in the DCMIPP_PxFCTCR register.

When disabling the pipe, the last frame is processed completely by respecting the above operating mode.

Note: To disable the parallel interface (PREN = 0 in the DCMIPP_PxFSCR), it is recommended to first disable the pipes considering the above operation mode, before switching off the parallel interface.

42.5 Pipe0 (dump pipe)

42.5.1 Overview

Pipe0 works as a dump pipe: it extracts data from the camera sensor module and dumps them (as-is) to the targeted memory, with some basic decimation and cropping 2D operations in between.

Figure 349. Pipe0 (dump) architecture overview

Figure 349. Pipe0 (dump) architecture overview. The diagram shows the data flow from 'From input' through 'Pipe0: Ctrl' (containing 'Frame control (capture, rate)'), then into 'Pipe0: Dump' (containing 'Decimation (ratio 1:2,4)', 'Crop (sub-rectangle)', 'Header insertion', and 'Dump counter'), and finally through 'AXI' (containing 'AXI master') to the 'AXI bus 64 bits'. The diagram is labeled MSv56440V2.
graph LR
    Input[From input] --> Ctrl[Pipe0: Ctrl]
    subgraph Ctrl
        FrameControl[Frame control (capture, rate)]
    end
    FrameControl --> Dump[Pipe0: Dump]
    subgraph Dump
        Decimation[Decimation (ratio 1:2,4)] --> Crop[Crop (sub-rectangle)] --> Header[Header insertion] --> Counter[Dump counter]
    end
    Counter --> AXI[AXI]
    subgraph AXI
        AXIMaster[AXI master]
    end
    AXIMaster --> Bus[AXI bus 64 bits]
  

MSv56440V2

Figure 349. Pipe0 (dump) architecture overview. The diagram shows the data flow from 'From input' through 'Pipe0: Ctrl' (containing 'Frame control (capture, rate)'), then into 'Pipe0: Dump' (containing 'Decimation (ratio 1:2,4)', 'Crop (sub-rectangle)', 'Header insertion', and 'Dump counter'), and finally through 'AXI' (containing 'AXI master') to the 'AXI bus 64 bits'. The diagram is labeled MSv56440V2.

Pipe0 retrieves data from the camera sensor module connected to the DCMIPP through the 16-bit parallel interface or the CSI-2 interface, by means of the CSI-2 host controller peripheral. The selection between interfaces is managed by means of bit INSEL in the DCMIPP_CMCR register.

The flow selection chooses the virtual channels and data types to be processed by the pipe from the CSI2 host controller, see Section 42.4.6 for more details.

The frame controller handles mainly the camera acquisition mode (continuous or snapshot, frame rate), see Section 42.4.8 for more details.

When the input data from the camera is valid and supposed to be processed by Pipe0, 2D-cropping and decimation operations can be configured by the software. A dump counter combining with a limit amount of data to be set is offered to handle unknown length of data or to avoid the amount of data to be too wide within a frame.

Pipe0 can be reconfigured from time to time. Some events can be used to trigger the software reconfiguration routines (refer to Section 42.13.2: Interrupts).

It is also possible to write into the shadow registers within the processing of a frame. The values are loaded into the physical register based on the start of frame event.

42.5.2 Decimation

The decimation allows to cheaply downsize a frame.

Based on parallel interface camera module:

When the camera sensor module is designed on CSI-2 interface, the decimation can be based filter out potentially, one line out of two. Indeed, each packet is by protocol composed for an entire line.

Note: Care must be taken when the CSI-2 header is dumped, as it is 32-bit wide, and it increases by one unit the data counter, taking part of the decimation. It is advised not to use the CSI header option when decimation takes place.

Table 385. DCMIPP_P0PPCR bit function

Bit IDFunction
BSM[1:0]To select how much byte/data have to be captured within a line. This feature is available only for a parallel interface camera module.
OEBSAllows the user to chose if the filtering starts from the odd or the even byte.
LSMPossibility to filter out one line out of two.
OELSThe software can select if the filtering rejects the odd or even lines.

42.5.3 Crop/statistics selection/suppression

The dump pipe (Pipe0) has the capability to handle 2-D crop processing. The vertical cropping is based on line, thanks to HSYNC event (from the physical IOs or the embedded code detection if selected). It can be extracted from the CSI-2 packet information (each packet is one line wide by protocol).

The horizontal area on which the crop is applied is based on data (32-bit wide), and not on pixels since this pipe is not directly considering the pixels. It handles the data flow with 32-bit granularity. The CROP functionality is not supported when the pipe is convoking JPEG format. The ENABLE bit must be kept cleared into DCMIPP_P0SCSZR to avoid any unpredictable behavior.

The area to be captured within the frame has to be specified configuring the registers DCMIPP_P0SCSTR and DCMIPP_P0SCSZR. The starting point on the two axis are set accordingly as well as the width in both directions. It is possible to take the data inside or outside this area by means of bit POSNEG in the DCMIPP_P0SCSZR register. Some sensors can send sensor configuration data and statistics (histogram) on the very first and last lines of a frame. By specifying active the area outside of this window selection (POSNEG = 1), only statistic data are extracted by the way, and the software can decide to apply some processing on the data to correct, such as contrast or exposure.

Features

Software configuration

Registers DCMIPP_P0SCSTR and DCMIPP_P0SCSZR have to be configured to set the crop feature into the dump pipe:

  1. 1. Configure the cropped horizontal starting point with HSTART[11:0] and the width with HSIZE[11:0] (both with a 32-bit data granularity).
  2. 2. Configure the cropped lines, starting at line VSTART[11:0] and with a height of VSIZE[11:0] (both with a line granularity)
  3. 3. If any value HSIZE or VSIZE is set to 0, the hardware does not consider crop operation in the vertical or horizontal dimension for which the 0 value has been applied, so that all the pixels in that dimension are sampled.
  4. 4. Select the inner or the outer part of the window for the data capture by configuring POSNEG bit.
  5. 5. Enable the crop feature setting ENABLE bit. This bit must be cleared when JPEG is selected as the input format for Pipe0.

Note: Cropping out the picture size (with too large HSTART or VSTART) leads to a not guaranteed processed frame.

42.5.4 Header insertion

The module works on the dump pipe(s) and it optionally inserts an header before the data of a former CSI packet.

Features

To keep consistency between the amount of bytes provided by the header versus those effectively dumped, it is recommended to not activate the header insertion simultaneously with the crop or decimation, as these functions modify the amount of dumped data.

When header insertion is active, the FrameEnd packet is dumped as a header, and is considered as the unique part of an additional line, inducing an event.

Software configuration

It is configured with the DCMIPP_P0PPCR register:

42.5.5 Dump counter

The dump counter is present on dump pipe. It is used to count the amount of data that are dumped in that frame, and to potentially limit the amount dumped if too large. It allows the software to know the size of dumped buffer, and to make sure that no dump is made out of a preallocated buffer.

It is specifically useful when dumping a content whose length is unknown prior to reception, like an encoded JPG stream. When dumping a pixel frame, the size is known thanks to the configured width and height of the frame.

The counter is counting 32-bit data for almost all the input formats, even if the value is expressed in number of bytes. The counter increment is 4-bytes granularity for all formats except the JPEG byte stream input mode, for which the counter granularity is 8-bit because the application does not know the amount of dumped data.

Features

Software configuration

Table 386. DCMIPP_P0DCCNTR and DCMIPP_P0DCLMTR bit function

Bit IDFunction
ENABLE1: Enables the limit check.
CNTRead-only, counts the amount of data with a 4-byte granularity for most of the input formats or with an 8-bit data granularity in JPEG byte stream mode selected into DCMIPP_PRCR.FORMAT). The counter increment is based on dumped data at the pipe output standpoint. The value is expressed in bytes, whatever the input format.
LIMITGives the maximum amount of 32-bit data that can be dumped. Limit value 0 is inconsistent and the processed frame is not guaranteed if ENABLE bit is set.
LIMITIEDCMIPP_PxIER.LIMITIE bit enables the interrupt.

Note: The dump counter sees the CSI-2 packet headers as normal 32-bit words. Raw Bayer and monochrome pixels on 10/12/14 bpc are padded onto 16 bits, and are thus slightly larger than their 10/12/14 bit size.

42.6 Pipe1 (ISP part)

42.6.1 Overview

Pipe1 is a pixel pipeline in which some image processing (ISP) and post-processing functions are integrated, to relieve the software from very specific (time and memory consuming) operations. The ISP part implements functions like:

Pipe1 ISP block diagram is shown in Figure 350.

Figure 350. Pipe1 ISP architecture view

Block diagram of Pipe1 ISP architecture view. The diagram shows a data flow from 'From INPUT' through 'Pipe Sel' (Flow select) into the 'ISP Pipe'. The 'ISP Pipe' contains a sequence of blocks: Stats removal (first/last line), Bad pixel removal, Decimation (ratio 1:2,4:8), Black level (subtracts per RGB), Exposure (multi and shift per RGB), Demosaicing (Raw Bayer to RGB), Color conv (configuration coefficients), and Contrast (LUT in luminance). A 'Statistics extractor' and 'Histogram' block are connected to the data flow between Decimation and Black level. The output of the ISP Pipe goes to 'Pipe Ctrl' (Frame control: capture, rate), which then leads 'To post-processing'. The diagram is labeled MSv76613V2 in the bottom right corner.
Block diagram of Pipe1 ISP architecture view. The diagram shows a data flow from 'From INPUT' through 'Pipe Sel' (Flow select) into the 'ISP Pipe'. The 'ISP Pipe' contains a sequence of blocks: Stats removal (first/last line), Bad pixel removal, Decimation (ratio 1:2,4:8), Black level (subtracts per RGB), Exposure (multi and shift per RGB), Demosaicing (Raw Bayer to RGB), Color conv (configuration coefficients), and Contrast (LUT in luminance). A 'Statistics extractor' and 'Histogram' block are connected to the data flow between Decimation and Black level. The output of the ISP Pipe goes to 'Pipe Ctrl' (Frame control: capture, rate), which then leads 'To post-processing'. The diagram is labeled MSv76613V2 in the bottom right corner.

Pipe1 is the most featured pixel pipeline, even if the image processing functions can be shared with Pipe2 (refer to Section 42.8.2).

Pipe1 retrieves data from the camera sensor module connected to the DCMIPP with the 16-bit parallel interface or with the CSI-2 interface, thanks to the external CSI-2 host controller peripheral. The selection between interfaces is managed by means of bit INSEL in the DCMIPP_CMCR register.

The flow selection chooses the virtual channels and data types to be processed by the pipe from the CSI2 host controller. Refer to Section 42.4.6: Flow selection for more details.

The frame controller handles mainly the camera acquisition mode (continuous or snapshot, the frame rate). Refer to Section 42.4.8: Frame control.

Pipe1 can be reconfigured from time to time. Some events can be used to trigger the software reconfiguration routines (refer to Section 42.13.2: Interrupts).

It is also possible to write into the shadow registers during the processing of a frame. The values are loaded into the physical register based on the following start of frame event.

42.6.2 Byte-to-pixel conversion

The module works on the pixel pipes: it gets 32-bit words from the input (parallel or CSI) interfaces, extracts the pixels depending on the provided pixel format, and maps them onto the triple-component pixel pipeline, that is 14 bpc at this stage (and 8 bpc later downstream).

Functionality

Software configuration

The used pixel format depends upon the source of the pixels:

42.6.3 Statistics removal

The module is used to removing potential statistic data inserted by a sensor, prior to starting the demosaicing conversion that is multi-pixel and would be impacted by remaining statistics. It is typically used by sensors with a parallel interface, which does not have any way to distinguish between statistics and pixel data. CSI-2 sensors typically split these flows using different virtual channel IDs.

Features

Software configuration

Table 387. DCMIPP_P1SRCR bit function

Bit IDValuesComments
CROPEN1: ActiveIf CROPEN = 0 all pixels are fed through.
FIRSTLINEDEL0 to 7Amount of first lines to delete when CROPEN = 1
LASTLINE0 to 4094Amount of lines to keep after the removed first lines.
If LASTLINE is null, all remaining lines after FIRSTLINEDEL are fed through.

Configuration example

If the received frame contains four lines of statistics, followed by 100 lines of pixels and eight lines of ancillary data, the configuration to extract the 100 lines of pixels is the following:

42.6.4 Bad pixel removal

This module aims at detecting and correcting artifacts generated by a bad pixel on the sensor array. It is based on a correlation extraction, and not on fixed locations.

Functionality

Software configuration

Table 388. DCMIPP_P1BPRCR and DCMIPP_P1BPRSR bit function

Bit IDFunction
ENABLE– 1: Active
– 0: No component checked nor replaced.
To be enabled only for raw Bayer flows, as it corrupts RGB flows.
STRENGTH3 bits, 0 (high tolerance) to 7 (aggressive detection)
BADCNT12-bit counter, reporting the amount of bad components corrected.
The counter saturates at its maximum value (4095). At FrameEnd, the counter is re-clocked (the read value remains stable one full frame), even if the frame is skipped (not captured), and reset to restart accumulation at the next frame.

Configuration example

A too aggressive bad pixel detection might detect false bad pixels and erroneously correct them (it can occur for very thin light vertical lines that cannot be distinguished from bad pixels in the implemented horizontal filter). To avoid such artifacts, it is advised to setup a software loop-back that tunes the filter strength so that the detected bad pixels remain within a predefined valid range.

Start configuration (or without software feedback loop):

Software feedback loop:

Assumes a maximum amount of 100 bad pixels on the array (any other value can be used).

Note: The expected amount of bad pixels (100 in the above example) can be set to other values, or made dependent upon the equivalent gain of the sensor (analog gain, exposure duration). A high-gain picture has more noisy pixels and can accept a more aggressive filter to smooth the noise, while a low-gain picture has mostly correct pixels, only very uncorrelated pixels need to be corrected.

42.6.5 Input decimation

The decimation makes it possible to cheaply downsize a frame, by a factor 2, 4, or 8, in both horizontal and vertical directions. It supports a special mode adapted to a raw Bayer format in input.

The decimation is redundant with the downsize, that brings a higher quality (the decimation discards the data of the dropped pixels, while the downsize averages all pixels and does not lose information).

The decimation has two main usages:

Features

Software configuration

Table 389. DCMIPP_P1DECR bit function

Bit IDFunctionValueComments
HDEC[1:0]Ratio (2 bits)0No decimation
1Ratio 1/2
2Ratio 1/4
3Ratio 1/8
VDEC[1:0]0No decimation
1Ratio 1/2
2Ratio 1/4
3Ratio 1/8

The raw Bayer mode in decimation is indirectly activated when the Datatype is defined as raw Bayer.

42.6.6 Black level calibration

This module suppresses a potential positive black level offset, which happens when the sensor sends non-null pixels when capturing a black picture.

Functionality

Software configuration

Table 390. DCMIPP_P1BLCCR bit function

Bit IDValueComments
ENABLE– 1: Active
– 0: Bypasses R, G, B components
-
BLCR-8-bit offset, for red
BLCG-8-bit offset, for green
BLCB-8-bit offset, for blue

The offset subtracted is aligned components MSB: for instance, if components are defined on 12 bits, the 8-bit offset subtracted for red is BLCR « 4.

Configuration example

It is possible to use the statistics extraction, to extract the long-term most-dark R, G, B components, and assign their darkness as black. Their RGB values become the black level offset for each RGB.

For a raw Bayer sensor with 12-bit components, if the measured black level offset for red is 64 (out of a maximum of 4095), configure BLCR as 16.

42.6.7 Exposure compensation and white-balance calibration

This module aims at compensating bad exposure (too short/dark or too long/light), and at compensating a bad color balance to recenter the colors to more white ones.

The exposure and white balance operations are purely linear, and do not distort colors if performed correctly.

Functionality

Software configuration

Table 391. DCMIPP_P1EXCR1 and DCMIPP_P1EXCR2 bit function

Bit IDValueComments
ENABLE– 1: Active
– 0: Bypasses R, G, B components
-
MULTR, SHFR-8-bit multiplier (mantissa), and up-shift value (0, 1, 2, 3, 4, 5, 6, 7) for red components.
MULTG, SHTG-8-bit multiplier and exponent, for green components.
MULTB, SHTB-8-bit multiplier and exponent, for blue components.

The idle setting (that sends out a similar value as input) is:

Similar idle couples are MULTx = 64 and SHFx = 1, or 32 and 2, or 16 and 3.

Configuration example for exposure alone

It is recommended to use the exposure control in conjunction with the contrast enhancement below in the pipe: the idea is to deliberately keep an exposure lower than ideal, to avoid burning the whites: the contrast enhancement, thanks to non-linear operator on luminance, lightens the dark pixels, and reduces the dynamic of the light pixels without burning them.

It is recommended to use the statistics to extract the average luminance across the whole frame (done best by extracting the R, G, B averages, and computing the luminance from the RGB).

The idea is to push the average output luminance to 128, or if working with the contrast enhancement too, to push it to a lower value, for instance 64.

When measuring an average luminance of 26 (target is 64), the exposure factor to apply is 64/26 = 2.5x = 1.25x*2, hence the following configuration must be set:

Configuration example for an additional white balance

An example of easy way to recenter the colors is using the Gray-world algorithm.

This algorithm assumes that a default scene has an inherent balance of its red, green, and blue pixels, so that the average values of the red, green, and blue components across the ideal picture are the same. If the measured averages are not the same, it means that there has been a distortion of the white balance, that must be corrected by amplifying or reducing the red, green, and blue strengths in the exposure module, thanks to the differentiated red vs. green vs. blue multipliers and exponents.

In practice this is the same approach used for the exposure compensation, but, instead of forcing the output luminance to a default target (64 in the example), user must force the red, green, and blue averages towards the same exposure target.

As an example:

42.6.8 Demosaicing

The module works on the pixel pipes, and implements a mid-quality conversion from raw Bayer 8 bpp to an RGB 24 bpp, with no implicit half-sizing: the output RGB pixel rate is the same as the input component rate.

The conversion targets real-time but medium quality purposes, like display or low-resolution software analysis. For higher quality conversions, it is recommended to convert the raw Bayer in software, with higher quality algorithms but limited to non-real-time, thus still-picture applications.

The algorithm takes the surrounding 3 x 3 components in input, applies linear heuristics to determine the most likely missing components, and generates an output RGB888 pixel.

To provide the 3 x 3 input matrix to the algorithm, the demosaicing module embeds a double line-buffer, 2 x 2688 components wide. As such, it limits the maximum width of a converted demosaicing buffer to 2688 components/pixels wide. Wider camera sensor resolution can be connected and goes through the first decimation stage in front of the demosaicing operation.

Note: This demosaicing conversion algorithm can create some artifacts, like Zipper. Such artifacts are much reduced by a later downsizing or even suppressed for a 2 x 2 downsizing. Applications like display, video encode, or software analysis usually require such a downsize, so the artifacts become invisible.

The underlying heuristic filters try to extract and adapt to edges, horizontal and vertical lines, and lone pixels.

Functionality

Software configuration

Table 392. DCMIPP_P1DMCR bit function

Bit IDValuesComments
ENABLE
  • – 1: Active
  • – 0: Bypasses R, G, B components.
If the camera sensor transmits an RGB or YUV frame and not raw Bayer, the demosaicing conversion must be disabled, by setting Enable = 0. All other parameters are ignored.
TYPE
  • – 0:RGGB
  • – 1:GRBG
  • – 2:GBRG
  • – 3:BGGR
Default raw Bayer with three components (R, G, B)
EDGE
  • – 0: No edge detection, pure linear interpolation
  • – 1 to 7: Relative algorithm strength (respectively 3, 4, 6, 8, 12, 16, 24)
-
LINEH
  • – 0: No horizontal line detection, pure linear interpolation
  • – 1 to 7: Relative algorithm strength (respectively 3, 4, 6, 8, 12, 16, 24)
-
LINEV
  • – 0: No vertical line detection, pure linear interpolation
  • – 1 to 7: Relative algorithm strength (respectively 3, 4, 6, 8, 12, 16, 24)
-
PEAK
  • – 0: No peak detection, pure linear interpolation
  • – 1 to 7: Relative algorithm strength (respectively 3, 4, 6, 8, 12, 16, 24)
-

The four filters, EDGE, LINEH, LINEV, PEAK, improve the zoomed accuracy of the filtered picture (thus mostly luminance correctness, like no Zipper artifact), however at the expense of some chrominance blurring or distortion. Some scenes can require specific settings:

Globally, 6/4/4/2 is a good compromise for the filter strength.

Configuration example

If the camera sensor is raw Bayer, with a grid with a red top-left pixel, the next configuration can be used:

42.6.9 Color conversion

This module implements a color conversion with flexible (fully programmable coefficients), which can be used to map the following features:

Features

Software configuration

Table 393. DCMIPP_PxCCyy (yy = R0, R1, G0, G1, B0, B1) bit function

Bit IDValueComments
ENABLE– 1: Activates the color conversion-
CLAMP– 1: Clamps the output pixel, when using a reduced dynamic-
TYPE– 1: Clamps as RGB
– 0: Clamps as YUV
-
Matrix3x3_Coeff-11 bits (sign, 2 int, 8 dec, with sign as complement to 2)
Added3x1_Coeff-10 bits (sign, 9 int, with sign as complement to 2)

Configuration example

Table 394 provides examples of the most used conversions:

Table 394. Color conversion: examples of coefficients

ConversionOutput componentsInput components
RGB-255 to YUV601-255-RGBAddedClamping
Cr131-110-21128[0 to 255]
Y77150290[0 to 255]
Cb-44-87131128[0 to 255]
YUV601-255 to RGB255-CrYCbAddedClamping
R3512560-175[0 to 255]
G-179256-86132[0 to 255]
B0256443-222[0 to 255]
RGB-255 to YUV709-255-RGBAddedClamping
Cr131-119-12128[0 to 255]
Y55183180[0 to 255]
Cb-30-101131128[0 to 255]
YUV709-255 to RGB255-CrYCbAddedClamping
R3942560-197[0 to 255]
G-118256-4782[0 to 255]
B0256456-232[0 to 255]
RGB-255 to YUV601-240-RGBAddedClamping
Cr112-94-18128[16 to 240]
Y661292516[16 to 235]
Cb-38-74112128[16 to 240]
YUV601-240 to RGB255-CrYCbAddedClamping
R4092980-223[0 to 255]
G-208298-100135[0 to 255]
B0298517-277[0 to 255]
RGB-255 to YUV709-240-RGBAddedClamping
Cr112-102-10128[16 to 240]
Y471571616[16 to 235]
Cb-26-87112128[16 to 240]
YUV709-240 to RGB255-CrYCbAddedClamping
R4592980-248[0 to 255]
G-137298-5577[0 to 255]
B0298541-289[0 to 255]

Table 394. Color conversion: examples of coefficients (continued)

ConversionOutput componentsInput components
RGB-240 to YUV601-240-RGBAddedClamping
Cr131-110-21128[16 to 240]
Y77150290[16 to 235]
Cb-44-87131128[16 to 240]
YUV601-240 to RGB240-CrYCbAddedClamping
R3512560-175[16 to 235]
G-179256-86132[16 to 235]
B0256443-222[16 to 235]
RGB-240 to YUV709-240-RGBAddedClamping
Cr131-119-12128[16 to 240]
Y55183180[16 to 235]
Cb-30-101131128[16 to 240]
YUV709-240 to RGB240-CrYCbAddedClamping
R3942560-197[16 to 235]
G-118256-4782[16 to 235]
B0256465-232[16 to 235]

42.6.10 Contrast enhancement

This module ends the image processing pipe. It makes possible to enhance the contrast of the frame, by non-linear emphasis of the luminance of the pixels, and to provide more luminance quantification steps at highly used luminances (usually central grays), by reducing the amount of quantification steps less used by the picture (usually the few very dark and very light pixels).

Functionality

Software configuration

Table 395. DCMIPP_P1CTCR1,2,3 bit function

Bit IDValuesComments
ENABLE
  • – 1: Active
  • – 0: Bypasses R, G, B components
-
LUMx (x = 0 to 8, respectively inputs at 0, 32, 64, 96, 128, 160, 192, 224, 256)0 to 63Amplification factor:
  • – LUMx = 8 halves the pixel luminance
  • – LUMx = 16 does not modify the pixel luminance
  • – LUMx = 32 doubles the pixel luminance

Configuration example

There are multiple approaches to handle contrasts.

It is possible to flatten the spectrum of luminance density (that is, to try have a similar amount of pixel per each segment of luminance), which is to fill each of the eight segments of luminance with 12.5% of the pixels of the frame.

An intermediate approach is to proceed with only the upper and lower half pixels: half of pixels must have a luminance below and another half above the mid-dynamic (128 for 8-bit components).

It is advised to use the statistics extraction module, sample the luminance after the exposure control (to avoid an impact on the exposure compensation), and sort it in the 12 available bins (refer to Section 42.6.11). From the extracted bins the user must linearly extrapolate the luminance of the median of the amount of pixels. The luminance of median pixel must be increased/decreased to be moved to the targeted output median luminance, which is recommended to be the median dynamic (128).

For instance, a 400 kpixels VGA picture can have 200 kpixels below a luminance of 64, and the other 200 kpixels above that value. The ideal luminance amplification factor can be set to 128/64 = 2x:

The above assertions can be used to compute the LUMx values to configure:

42.6.11 Statistics extraction

This module extracts several statistics across the frame, to provide inputs to the software image compensation algorithms, that configure feedbacks to the following implemented hardware modules: black level calibration, exposure compensation, white balance, and contrast enhancement.

The statistics are accumulated during a full frame, and sampled at the end of the frame, thus allows the software to have the full next frame to read the accumulated statistics, process them, define the adapted configuration for the hardware feedback modules, and to configure these modules.

Thanks the shadowing mechanism, the newly configuration parameters are active at the following frame, thus active at an average two frames after the statistics are accumulated. The statistics extraction block is considering all frames selected by means of the DCMIPP_P1FSCR configuration registers. Statistics block is running even when the frame is not supposed to be captured, respect to the DCMIPP_FCTCR configuration register.

The latency is not an issue, as the captured scene is expected to be almost static, and typical software compensation algorithms filter the statistic variations to avoid oscillations and visual artifacts (the low-pass filter typically has a one-second period).

Functionality

Software configuration

Table 396. DCMIPP_P1STyCR (y = 1, 2, 3), DCMIPP_P1STySR (y = 1, 2, 3), DCMIPP_P1STSTR and DCMIPP_P1STSZR bit function

Bit IDValueComments
ENABLE– 1: Active
– 0: Bypasses R, G, B components
-
MODE– 0: Average modeValues of pixels are accumulated as-is.
– 1: Bin modeValues of pixels are used to see if the pixel fits one of the 12 bins

Table 396. DCMIPP_P1STyCR (y = 1, 2, 3), DCMIPP_P1STySR (y = 1, 2, 3),
DCMIPP_P1STSTR and DCMIPP_P1STSZR bit function (continued)

Bit IDValueComments
SRC (3 bits)– (R, G, B, L)_up– Up: refers to sampling after black level.
– L: luma (Y') computed as R/4+G/2+B/4 when receiving RGB pixels, (R or G or B) when in raw Bayer mode.
– (R, G, B, L)_down– Down: refers to sampling after demosaicing (raw Bayer to RGB conversion), thus after both the exposure and white balance compensation, and when true RGB components (and thus luminance components) are available.
BINS
(2 bits)
MODE =
Average
– 0: AllPixels: no components are rejected
– 1: NoExt16: components are rejected if < 16 or ≥ 240
– 2: NoExt32: components are rejected if < 32 or ≥ 224
– 3: NoExt64: components are rejected if < 64 or ≥ 192
Enables to reject extreme data, not accumulated for statistics.
Additional statistics (with MODE = Bin) are needed to count the amount of selected pixels. BINS = 0 is likely to be the most used setting.
MODE =
Bin
– 0: Low: Accu0 counts if V < 4,
Accu1 if V < 8, Accu2 if V < 16
– 1: LowMid: Accu0 counts if V < 32,
Accu1 if V < 64, Accu2 if V < 128
– 2: UpMid: Accu0 counts if V ≥ 128,
Accu1 if V ≥ 192, Accu2 if V ≥ 224
– 3: Up: Accu0 counts if V ≥ 240,
Accu1 if V ≥ 248, Accu2 if V ≥ 252
Counts the amount of components V.
CROPEN (1 bit)– 1: Statistics extracted from sub-rectangle
– 0: Statistics extracted from whole frame
-
VSTART (12 bits)-Upper position of rectangle, from which statistics are extracted.
HSTART (12 bits)-Left position of the rectangle, from which statistics are extracted.
VSIZE (12 bits)-Height of the sub-rectangle, from which statistics are extracted.
HSIZE (12 bits)-Width of the sub-rectangle, from which statistics are extracted.
ACCU (24 bits)-Result of the 32-bit accumulation, re-sampled at frame boundary, and divided by 256 to fit the ACCU width of 24 bits.

Note: If HSIZE or VSIZE = 0 when the CROPEN bit is set, the block internally forces the “0” value at the maximum for the corresponding bit field (i.e. 0xFFE).

Table 397. Statistics extraction: collected data vs. modes
ModeAverageBin
SRCRGBRawRGBRaw
R, G, B up012 = R/G/B012 = RGB/0/0012 = R/G/B012 = RGB/0/0
L up012 = R/4+G/2+B/4012 = RGB+0+0012 = R/4+G/2+B/4012 = RGB+0+0
R, G, B down012 = R/G/B-012 = R/G/B-
L down012 = R/4+G/2+B/4-012 = R/4+G/2+B/4-

Configuration example for exposure control

For exposure control and white balance calibration, user would typically extract the average values of the luminance, and of the R, G, B. It can be done in a single frame capture campaign, with the following settings:

After one frame (after a VSync), the Accu0, Accu1, Accu2 counters contain, respectively, the average red, green, blue accumulated across the 300 x 220 rectangle.

The value to expect from the Accu0, Accu1, Accu2 can be computed according to the following hypotheses:

The expected values in the accumulators are:

Configuration example for contrast enhancement

For contrast enhancement, the amount of pixels with a luminance inside a bin is typically extracted. As statistics are extracted 3 by 3, and as 12 bins can be accumulated, data are extracted during four consecutive frames, with three different bins for each frame.

The typical configuration is the following:

After one frame (after a VSync), Accu0, Accu1, Accu2 counters contain the amount of pixels fitting bins <4, <8, <16, respectively.

The value to expect from the Accu0, Accu1, Accu2 can be computed by multiplying the following:

The resulting value in accumulators are:

At the following frame, with BINS = 1, the statistics for luminance <32, <64, <128 are extracted, providing figures like 72k (25%), 144k (50%), and 210k (75%).

Such values indicate a median luminance ~64, as 50% of the pixels have a luminance <64.

42.6.12 Histogram

This module extracts from the ongoing frame histograms as statistic informations, and dumps them to external memory via the AXI.

The histograms can be computed from various location of the ISP pipe (before or after some key processing), computed on the full frame or across a grid of region, and one or more pixel components.

Functionality

Software configuration

The software configuration register of the histogram (DCMIPP_P1HSCR) is shadowed, and can be updated from frame to frame.

Table 398. DCMIPP_P1HSCR, DCMIPP_P1HSSR, DCMIPP_P1HSMAR1, DCMIPP_P1HSMAR2, and DCMIPP_P1HSSMAR bit function

Bit IDFunction
ENActivates the histogram extraction and write-out on the AXI to the external memory.
SRCSelects the stage in the ISP pipe, from which the histograms are built.
  • – Can be early and in raw Bayer pixel format, before any pixel processing after the decimation, or just before the exposure or the demosaicing.
  • – Can be later, after the demosaicing and thus in RGB pixel format, before the ColorConv, or before the Contrast, or after the ISP processing. When a source is selected after the demosaicing, a RGB format is considered by the implementation.
HREGHorizontal amount of regions per frame: 1 to 16 regions.
VREGVertical amount of regions per frame: 1 to 16 regions.
HDECDecimation in H of the input pixels, before extracting the histograms. A decimation factor of 1, 2, 4, 8, 16x can be applied. It makes possible to reduce the total amount of pixels to sample, or the pixel rate to sample.
VDECDecimation in V of the input pixels, before extracting the histograms. A decimation factor of 1, 2, 4, 8, 16x can be applied.
BINBin amount per histogram, can be 4, 16, 64, or 256 bins. The bins are linearly spaced (they have the same width).
DYNSelects the dynamic of the input components. The histogram can concentrate on the dark, the semi-dark, the semi-light, or the light value. The latter configuration (the recommended setting) balances the histogram across the whole dynamic range of the input sample.
Table 398. DCMIPP_P1HSCR, DCMIPP_P1HSSR, DCMIPP_P1HSMAR1, DCMIPP_P1HSMAR2, and DCMIPP_P1HSSMAR bit function (continued)
Bit IDFunction
COMPSelects which components are extracted to build a histogram: 1 or 4 components are selected, and 1 or 4 histograms built.
Depending on the input source, the four collected components are:
– if rawBayer: R, Gr, B, Gb
– if RGB: R, G, B,
– if YUV: V, Y, U, V/4 + Y/2 + U/4
– if monochrome: 128, Y, 128, 128/4 + Y/2 + 128/4
HSTART
VSTART
HSIZE
VSIZE
Location and size of the top-left region. The regions have all the same size.
HSIZE and VSIZE must be multiple of their respective decimations.
MAMemory address where the histograms are stored in the system memory. It is a multiple of 16 (the four LSBs must be 0). The address is configured in DCMIPP_P1HSMAR for the next frame. The last dumped address is in DCMIPP_P1HSSMAR register.

The histogram module is an open toolbox, that must be configured consistently. An inconsistent configuration leads to unpredictable and non-supported behaviors. The constraints are the following:

Note: When the source is raw Bayer, the decimation preserves the integrity of the pattern: in either H or V, a decimation by a factor 2x samples two pixels every four. A decimation by a factor

4x samples two pixels every eight, and so on. When no decimation is active, all pixels are sampled.

An interrupt is generated when the capture of the statistics for this frame has been completed on the AXI. The interrupt is the STFRAMEF located in both the DCMIPP_P1SR and the DCMIPP_CMSR2 registers.

Some software inconsistencies can be detected: if so, the interrupt STBCF is triggered in both the DCMIPP_P1SR and DCMIPP_CMSR2 registers. The main detected inconsistencies are for instance (such as usage of reserved/ parameters, too much temporary storage is used, size is not a multiple of the decimation).

In case of the AXI bandwidth has not been sufficient to store the statistics, an interrupt is generated: STOVRF in both the DCMIPP_P1SR and DCMIPP_CMSR2 registers.

In the last two cases, STBCF or STOVRF, the capture of any statistics at this frame is immediately aborted.

Configuration example 1

For a 5M (2560x2048) pixels sensor, full frame extraction across 5x5 regions of the raw Bayer R, Gr, Gb, B components in parallel, sampled at the source of the pipe before any processing:

It results in the following configuration:

HDEC = 1      Decimation by 2x in H

VDEC = 1      Decimation by 2x in V

HREG = 4      To have five regions per line on the frame

VREG = 4      To have five regions vertically on the frame

HSTART = 0    Start at the left side of the frame

VSTART = 0    Start at the top of the frame

HSIZE = 128    \(2560 \text{ pixels} / 2 \text{ (decimation factor)} / 2 \text{ (decimation in raw Bayer)} / 5 \text{ (region)}\)

VSIZE = 1002048 pixels / 2 (decimation factor) / 2 (decimation in raw Bayer) / 5 (region)
SRC = 0Samples at the input of the ISP, after the BadPixelRemoval
COMP = 4To build four histograms, one from each RGGB component
DYN = 0Take the MSB, to sample the full pixels dynamics
BIN = 1For 16 bins per histogram
EN = 1To start the histogram extraction and dump

Configuration example 2

For a 5M (2560x2048) pixels sensor, full frame extraction with a single large region of the single luminance component (extracted from a RGB pixel format), sampled after demosaicing and before the ColorConv stage:

It results in the following configuration:

HDEC = 4Decimation by 16x in H
VDEC = 3Decimation by 8x in V
HREG = 0To have a single region, one per line on the frame
VREG = 0To have a single region, one vertically on the frame
HSTART = 0Start at the left side of the frame
VSTART = 0Start at the top of the frame
HSIZE = 1602560 pixels / 16 (decimation factor) / 1 (region)
VSIZE = 2562048 pixels / 8 (decimation factor) / 1 (region)
SRC = 2Samples at the output of the demosaicing
COMP = 3To sample the computed luminance
DYN = 0Take the MSB, to sample the full pixels dynamics
BIN = 3For 256 bins per histogram
EN = 1To start the histogram extraction and dump

Simplified configuration and constraints

A simplified set of constraints can be defined by setting a conservative configuration for the decimation, that fits any case, at the expense of fewer samples and less precision in the histograms.

A decimation by 16 horizontally and 8 vertically fits all the constraints, whatever the resolution or sampling factor.

Assume a Width and Height of the input frame:

HDEC =4RGB source
3Raw Bayer source
VDEC =3RGB sourceStart/size counts per 16 pixels
2Raw Bayer source
HSTART = 0Left side, always full frame
VSTART = 0Start at the top of the frame
HSIZE =Width / 16 (decimation) / R (regions)
VSIZE =Height / 16 (decimation) / R (regions)
SRC = anySamples at the input of the ISP, after the BadPixelRemoval
HREG = anyAny amount, 1 to 16 of regions per line
VREG = anyAny amount, 1 to 16 of regions vertically per frame
COMP = anyAny amount, 1 to 4 components
DYN = 0Take the MSB, to sample the full pixels dynamics
BIN = computeIn function of 320 bins / R (regions) / C (components)
EN = 1To start the histogram extraction and dump

42.7 Pipe1 (post-processing part)

42.7.1 Overview

The post-processing Pipe1 (whose diagram is shown in Figure 351) is a pixel pipeline in which post-processing functions are integrated to relieve the software from very specific operations (time and memory consuming), like:

Figure 351. Block diagram

Block diagram of Pipe1 post-processing pipeline. Data flows from 'From ISP' into 'Pipe1: Ctrl' (containing 'Frame control (capture, rate)'). This connects to 'Pipe1: Post-processing' which contains a sequence of blocks: 'Crop (sub-rectangle)', 'Decimation (1, 2, 4, 8x)', 'Downsize (1x, 8x)', 'Gamma (g = 2, 2)', 'RGB-to-YUV (coeff = any)', '444-to-420 (chroma down-sampling)', and 'Pixel packer (to pixel format)'. The output goes to 'AXI' (containing 'AXI-MASTER') and finally to the 'AXI bus 64 bits'. The diagram is labeled 'MSv56441V3' at the bottom right.
Block diagram of Pipe1 post-processing pipeline. Data flows from 'From ISP' into 'Pipe1: Ctrl' (containing 'Frame control (capture, rate)'). This connects to 'Pipe1: Post-processing' which contains a sequence of blocks: 'Crop (sub-rectangle)', 'Decimation (1, 2, 4, 8x)', 'Downsize (1x, 8x)', 'Gamma (g = 2, 2)', 'RGB-to-YUV (coeff = any)', '444-to-420 (chroma down-sampling)', and 'Pixel packer (to pixel format)'. The output goes to 'AXI' (containing 'AXI-MASTER') and finally to the 'AXI bus 64 bits'. The diagram is labeled 'MSv56441V3' at the bottom right.

The applicative Pipe1 is the most featured pixel pipeline, even if the image processing functions can be shared with Pipe2 (refer to Section 42.8.2).

Pipe1 can be reconfigured from time to time. Some events can be used to trigger the software reconfiguration routines (refer to Section 42.13.2).

It is also possible to write into the shadow registers during the processing of a frame. The values are loaded into the physical register based on the following start of frame event.

42.7.2 Pixel 2D cropping

The pixel 2D cropping aims at extracting and forwarding a rectangle of pixels.

The cropping assigns an X and Y location to its input pixels, and selects a configured rectangle among the pixels, and forward the pixels of this rectangle farther in the pixel pipe. The pixels around the selected rectangle are discarded.

Functionality

Software configuration

Table 399. DCMIPP_PxCRSTR and DCMIPP_PxCRSZR bit function

Bit IDValuesComments
ENABLE– 1: Cropping active
– 0: All data transmitted
-
HSTART, VSTART0 to 4094Top-left corner of the cropped rectangle.
HSIZE, VSIZE0 to 4094Width and height of the cropped rectangle. Can be larger than the received picture to grab everything.

If the cropped window is larger than the received window, only the received pixels are forwarded (no pixels are inserted to match the window size).

If the software sets 0 in one or both horizontal/vertical size bit fields (HSIZE, VSIZE), the crop forces internally the value to be at the maximum on the corresponding bit field.

Configuration example

To select a small rectangle (size 100 x 50), whose upper pixel is located at position (30, 10), provide the following setting:

The most bottom-right selected pixels have a position (129, 59) from the received picture.

The frame forwarded is handled downstream in the pipe as a 100 x 50 frame.

42.7.3 Decimation pre-downsize

The decimation (prior to downsize) makes it possible to cheaply downsize a frame by a factor 2, 4, or 8x, in both horizontal and vertical directions.

The decimation is partially redundant with the downsize, that brings a higher quality (the decimation discards the data of the dropped pixels, while the downsize averages all pixels and does not lose information).

The decimation complements the downsize (limited to ratio of 8 x 8), to have a combined downsizing ratio of 64 x 64. It is recommended to have the largest ratio implemented in the higher quality downsize, and have needed the decimation complement to that. For instance, for a ratio 30x, is it recommended to have a ratio 4x in decimation, and a ratio 30/4 = 7.5 in the downsize.

Features

Software configuration

Table 400. DCMIPP_PxDCCR bit function

Bit IDFunctionValueComments
HDEC[1:0]Ratio (2 bits)0No decimation
1Ratio 1/2
2Ratio 1/4
3Ratio 1/8
VDEC[1:0]0No decimation
1Ratio 1/2
2Ratio 1/4
3Ratio 1/8

42.7.4 Downsize

This module implements a downsize based on box filtering, which allows ratios from 1x to 8x, independently, in both X and Y directions.

The box filter has properties close to a bilinear filter for small ratios (from 1x to 2x), but provides the advantage of avoiding some Moiré effect for higher ratios (from 2x to 8x) thanks to using all the samples.

Functionality

Software configuration

Table 401. DCMIPP_PxDSCR, DCMIPP_PxDSRTIOR, DCMIPP_PxDSSZR

Bit IDFunctionValuesComments
ENABLE-- 1: Downsize active
- 0: Transmission without downsize
-
HRATIO, VRATIODownsize ratio (respectively horizontally and vertically)16-bit fields, used as unsigned 3 integer 13 decimal.
Valid values are 8192 (= 1x) to 65535 (= 7.999x).
Key parameters that create output pixels.
The optimal is computed as xRATIO = Floor (8192 * xRatioFloatingPoint), maximum value 65535 (x = H or V).
HDIV, VDIVInverted ratio, must be consistent with Ratio10-bit fields, used as unsigned 10 decimal.
Valid values are 128 (= inv8x) to 1023 (= inv1x).
A side parameter, impacts only the luminance of the output pixels.
The optimal in function of xRATIO is xDIV = Floor((1024 * 8192 - 1) / xRATIO) (x = H or V).
HSIZE, VSIZEFinal size after the downsize-The downsize filter clips pixels if the post-downsize size is not correct. The HSIZE and VSIZE are partially redundant vs. the cropping size divided by the downsize ratio.
If VSIZE = 0 or HSIZE = 0, the filter is disabled in that dimension.

Figure 352 shows the principle of the computations:

Figure 352. Downsize with coverage filtering

Diagram illustrating downsize with coverage filtering. It shows a sequence of input pixels (Pi0 to Pi9) and their corresponding output pixels (Po0 to Po3). The input pixels are represented as a horizontal bar with positions 0.0 to 7.0. The output pixels are represented as a horizontal bar below the input pixels. The diagram shows the weighting of input pixels for each output pixel: Po0 uses Pi0 (100%), Pi1 (100%), and Pi2 (25%); Po1 uses Pi2 (75%), Pi3 (100%), and Pi4 (50%); Po2 uses Pi4 (50%), Pi5 (100%), and Pi6 (75%); Po3 uses Pi6 (75%).

The diagram illustrates the downsize with coverage filtering process. It shows a sequence of input pixels (Pi0 to Pi9) and their corresponding output pixels (Po0 to Po3). The input pixels are represented as a horizontal bar with positions 0.0 to 7.0. The output pixels are represented as a horizontal bar below the input pixels. The diagram shows the weighting of input pixels for each output pixel:

Diagram illustrating downsize with coverage filtering. It shows a sequence of input pixels (Pi0 to Pi9) and their corresponding output pixels (Po0 to Po3). The input pixels are represented as a horizontal bar with positions 0.0 to 7.0. The output pixels are represented as a horizontal bar below the input pixels. The diagram shows the weighting of input pixels for each output pixel: Po0 uses Pi0 (100%), Pi1 (100%), and Pi2 (25%); Po1 uses Pi2 (75%), Pi3 (100%), and Pi4 (50%); Po2 uses Pi4 (50%), Pi5 (100%), and Pi6 (75%); Po3 uses Pi6 (75%).

Configuration example

42.7.5 Gamma conversion

This feature implements a gamma compression on each R, G, B component, using a static gamma exponent 2.2, to store gamma-compressed pictures, as defined in the sRGB standard.

Features

Software configuration

ENABLE = 1 in the DCMIPP_PxGMCR registers activate the color conversion.

42.7.6 YUV conversion

This block is a replication of the one described in Section 42.6.9, used to convert RGB in YUV color format (basically, since the conversion YUV to RGB is assumed to be performed by the color conversion block into the image processing main function). Bit fields are the same of the color conversion module, only the register name and the memory mapping are different. The register functions are the same, the register names are DCMIPP_P1YUVxxx instead of DCMIPP_P1CCxx.

42.7.7 Chroma down-sampling

The Chroma down-sampling module reduces the chroma resolution from its arriving YUV444 format to the potential YUV420 output, and sends them to a different channel.

Features

Software configuration

Configuration is indirectly taken from the pixel packing output format, located in the DCMIPP_PxPPCR register.

Output

42.7.8 Pixel packing

This module works on the dump pipe (Pipe0) and pixel pipes (Pipe1 .. N), setting the arriving pixels in memory words.

Features

Note: Some features (for example padding) are available only on the dump pipe, while others (like swap R-vs-B) are available only on the pixel pipes.

Table 402. DCMIPP_PxPPCR bit function

Bit IDFunctionValueComments
M0A, M1A, M2ABase address of pixel buffer in memory, 32-bit wide, aligned on 16 bytes-The line alignment of the pixel buffers in memory is assumed on 16 bytes. Therefore the buffer base address (i.e. M0A, M1A, M2A) must be a multiple of 16 bytes, and similarly for line PITCH.
PITCHAddress jump from line to line, up to 32 Kbyte - 1.-Aligned on 16 bytes.
SWAPRBSwaps R-vs-B components (and U-vs-V, same operation if Y mapped on G) available on pixel pipe and not on dump pipe.--
HEADEREN-- 1: Dumps headersFeature present only in dump pipe.

Table 402. DCMIPP_PxPPCR bit function (continued)

Bit IDFunctionValueComments
PADMSB vs. LSB padding of the raw Bayer and monochrome to 16 bpp.
  • – 0 (align on LSB): backward compatibility with the former DCMI IP
  • – 1 (align on MSB): easier use by software or GPU
Applies only on the dump pipe and for the 10/12/14 (not 8)-bit pixels (the pixel pipe convert pixels into 8 bpc, and padding is therefore not relevant).
FORMATOutput pixel format-
  • – Pipe0: not defined as default input format used for dump. It allows unique formats ByteData, ByteHeader and Mono/raw Bayer 8/10/12/14.
  • – Pipe1: adds semi- and multi-planar formats: YUV 422-2, 420-2, 420-3 if Alpha or X is dumped, they are forced at 255).
  • – Pipe2: supports coplanar pixel formats xRGB8888 (=xYUV444), RGB888 (=YUV444), RGB565, YUV422-1 and Y8.
LINEMULTPeriodicity of the line (HSync) interrupt and event, as power of 2 of LINEMULT configuration (i.e. every 1, 2, ...,128 lines).--

42.7.9 Overrun detection

This logic handles flow-control hazards: the DCMIPP is provided a continuous flow of data (via parallel or CSI2 interfaces) without any wait/hold capability, while downstream of DCMIPP, the access to memory can be temporarily stuck.

In some cases the internal FIFOs of the DCMIPP get full and pixels may be deleted. The overrun detection logic handles such hazard at best.

Features

Software configuration

42.8 Pipe2 (post-processing)

42.8.1 Overview

Pipe2, compared to Pipe1, is a lighter pixel pipeline offering no embedded image processing blocks. This pipe can work in standalone mode, or share the image processing functions with Pipe1 (refer to Section 42.8.2).

Figure 353. Pipe2 architecture overview

Figure 353: Pipe2 architecture overview diagram. The diagram shows a data flow starting from 'From ISP' and 'From input' into a selection block 'SEL'. The output of 'SEL' goes to 'Pipe2: Ctrl' which contains a 'Frame control (capture, rate)' block. The output of 'Frame control' goes to 'Pipe2: Post-processing' which contains a sequence of blocks: 'Crop (sub-rectangle)', 'Decimation (1: 2, 4, 8x)', 'Downsize (1x, 8x)', 'Gamma (g = 2.2)', and 'Pixel packer (to pixel format)'. The output of 'Pixel packer' goes to 'AXI' which contains an 'AXI-MASTER' block. The final output is an 'AXI bus 64 bits'. The diagram is labeled 'MSv55968V3' in the bottom right corner.
Figure 353: Pipe2 architecture overview diagram. The diagram shows a data flow starting from 'From ISP' and 'From input' into a selection block 'SEL'. The output of 'SEL' goes to 'Pipe2: Ctrl' which contains a 'Frame control (capture, rate)' block. The output of 'Frame control' goes to 'Pipe2: Post-processing' which contains a sequence of blocks: 'Crop (sub-rectangle)', 'Decimation (1: 2, 4, 8x)', 'Downsize (1x, 8x)', 'Gamma (g = 2.2)', and 'Pixel packer (to pixel format)'. The output of 'Pixel packer' goes to 'AXI' which contains an 'AXI-MASTER' block. The final output is an 'AXI bus 64 bits'. The diagram is labeled 'MSv55968V3' in the bottom right corner.

The main blocks (controller and post-processing general functions) of Pipe2 are almost the same as those of Pipe1. The flow selection and frame controller allow to configure Pipe2 behavior when it is used in standalone, meaning without image processing heritage from Pipe1. Refer to Section 42.4.6 and Section 42.4.7 for more details about the use cases and the configuration of the pipe.

The set of post-processing blocks is reduced compared to Pipe1, as neither the YUV conversion nor the down-sampling YUV444 to YUV420 are integrated in Pipe2. This pipe can have its own image crop area, its dedicated downsizing, and take benefit of the gamma correction, like Pipe1. Refer to Section 42.7 and to its subsections for more details on how to use and configure by software these post-processing functions.

Software configuration

To use Pipe2 as a standalone pixel pipe, without any image processing functions shared with Pipe1, bit PIPEDIFF must be set in the DCMIPP_P1FSCR register. This bit has a meaning only when the flows can be differentiated, that is, when the camera connected and processed by the DCMIPP is a CSI2 camera interface.

In this non-shared mode, it is required that different flows are sent to Pipe1 and Pipe2, or a non-supported behavior can occur.

The flow to Pipe1 and the flow to Pipe2 may potentially be interleaved at packet level.

Pipe2 may be reconfigured time to time. Some events may be used to trigger the software reconfiguration routines (refer to Section 42.13.2: Interrupts).

It is possible also to write into the shadow registers within the processing of a frame. The values are loaded into the physical register based on the start of frame event.

42.8.2 Pipe1 and Pipe2 sharing image processing functions

Following the application, it may be interesting to share the image processing functions belonging to Pipe1 with Pipe2 when the dataflow is shared for both. One pipe may be used for display operation, and the other one used for statistics or software analysis. In this case PIPEDIFF bit of DCMIPP_P1FSCR register must be cleared.

If the CSI-2 module is connected to the DCMIPP, the VC DT and DTMODE of Pipe2 are the same as those configured into DCMIPP_P1FSCR register, making non relevant the values for these fields into the DCMIPP_P2FSCR register. However, bits CPTREQ and CPTMODE remain active into the DCMIPP_P2FCTCR register to control the flow inside Pipe2.

42.9 Application use cases

There are several application use cases that can fit the DCMIPP architecture, a few of them are described in this section.

42.9.1 Parallel interface camera sensor module

A parallel interface camera sensor can transfer images as well as statistics. It is easier to manage the software processing by splitting the statistics and the image data on different memory storages. Two pipes are used in such case, with Pipe0 extracting the statistics and Pipe1 dealing with the image data (whatever the data format supported by the DCMIPP). Both work in parallel on the same frame, frame by frame. Each output FIFO attached to the pipe conveys the data on the targeted memory for further processing.

The camera sensor module may use some lines of the frame to transfer statistics or sensor configuration data. These lines can be placed at the beginning and at the end of the frame (see Figure 354), even if there is no real standard.

Figure 354. Use case: Pipe0 (statistics), Pipe1 (pixels)

Diagram of a frame structure showing data regions for Pipe0 and Pipe1.

The diagram illustrates a rectangular frame divided into horizontal sections. The top section is labeled 'Camera sensor configuration register values (Pipe0)' with a vertical double-headed arrow indicating its extent. The middle, largest section is labeled 'Pixel data (Pipe1)' and is also indicated by a vertical double-headed arrow. The bottom section is labeled 'Histogram values (Pipe0)' with a vertical double-headed arrow. On the left side, a vertical double-headed arrow spans the height of the 'Pixel data' section and is labeled 'Data image valid'. The entire frame is labeled 'Frame' at the top center.

Diagram of a frame structure showing data regions for Pipe0 and Pipe1.

Software configuration

42.9.2 CSI2 camera sensor module

The CSI2 protocol allows, thanks to Datatypes, to make distinction between different data categories. The application may request to handle interlaced video as well as interleaved data flow like described below.

Single virtual channel involving two pipes (for example Pipe0 and Pipe1)

Figure 355. Statistics and RGB data for single virtual channel data flow

Diagram showing data flow for CSI-2 input statistics + RGB, Pipe0 (dump) statistics, and Pipe1 (pixel) RGB. It includes blocks for VC0_SOF, VC0-DT0, VC0-DT1, and VC0_EOF. A legend defines these as Virtual channel 0 Start/End of Frame, user custom Data type (e.g. statistics), and Virtual channel RGB data respectively.

The diagram illustrates the data flow for a single virtual channel involving two pipes. It shows three horizontal timelines:

Legend:

Diagram showing data flow for CSI-2 input statistics + RGB, Pipe0 (dump) statistics, and Pipe1 (pixel) RGB. It includes blocks for VC0_SOF, VC0-DT0, VC0-DT1, and VC0_EOF. A legend defines these as Virtual channel 0 Start/End of Frame, user custom Data type (e.g. statistics), and Virtual channel RGB data respectively.

Single virtual channel involving three pipes (for example Pipe0, Pipe1 and Pipe2)

Another use case (Figure 356) employs different Datatypes in addition to the statistics within the CSI-2 flow based on a single virtual channel.

Figure 356. Three pipes within a single virtual channel in CSI2 mode

Diagram showing three pipes (Pipe0, Pipe1, Pipe2) within a single virtual channel in CSI2 mode. The input is CSI-2 input statistics + RGB + Raw8. Pipe0 (dump) statistics receives VC0-SOF, VC0-DT0, and VC0-EOF. Pipe1 (pixel) Raw8 receives VC0-SOF, VC0-DT1, and VC0-EOF. Pipe2 (pixel) RGB receives VC0-SOF, VC0-DT2, and VC0-EOF. A legend defines VC0-SOF/EOF as Virtual channel 0 Start/End of Frame, VC0-DT0 as Virtual channel 0 user custom Data type (e.g. statistics), VC0-DT1 as Virtual channel 0 Raw8 data, and VC0-DT2 as Virtual channel 0 RGB data.

CSI-2 input statistics + RGB + Raw8

Pipe0 (dump) statistics

Pipe1 (pixel) Raw8

Pipe2 (pixel) RGB

VC0-SOF/EOF: Virtual channel 0 Start/End of Frame
VC0-DT0: Virtual channel 0 user custom Data type (e.g. statistics)
VC0-DT1: Virtual channel 0 Raw8 data
VC0-DT2: Virtual channel 0 RGB data

Diagram showing three pipes (Pipe0, Pipe1, Pipe2) within a single virtual channel in CSI2 mode. The input is CSI-2 input statistics + RGB + Raw8. Pipe0 (dump) statistics receives VC0-SOF, VC0-DT0, and VC0-EOF. Pipe1 (pixel) Raw8 receives VC0-SOF, VC0-DT1, and VC0-EOF. Pipe2 (pixel) RGB receives VC0-SOF, VC0-DT2, and VC0-EOF. A legend defines VC0-SOF/EOF as Virtual channel 0 Start/End of Frame, VC0-DT0 as Virtual channel 0 user custom Data type (e.g. statistics), VC0-DT1 as Virtual channel 0 Raw8 data, and VC0-DT2 as Virtual channel 0 RGB data.

Interleaved packets (based on multiple virtual channels)

Both Pipe1 and Pipe2 can process these pixels. The shared demosaicing mode can be used, hence both Pipe1 and Pipe2 benefit of the potential demosaicing conversion.

Figure 357. Handling interleaved packet

Diagram showing handling of interleaved packets across two virtual channels. The input is CSI-2 input RGB + JPEG. Pipe0 (dump) JPEG receives VC0-SOF, VC0-DT0, and VC0-EOF. Pipe1 and Pipe2 RGB receive VC1-SOF, VC1-DT1, and VC1-EOF. A legend defines VC0-SOF/EOF as Virtual channel 0 Start/End of Frame, VC1-SOF/EOF as Virtual channel 1 Start/End of Frame, VC0-DT0 as Virtual channel 0 JPEG, and VC1-DT1 as Virtual channel 1 RGB.

CSI-2 input RGB + JPEG

Pipe0 (dump) JPEG

Pipe1 and Pipe2 RGB

VC0-SOF/EOF: Virtual channel 0 Start/End of Frame
VC1-SOF/EOF: Virtual channel 1 Start/End of Frame
VC0-DT0: Virtual channel 0 JPEG
VC1-DT1: Virtual channel 1 RGB

Diagram showing handling of interleaved packets across two virtual channels. The input is CSI-2 input RGB + JPEG. Pipe0 (dump) JPEG receives VC0-SOF, VC0-DT0, and VC0-EOF. Pipe1 and Pipe2 RGB receive VC1-SOF, VC1-DT1, and VC1-EOF. A legend defines VC0-SOF/EOF as Virtual channel 0 Start/End of Frame, VC1-SOF/EOF as Virtual channel 1 Start/End of Frame, VC0-DT0 as Virtual channel 0 JPEG, and VC1-DT1 as Virtual channel 1 RGB.

Figure 358. Handling interleaved packets across two pixel pipes

Diagram showing handling of interleaved packets across two pixel pipes. The input is CSI-2 input RGB + YUV. Pipe1 YUV receives VC0-SOF, VC0-DT0, and VC0-EOF. Pipe2 RGB receives VC1-SOF, VC1-DT1, and VC1-EOF. A legend defines VC0-SOF/EOF as Virtual channel 0 Start/End of Frame, VC1-SOF/EOF as Virtual channel 1 Start/End of Frame, VC0-DT0 as Virtual channel 0 YUV, and VC1-DT1 as Virtual channel 1 RGB.

CSI-2 input RGB + YUV

Pipe1 YUV

Pipe2 RGB

VC0-SOF/EOF: Virtual channel 0 Start/End of Frame
VC1-SOF/EOF: Virtual channel 1 Start/End of Frame
VC0-DT0: Virtual channel 0 YUV
VC1-DT1: Virtual channel 1 RGB

Diagram showing handling of interleaved packets across two pixel pipes. The input is CSI-2 input RGB + YUV. Pipe1 YUV receives VC0-SOF, VC0-DT0, and VC0-EOF. Pipe2 RGB receives VC1-SOF, VC1-DT1, and VC1-EOF. A legend defines VC0-SOF/EOF as Virtual channel 0 Start/End of Frame, VC1-SOF/EOF as Virtual channel 1 Start/End of Frame, VC0-DT0 as Virtual channel 0 YUV, and VC1-DT1 as Virtual channel 1 RGB.

Interlaced video

Figure 359. Interlaced video (based on single pixel pipe)

Diagram of interlaced video based on a single pixel pipe. It shows two parallel data flows for CSI-2 input and Pipe1, both handling RGB even and odd frames. Each flow consists of two virtual channel segments: VC0 (for odd fields) and VC1 (for even fields). Each segment starts with a SOF (Start of Frame) marker and ends with an EOF (End of Frame) marker, with DT1 (Data Type 1) markers in between. An arrow points to the transition between VC0 and VC1 in the Pipe1 flow, indicating a reconfiguration. A legend defines the markers: VC0-SOF/EOF for Virtual channel 0 Start/End of Frame, VC1-SOF/EOF for Virtual channel 1 Start/End of Frame, VC0-DT1 for Virtual channel 0 RGB odd field, and VC1-DT1 for Virtual channel 1 RGB even field.

CSI-2 input
RGB even and odd

Pipe1
RGB even and odd

Pipe1 reconfiguration (VC change in DCMIPP_P1FSCR register memory address to easily isolate odd from even frame)

VC0-SOF/EOF: Virtual channel 0 Start/End of Frame
VC1-SOF/EOF: Virtual channel 1 Start/End of Frame
VC0-DT1: Virtual channel 0 RGB odd field
VC1-DT1: Virtual channel 1 RGB even field

Diagram of interlaced video based on a single pixel pipe. It shows two parallel data flows for CSI-2 input and Pipe1, both handling RGB even and odd frames. Each flow consists of two virtual channel segments: VC0 (for odd fields) and VC1 (for even fields). Each segment starts with a SOF (Start of Frame) marker and ends with an EOF (End of Frame) marker, with DT1 (Data Type 1) markers in between. An arrow points to the transition between VC0 and VC1 in the Pipe1 flow, indicating a reconfiguration. A legend defines the markers: VC0-SOF/EOF for Virtual channel 0 Start/End of Frame, VC1-SOF/EOF for Virtual channel 1 Start/End of Frame, VC0-DT1 for Virtual channel 0 RGB odd field, and VC1-DT1 for Virtual channel 1 RGB even field.

Figure 360. Interlaced video (based on two pixel pipes)

Diagram of interlaced video based on two pixel pipes. It shows a single CSI-2 input flow for RGB even and odd frames, which is split into two separate flows: Pipe1 for RGB odd frames and Pipe2 for RGB even frames. Pipe1 only processes the VC0 segment (odd fields), while Pipe2 only processes the VC1 segment (even fields). Each flow follows the same structure of SOF, DT1, and EOF markers. A legend defines the markers: VC0-SOF/EOF for Virtual channel 0 Start/End of Frame, VC1-SOF/EOF for Virtual channel 1 Start/End of Frame, VC0-DT1 for Virtual channel 0 RGB odd field, and VC1-DT1 for Virtual channel 1 RGB even field.

CSI-2 input
RGB even and odd

Pipe1
RGB odd

Pipe2
RGB even

VC0-SOF/EOF: Virtual channel 0 Start/End of Frame
VC1-SOF/EOF: Virtual channel 1 Start/End of Frame
VC0-DT1: Virtual channel 0 RGB odd field
VC1-DT1: Virtual channel 1 RGB even field

Diagram of interlaced video based on two pixel pipes. It shows a single CSI-2 input flow for RGB even and odd frames, which is split into two separate flows: Pipe1 for RGB odd frames and Pipe2 for RGB even frames. Pipe1 only processes the VC0 segment (odd fields), while Pipe2 only processes the VC1 segment (even fields). Each flow follows the same structure of SOF, DT1, and EOF markers. A legend defines the markers: VC0-SOF/EOF for Virtual channel 0 Start/End of Frame, VC1-SOF/EOF for Virtual channel 1 Start/End of Frame, VC0-DT1 for Virtual channel 0 RGB odd field, and VC1-DT1 for Virtual channel 1 RGB even field.

Software configuration

The following configuration must be set first into the static DCMIPP_PxFSCR and DCMIPP_CMCR registers:

This bit field is not valid for Pipe2.

After all the pipes have been configured, the processing can be activated:

Note: To be cleanly sampled for the next frame, the VCIDA, VCIDB, DTIDA, and DTIDB fields must be updated after a VSync and after the first HSync.

Configuration example

The following list details five possible use cases, among others interlaced video and interleaved frames, and a 3D sensor (left + right eye):

The software needs to reprogram frame to frame the DTIDx fields of the DCMIPP_P1FSCR register to select the data to process into Pipe1 or Pipe2. The software sets CPTMODE bit to work in Snapshot mode for Pipe1 and Pipe2 in the DCMIPP_P1FCTCR and DCMIPP_P2FCTCR registers. Alternatively, bit CPTREQ is set frame by frame in one pipe then in the other one to allow the acquisition of data on the allocated pipe. The data type identifying the odd or even fields needs to be updated into the DCMIPP_P1FSCR register only, as Pipe2 shares the image processing block of Pipe1.

data type (DT2)

42.9.3 Force data type format from CSI-2 data flow (pixel pipes only)

Application may require to use a user data type in the CSI-2 data flow without specifying the format used for the pixel transfer from a camera bridge to the DCMIPP, thanks to CSI-2 interface physical link.

However, the pixel pipes need to know the data format to process them in a proper way along the pipeline. It is possible to force a data type by software thanks to bits FDTF[5:0] and FDTFEN[5:0]. Only the pixel pipes (Pipe1 and Pipe2) can benefit of this capability. Indeed, Pipe0 manages the data and not the pixel itself.

If FDTFEN bit is set in the DCMIPP_PxFSCR register, the data type set into DTIDA/DTIDB (coupled with DTMODE) is used to detect the data type to be overwritten by FDTF[5:0] value. The value used to force the data type must follow CSI-2 data type format specification to identify the CSI-2 normalized data format.

Note: The forced data type value is unique. This means that, if two data types have been selected to be propagated into Pipe1 (DTMODE = 1), both DTIDA and DTIDB detected in input of the pipe are considered by Pipe1 with the forced value FDTF[5:0] if bit FDTFEN is set.

If the virtual channel and data type values are identical between Pipe1 and Pipe2, the force value FDTF[5:0] needs to be aligned within these two pipes if the respective FDTFEN bits are set, otherwise the behavior is not guaranteed.

If PIPEDIFF = 1, any data type format linked to a raw format can be forced on Pipe2 since it is not sharing the demosaicing block of Pipe1.

Typical application example: 3D sensors camera (top-bottom)

Some CSI-2 bridges concatenate data from left and right camera in a top-bottom approach. It means that within a frame, first half of the lines are the ones generated by the left camera, whereas the half last lines of a frame are attached to the right camera sensor. The bridge may typically make a distinction between lines coming from left camera and right camera by identifying the data type with a user data type value linked to a camera.

The user data type does not identify a pixel format, but rather a data linked to a camera. To help the pipeline process in a correct way the pixel, the software must inform the pipeline about the pixel format in input attached to the user Datatypes.

Let us imagine that the application has to separate pixels from the left camera from those of the right camera. Two pixel pipes can be configured for that, with, for instance, Pipe1 for left camera and Pipe2 dedicated to extract pixels from the right camera, as shown in Figure 361.

Figure 361. 3D sensors (top-bottom) processed by two pixel pipes

Diagram showing the data flow from CSI-2 input to two pixel pipes (Pipe1 and Pipe2) for 3D sensors. The CSI-2 input (Raw10) is split into Top (Left camera) and Bottom (Right camera) ranges. Pipe1 processes the Left sensor's 1st half-frame, and Pipe2 processes the Right sensor's 2nd half-frame. The diagram includes a legend for VC0-SOF/EOF, VC1-SOF/EOF, VC0-DT0, and VC1-DT1.

The diagram illustrates the data flow from a CSI-2 input (pixel format Raw10) into two pixel pipes, Pipe1 and Pipe2, for processing 3D sensor data. The input is divided into a 'Top – Left camera sensor range' and a 'Bottom – Right camera sensor range'.

Pipe1 (Left sensor, 1st half-frame): Receives data from the top range. The data stream consists of a sequence of blocks: VC0_SOF, VC0-DT0, VC0-DT0, followed by a dashed line, then VC0-DT0, VC0-DT1, VC0-DT1, followed by another dashed line, then VC0-DT1, and finally VC0_EOF.

Pipe2 (Right sensor, 2nd half-frame): Receives data from the bottom range. The data stream consists of a sequence of blocks: VC0_SOF, followed by a dashed line, then VC0-DT1, VC0-DT1, followed by another dashed line, then VC0-DT1, and finally VC0_EOF.

Legend:

Diagram showing the data flow from CSI-2 input to two pixel pipes (Pipe1 and Pipe2) for 3D sensors. The CSI-2 input (Raw10) is split into Top (Left camera) and Bottom (Right camera) ranges. Pipe1 processes the Left sensor's 1st half-frame, and Pipe2 processes the Right sensor's 2nd half-frame. The diagram includes a legend for VC0-SOF/EOF, VC1-SOF/EOF, VC0-DT0, and VC1-DT1.

DCMIPP_P1FSCR configuration

Pipe1 crop registers (DCMIPP_P1CRSTR and DCMIPP_P1CRSZR) must be configured to crop only the first half lines of the frame corresponding to the pixels coming from the left camera sensor.

DCMIPP_P2FSCR configuration:

Pipe2 crop registers (DCMIPP_P2CRSTR and DCMIPP_P2CRSZR registers) must be configured to crop only the second half lines of the frame corresponding to the pixels coming from the right camera sensor.

42.10 Pixel format description

This section describes the pixel formats used in the parallel interface and in the pixel pipes and dump pipe. The CSI-2 pixel format is described in the CSI-2 v1.3 Standard.

The support for the pixel formats, per interface (parallel, CSI-2, pixel output, dump output) are summarized in Table 403, Table 379.

Note: In the following tables the components are represented with their symbolic color: red and Cr (= V) in red, blue and Cb (= U) in blue, green in green, and Y, monochrome, and all raw Bayer components in gray.

42.10.1 Parallel interface formats

This paragraph describes the input pixel format as supported by the parallel interface of the DCMIPP and the possible swap combinations.

Note: The parallel interface does not input specifically RGB444/RGB555 (and RGB666). However, a sensor with these output can connect them onto the DCMIPP, by selecting RGB565 (and RGB888), and by either connecting the missing bits with the MSB of the sensor output or by strapping them.

Table 403. Parallel interface input pixel formats

IndexIO pin1514131211109876543210
13ByteCycle 1/1--------76543210
5Raw Bayer 8Cycle 1/1--------76543210
6Raw Bayer 10Cycle 1/1------9876543210
7Raw Bayer 12Cycle 1/1----11109876543210
8Raw Bayer 14Cycle 1/1--131211109876543210
9Monochrome 8Cycle 1/1--------76543210
10Monochrome 10Cycle 1/1------9876543210
11Monochrome 12Cycle 1/1----11109876543210
12Monochrome 14Cycle 1/1--131211109876543210
2-1RGB565 - 8 bitsCycle 1/2--------R4R3R2R1R0G5G4G3
Cycle 2/2--------G2G1G0B4B3B2B1B0
2-2RGB565 - 16 bitsCycle 1/1R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0
2-2PCB: Sensor444 to DCMIPP-RGB565Cycle 1/1R3R2R1R0R3G3G2G1G0G3G2B3B2B1B0B3
2-2PCB: Sensor555 to DCMIPP-RGB565Cycle 1/1R4R3R2R1R0G4G3G2G1G0G4B4B3B2B1B0
4-1RGB888 - 12 bitsCycle 1/2----R7R6R5R4R3R2R1R0G7G6G5G4
Cycle 2/2----G3G2G1G0B7B6B5B4B3B2B1B0
YUV444 -12 bitsCycle 1/2----V7V6V5V4V3V2V1V0Y7Y6Y5Y4
Cycle 2/2----Y3Y2Y1Y0U7U6U5U4U3U2U1U0

Table 403. Parallel interface input pixel formats (continued)

IndexIO pin1514131211109876543210
4-2RGB888 - 8 bitsCycle 1/3--------R7R6R5R4R3R2R1R0
Cycle 2/3--------G7G6G5G4G3G2G1G0
Cycle 3/3--------B7B6B5B4B3B2B1B0
YUV444 - 8 bitsCycle 1/3--------V7V6V5V4V3V2V1V0
Cycle 2/3--------Y7Y6Y5Y4Y3Y2Y1Y0
Cycle 3/3--------U7U6U5U4U3U2U1U0
3PCB: Sensor 666 to RGB888Cycle 1/3--------R5R4R3R2R1R0R5R4
Cycle 2/3--------G5G4G3G2G1G0G5G4
Cycle 3/3--------B5B4B3B2B1B0B5B4
1-1YUV422 - 8 bits (YUY'V)Cycle 1/4--------Y7Y6Y5Y4Y3Y2Y1Y0
Cycle 2/4--------U7U6U5U4U3U2U1U0
Cycle 3/4--------Y7'Y6'Y5'Y4'Y3'Y2'Y1'Y0'
Cycle 4/4--------V7V6V5V4V3V2V1V0
1-2YUV422 - 16 bits (YUY'V)Cycle 1/2Y7Y6Y5Y4Y3Y2Y1Y0U7U6U5U4U3U2U1U0
Cycle 2/2Y7'Y6'Y5'Y4'Y3'Y2'Y1'Y0'V7V6V5V4V3V2V1V0

Table 404. Correspondence between index and DCMIPP_PRCR register values

IndexFORMAT[7:0]EDM[2:0]
1-10x1E0x00
1-20x1E0x04
20x220x04
30x230x00
4-10x240x02
4-20x240x00
50x2A0x00
60x2B0x01
70x2C0x02
80x2D0x03
90x4A0x00
100x4B0x01
110x4C0x02
120x4D0x03
13Other values0x00
ST logo
ST logo

To adapt to non-standard sensors, the parallel interface is flexible and allows to swap bits, cycles, components, namely:

Table 405 shows these permutations, based on the RGB565 format. It lists the sampled bits of cycles 1 and 2, on pins 0 to 7, and for each of them returns the assignation of the RGB output components.

Table 405. Parallel interface input pixel formats

IO pin1514131211109876543210
NATIVE RGB565
8 bits
Cycle 1/2--------R4R3R2R1R0G5G4G3
Cycle 2/2--------G2G1G0B4B3B2B1B0
SWAP LSB-MSB
RGB565 - 8 bits
Cycle 1/2G3G4G5R0R1R2R3R4--------
Cycle 2/2B0B1B2B3B4G0G1G2--------
SWAP cycles RGB565
8 bits
Cycle 1/2--------G2G1G0B4B3B2B1B0
Cycle 2/2--------R4R3R2R1R0G5G4G3
SWAP R-vs-B RGB565
8 bits (not available on
dump pipe)
Cycle 1/2--------B4B3B2B1B0G5G4G3
Cycle 2/2--------G2G1G0R4R3R2R1R0

42.10.2 Pixel pipe formats

Table 406. Pixel pipe output pixel format(1)

FormatMemory bits313029282726252423222120191817161514131211109876543210
0RGB888 (packed)B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0
Pixel N + 1Pixel N + 0
G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0
Pixel N + 2Pixel N + 1
R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0
1RGB565Pixel N + 3Pixel N + 2
R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0
2xRGB888 (32 bpp)x (Filling = 0xFF)R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0
Pixel N
3RGBx888 (32 bpp)R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0x (filling = 0xFF)
Pixel N

Table 406. Pixel pipe output pixel format(1) (continued)

FormatMemory bits313029282726252423222120191817161514131211109876543210
4Mono or raw Bayer (8 bpp)76543210765432107654321076543210
Pixel N + 3Pixel N + 2Pixel N + 1Pixel N + 0
5AYUV888 (32 bpp, AYUV)A (Filling = 0xFF)Y7Y6Y5Y4Y3Y2Y1Y0U7U6U5U4U3U2U1U0V7V6V5V4V3V2V1V0
Pixel N
6YUV422-1 buffer (YUYV)V7V6V5V4V3V2V1V0Y7Y6Y5Y4Y3Y2Y1Y0U7U6U5U4U3U2U1U0Y7Y6Y5Y4Y3Y2Y1Y0
Pixel N + 1Pixel N + 0
7YUV422-2 buffers (-)Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0
Buffer0: Pixel N + 3Pixel N + 2Pixel N + 1Pixel N + 0
V7V6V5V4V3V2V1V0U7U6U5U4U3U2U1U0V7V6V5V4V3V2V1V0U7U6U5U4U3U2U1U0
Buffer1: Pixel N + 2 and 3Pixel N + 0 and 1
8YUV420-2 buffers (NV21, NV12 if SwapRB)Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0
Buffer0: Pixel N + 3Pixel N + 2Pixel N + 1Pixel N + 0
V7V6V5V4V3V2V1V0U7U6U5U4U3U2U1U0V7V6V5V4V3V2V1V0U7U6U5U4U3U2U1U0
Buffer1: Pixel N + 2 and 3Pixel N + 0 and 1
9YUV420-3 buffers (YV12)Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0Y7Y6Y5Y4Y3Y2Y1Y0
Buffer0: Pixel N + 3Pixel N + 2Pixel N + 1Pixel N + 0
U7U6U5U4U3U2U1U0U7U6U5U4U3U2U1U0U7U6U5U4U3U2U1U0U7U6U5U4U3U2U1U0
Buffer1: Pixel N + 6 and 7Pixel N + 4 and 5Pixel N + 2 and 3Pixel N + 0 and 1
V7V6V5V4V3V2V1V0V7V6V5V4V3V2V1V0V7V6V5V4V3V2V1V0V7V6V5V4V3V2V1V0
Buffer2: Pixel N + 6 and 7Pixel N + 4 and 5Pixel N + 2 and 3Pixel N + 0 and 1
10YUV422-1 buffer (UYVY)Y7Y6Y5Y4Y3Y2Y1Y0V7V6V5V4V3V2V1V0Y7Y6Y5Y4Y3Y2Y1Y0U7U6U5U4U3U2U1U0
Pixel N + 1Pixel N + 0

1. Format identifies the value set in bitfield FORMAT[3:0] of DCMIPP_PxPPCR registers (x = 1 to 2).

42.10.3 Dump pipe formats

The dump pipe, thanks to its capability to dump, supports more formats than the pixel pipe, namely:

ST logo
ST logo

Table 407 details the support for these additional pixel formats. Other formats are assumed to be pixels with the same width. The other pixel formats used by the dump pipe are similar to the pixel formats used by the pixel pipe.

Table 407. Dump pipe OUTPUT pixel formats(1)

Bits313029282726252423222120191817161514131211109876543210
CSI-2 headerPacket data (FrameNumber or ByteCount)DataType-IDVC-IDFrameType
Header 32 bits
CSI-2 data313029282726252423222120191817161514131211109876543210
Data 32 bits
CSI-2 raw Bayer 6 bpp (words 0 to 2)10543210543210543210543210543210
PN + 5PN + 4PN + 3PN + 2PN + 1PN + 0
32105432105432105432105432105432
PN + 11PN + 10PN + 9PN + 8PN + 7PN + 6
54321054321054321054321054321054
PN + 16PN + 15PN + 14PN + 13PN + 12PN + 11
CSI-2 raw Bayer 7 bpp (words 0 to 7)32106543210654321065432106543210
PN + 4PN + 3PN + 2PN + 1PN + 0
316543210654321065432106543210654
PN + 9PN + 8PN + 7PN + 6PN + 5PN + 4
43210654321065432106543210654321
PN + 13PN + 12PN + 11PN + 10PN + 9
10654321065432106543210654321065
PN + 18PN + 17PN + 16PN + 15PN + 14PN + 13
54321065432106543210654321065432
PN + 22PN + 21PN + 20PN + 19PN + 18
21065432106543210654321065432100
PN + 27PN + 26PN + 25PN + 24PN + 23
65432106543210654321065432106543
PN + 31PN + 30PN + 29PN + 28PN + 27
Byte/mono/raw 8 bpp76543210765432107654321076543210
PN + 3PN + 2PN + 1PN + 0
Table 407. Dump pipe OUTPUT pixel formats(1) (continued)
Bits313029282726252423222120191817161514131211109876543210
PAD = 0
Mono/raw
10 bpp
0987654321009876543210
PN + 1PN + 0
PAD = 0
Mono/raw
12 bpp
011109876543210011109876543210
PN + 1PN + 0
PAD = 0
Mono/raw
14 bpp
01312111098765432100
PN + 1PN + 0
PAD = 1
Mono/raw
10 bpp
98765432100000009876543210000000
PN + 1PN + 0
PAD = 1
Mono/raw
12 bpp
111098765432100000111098765432100000
PN + 1PN + 0
PAD = 1
Mono/raw
14 bpp
1312111098765432100013121110987654321000
PN + 1PN + 0
RGB
16 bpp
15141312111098765432101514131211109876543210
PN + 1PN + 0
RGB
24 bpp
(words
0 to 2)
R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0
7654321023222120191817161514131211109876543210
PN + 1PN + 0
B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0
1514131211109876543210232221201918171615141312111098
PN + 2PN + 1
G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0
232221201918171615141312111098765432102322212019181716
YUV422-1
(1 word)
PN + 3PN + 2
R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0
YUV422-1
(1 word)
313029282726252423222120191817161514131211109876543210
PN + 1PN + 0
YUV422-1
(1 word)
Y'7Y'6Y'5Y'4Y'3Y'2Y'1Y'0V7V6V5V4V3V2V1V0Y7Y6Y5Y4Y3Y2Y1Y0U7U6U5U4U3U2U1U0
PN + 1PN + 0

1. PN indicates Pixel N.

42.10.4 AXI IP-Plug

The AXI IP-Plug dumps the data of the pipes (via the AXI) to the memory. It is unique, shared by all the pipes.

Features

Common software configuration

The AXI IP-Plug has a common configuration in the DCMIPP_IPGR1/2/3/8 registers.

The common registers are writable only when the IP-Plug is in Idle mode (see PSTART below to lock it, or below for an example).

Per-client software configuration

The AXI IP-Plug has a per-client configuration in the registers DCMIPP_IPCxR1/2/3.

The client registers are writable only when the IP-Plug is in Idle mode (see PSTART in common registers above to lock it, or below for an example).

The clients (1..n) are numbered following the sequence Pipe0..m. Inside each pipe, there are several potential clients when the planar feature is needed.

For instance, the DCMIPP with its three pipes (Pipe0, Pipe1, Pipe2) and with Pipe1 allowing a full planar capability (three buffers: Y, U, V), has the IP-Plug clients, numbered as follows:

The configurable per-client features are the following:

Configuration computations

IP-Plug common configuration:

IP-Plug per-client configuration:

Each client is provided a proportion of the total FIFO size and of the total outstanding available transactions, in function of the local peak bandwidth. Indeed, the DCMIPP implements buffers to smooth the bandwidth, but they are not large enough to buffer full lines. The proportion of the peak bandwidth of each pipe is estimated as:

As an example, an xRGB 720p display output, a VGA 422 video output (for software), and no statistics, results in:

Video is assigned to Pipe1 (= Client2) and display to Pipe2 (Client5):

Configuration example 1: Single RGB dump

It is the simplest but most usual configuration, with the DCMIPP dumping to a single xRGB buffer. It has thus a single pipe active, the dump is coplanar (no side U or V planes), and to emphasize, it does not dump separate statistics (with Pipe0), nor does use the second pixel pipe (Pipe2).

All the AXI capabilities are focused on the single active pipe, which gets all the FIFO space and outstanding capability of the DCMIPP. With this setting, a camera dump of 200 Mpixel/s peak on 32 bpp (800 MB/s bandwidth) benefits of:

Configuration example 2: All pipes active

This is the most flexible configuration of the DCMIPP: the six clients of the IP-Plug are configured to dump the maximum bandwidth they can receive).

Note that, as the bus capabilities are shared among the clients, that configuration is less resistant to memory latencies than the above configuration with only a single RGB dump.

The capabilities of the DCMIPP are shared among the clients with the following assumptions:

The total bandwidth proportion, when all pipes are used, is 13. As some configurations (like the outstanding capability) are divided in other granularities, Pipe1-Y/RGB has some advantages, sometimes is used alone (as in the above simpler use case).

With these settings, a camera dump of 200 Mpixel/s peak on 32 bpp (800 MB/s bandwidth) benefits, for an average pipe like Pipe2, of:

It results in the following register configuration:

42.11 Shadow registers

A dump and/or pixel pipe must have the capability to be reconfigured without stopping it. Some registers can be written in the middle of a frame without impacting the actual frame acquisition. The values are stored into some shadow registers before being written in their corresponding physical registers, based on a trigger event like described in Table 408.

Each physical register in the register map has its address increased by 0x200 respect to its own shadow register address.

Table 408. Shadow and physical registers

Shadow registerPhysical registerTrigger event
DCMIPP_P0FSCR(1)DCMIPP_P0CFSCRVsync boundaries
DCMIPP_P0FCTCRDCMIPP_P0CFCTCRVsync boundaries
DCMIPP_P0SCSTRDCMIPP_P0CSCSTRVsync boundaries
DCMIPP_P0SCSZRDCMIPP_P0CSCSZRVsync boundaries
DCMIPP_P0PPCRDCMIPP_P0CPPCRVsync boundaries
DCMIPP_P0PPM0AR1DCMIPP_P0CPPxM0AR1Vsync boundaries
DCMIPP_P1FSCR(1)DCMIPP_P1CFSCRVsync boundaries
DCMIPP_P1FCTCRDCMIPP_P1CFCTCRVsync boundaries
DCMIPP_P1BPRCRDCMIPP_P1CBPRCRVsync boundaries
DCMIPP_P1BLCCRDCMIPP_P1CBLCCRVsync boundaries
DCMIPP_P1EXCR1DCMIPP_P1CEXCR1Vsync boundaries
DCMIPP_P1EXCR2DCMIPP_P1CEXCR2Vsync boundaries
DCMIPP_P1STxCR (x = 1 to 3)DCMIPP_P1CSTxCR (x = 1 to 3)Vsync boundaries
DCMIPP_P1STSTRDCMIPP_P1CSTSTRVsync boundaries
DCMIPP_P1STSZRDCMIPP_P1CSTSZRVsync boundaries
DCMIPP_P1HSCRDCMIPP_P1CHSCRVsync boundaries

Table 408. Shadow and physical registers (continued)

Shadow registerPhysical registerTrigger event
DCMIPP_P1HSSTRDCMIPP_P1CHSSTRVsync boundaries
DCMIPP_P1HSSZRDCMIPP_P1CHSSZRVsync boundaries
DCMIPP_P1CHSMAR1DCMIPP_P1CCHSMAR1Vsync boundaries
DCMIPP_P1CTCRx (x = 1 to 3)DCMIPP_P1CCTCRx (x = 1 to 3)Vsync boundaries
DCMIPP_P1CC1CRDCMIPP_P1CCC1CRVsync boundaries
DCMIPP_P1CC1RRx (x = 1 to 2)DCMIPP_P1CCC1RRx (x = 1 to 2)Vsync boundaries
DCMIPP_P1CC1GRx (x = 1 to 2)DCMIPP_P1CCC1GRx (x = 1 to 2)Vsync boundaries
DCMIPP_P1CC1BRx (x = 1 to 2)DCMIPP_P1CCC1BRx (x = 1 to 2)Vsync boundaries
DCMIPP_P1CRSTRDCMIPP_P1CCRSTRVsync boundaries
DCMIPP_P1CRSZRDCMIPP_P1CCRSZRVsync boundaries
DCMIPP_P1DCCRDCMIPP_P1CDCCRVsync boundaries
DCMIPP_P1DSCRDCMIPP_P1CDSCRVsync boundaries
DCMIPP_P1DSRTIORDCMIPP_P1CDSRTIORVsync boundaries
DCMIPP_P1DSSZRDCMIPP_P1CDSSZRVsync boundaries
DCMIPP_P1PPCRDCMIPP_P1CPPCRVsync boundaries
DCMIPP_P1PPM0AR1DCMIPP_P1CPPM0AR1Vsync boundaries
DCMIPP_P1PPM0PRDCMIPP_P1CPPM0PRVsync boundaries
DCMIPP_P1PPM1AR1DCMIPP_P1CPPM1AR1Vsync boundaries
DCMIPP_P1PPM1PRDCMIPP_P1CPPM1PRVsync boundaries
DCMIPP_P1PPM2AR1DCMIPP_P1CPPM2AR1Vsync boundaries
DCMIPP_P2FSCR(1)DCMIPP_P2CFSCRVsync boundaries
DCMIPP_P2FCTCRDCMIPP_P2CFCTCRVsync boundaries
DCMIPP_P2CRSTRDCMIPP_P2CCRSTRVsync boundaries
DCMIPP_P2CRSZRDCMIPP_P2CCRSZRVsync boundaries
DCMIPP_P2DSCRDCMIPP_P2CDSCRVsync boundaries
DCMIPP_P2DCCRDCMIPP_P2CDCCRVsync boundaries
DCMIPP_P2DSRTIORDCMIPP_P2CDSRTIORVsync boundaries
DCMIPP_P2DSSZRDCMIPP_P2CDSSZRVsync boundaries
DCMIPP_P2PPCRDCMIPP_P2CPPCRVsync boundaries
DCMIPP_P2PPM0AR1DCMIPP_P2CPPM0AR1Vsync boundaries
DCMIPP_P2PPM0PRDCMIPP_P2CPPM0PRVsync boundaries

1. Bit PIPEN of this register is not shadowed.

It is mandatory to refresh the shadow registers within a frame to prepare the context to be ready for the next start of frame, to avoid any unpredictable behavior during the acquisition.

The software must then react to the following interrupt sources to launch the shadow registers accesses:

In any case, the software must ensure that the shadow registers are updated before the end of the current frame, to be active from the next frame. Updates started and not completed before the end of current frame result in inconsistent frame acquisition for the next frame (mixing old and new configurations).

It is recommended to change non-shadowed registers when the corresponding pipe is disabled and in an idle state (refer to Section 42.4.9: Pipe deactivation).

42.12 DCMIPP low power modes

This section describes the behavior of the DCMIPP versus the modes listed in Table 409.

Table 409. DCMIPP low power modes

ModeDescription
StopPeripheral content is kept.
It is recommended to follow the pipe(s) disabling procedure before entering it.
StandbyPowered-down.
The peripherals must be reinitialized after exiting this mode.
SleepNo effect.
DCMIPP is still working in this mode, peripheral interrupts cause the device to exit it.

42.13 DCMIPP interrupts

This section describes the DCMIPP interrupts, and more globally, the features that are related to real-time, namely:

42.13.1 Free-running DCMIPP

After a camera flow has been configured and established, it is able to run permanently, without any software involvement. The following features are available:

42.13.2 Interrupts

The DCMIPP handles five interrupts pins, the fifth being the OR of the first four.

A register set is associated to each interrupt to provide the following functionality:

The interrupt pins are active when high: they go high when triggered by an unmasked event, and remain high until all the masked events of that interrupt are cleared.

The interrupts lines and registers are:

  1. 1. Parallel interface, with the next interrupt events handled:
    • – ERR: bad embedded synchronization detected.
      • > Unexpected behavior in the parallel interface, usually not triggered if no issues.
      • > It is due to an unexpected sensor behavior, or to a transmission error.
  2. 2. Pipe0 (dump), with the next interrupt events handled:
    • – OVR: data overflow: the memory was too slow vs. received pixels.
      • > Unexpected behavior in Pipe0, usually not triggered if no issues.
      • > Same recommendation as for above OVR: skip the impacted frame.
    • – LIMIT: received volume is larger than the maximum allowed dump volume.
      • > Unexpected behavior in Pipe0, usually not triggered if no issues.
      • > The transmitted flow is too long. More space must be allocated in memory to store the transmission of a next frame.
    • – VSYNC: main interrupt, where most software can sit.
      • > Trigger: at VSync (mid blanking), permanent (even if no dump active).
      • > Typically to reconfigure slowly the pipes (at least shadow registers) for next frame
      • > Typically to trigger usage of the previously captured frame.
    • – FRAME: secondary interrupt, as backup for fast-software
      • > Trigger: after last data dump of this pipe, inactive if no capture has occurred.
      • > Typically to quickly reconfigure non-shadow registers (during only vertical blanking)
      • > Typically to trigger usage of the previously captured frame.
    • – LINE: interruption for stripe-based operators trigger: after every 1/2/4/8/16/32/64/128 dumped lines and last line. It is measured and extracted at end of pipe, close to output to memory.
      • > Typically to trigger fast/reactive software or hardware stripe-based operators.

Note: The LINE flag (LINEF bit) is set at the end of frame, to trigger out software event when the frame height is not a multiple of the selected number of lines for which the LINEF event is triggered. The last part of the frame can, in such case, have a lower number of lines than the selection. The event/interrupt is generated even if the number of lines is incomplete. The software must consider that this last event has a lower than expected number of lines when reaching the end of frame (FRAME event).

  1. 3. Pipe1 (main pipe)
    • – Same events handled as Pipe0: OVR, VSYNC, FRAME, LINE, but no LIMIT as only pixels are captured after a potential crop.
    • – STFRAME: Histogram statistics frame interrupt
      • > Trigger: Histogram statistics captured and successfully written to system memory.
    • – STOVR: Histogram statistics overrun interrupt
      • > Trigger: The memory was too slow to receive and store the entirety of the histogram data. Statistics capture is aborted.
    • – STBC: Histogram statistics bad configuration interrupt

There is also a common interrupt that can be generated if enabled, when a transfer error is detected during an AXI transfer from the IP-Plug to memories. Error flag ATXERR in the DCMIPP_CMSR2 register is set and an interrupt can be generated to inform the software about this error status. There is no specific hardware action linked to this error, it is up to software to handle the transfer error situation.

On multiple-pipe architecture, the error informs that at least one AXI client has a transfer error, but does not identify from which client.

The DCMIPP interrupts are summarized in Table 410. An event that generates an interrupt does it at two locations:

Table 410 provides the local (register and bit) and global (bit only, as all bits are in the same DCMIPP_CMSR2 register) locations.

Table 410. DCMIPP interrupts

Interrupt eventLocal registerLocal bitCommon bit in DCMIPP_CMSR2Event flag/interrupt clearing methodInterrupt enable control bit local/common register
Synchronization error in parallel interfaceDCMIPP_PRSRERRFPRERRFWrite CERRF = 1 / CPRERRF = 1ERRIE/PRRRFIE
AXI transfer error--ATXERRWrite CATXERRF = 1ATXERRIE
Overflow in Pipe0DCMIPP_P0SROVRFP0OVRFWrite COVRF = 1 / CP0OVRF = 1OVRIE/P0OVRIE
Limit violation in Pipe0LIMITFP0LIMITFWrite CLIMITF = 1 / CP0LIMITF = 1LIMITIE/P0LIMITIE
Frame start (VSYNC) in Pipe0VSYNCP0VSYNCWrite CVSYNCF = 1 / CP0VCSYNCF = 1VSYNCIE/P0VSYNCIE
Frame end (FRAME) in Pipe0FRAMEFP0FRAMEFWrite CFRAMEF = 1 / CP0FRAMEF = 1FRAMEIE/P0FRAMIE
Multi-line (LINE) in Pipe0LINEFP0LINEFWrite CLINEF = 1 / CP0LINEF = 1LINEFIE/P0LINEFIE
Table 410. DCMIPP interrupts (continued)
Interrupt eventLocal registerLocal bitCommon bit in DCMIPP_CMSR2Event flag/interrupt clearing methodInterrupt enable control bit local/common register
Overflow in Pipe1DCMIPP_P1SROVRFP1OVRFWrite COVRF = 1 / CP1OVRF = 1OVRIE/P1OVRIE
Frame start (VSYNC) in Pipe1VSYNCP1VSYNCWrite CLIMITF = 1 / CP1LIMITF = 1LIMITIE/P1LIMITIE
Frame end (FRAME) in Pipe1FRAMEFP1FRAMEFWrite CVSYNCF = 1 / CP1VCSYNCF = 1VSYNCIE/P1VSYNCIE
Multi-line (LINE) in Pipe1LINEFP1LINEFWrite CFRAMEF = 1 / CP1FRAMEF = 1FRAMEIE/P1FRAMIE
Overflow in Pipe2DCMIPP_P2SROVRFP2OVRFWrite COVRF = 1 / CP2OVRF = 1OVRIE/P2OVRIE
Frame start (VSYNC) in Pipe2VSYNCP2VSYNCWrite CLIMITF = 1 / CP2LIMITF = 1LIMITIE/P2LIMITIE
Frame end (FRAME) in Pipe2FRAMEFP2FRAMEFWrite CVSYNCF = 1 / CP2VCSYNCF = 1VSYNCIE/P2VSYNCIE
Multi-line (LINE) in Pipe2LINEFP2LINEFWrite CFRAMEF = 1 / CP2FRAMEF = 1FRAMEIE/P2FRAMIE
Histogram statistics completeDCMIPP_P1SRSTFRAMEFSTFRAMEFWrite CSTFRAMEF = 1STFRAMEIE
Histogram statistics overrunSTOVRFSTOVRFWrite CSTOVRF = 1STOVRIE
Histogram statistics bad configurationSTBCFSTBCFWrite CSTBCF = 1STBCIE

42.13.3 Event pins

Event pins are exposed to let an ancillary HW IP, like a central DMA, to synchronize with them. The event pins are the unmasked synchronization events (VSYNC, FRAME, LINE, HSYNC) of the pipes.

An internal events generates a pulse (15 APB cycles long) on its pin.

Table 411. Event connection
PipeEvent nameInternal signal
Pipe0HSYNCdcmipp_p0_hsync_evt
VSYNCdcmipp_p0_vsync_evt
Framedcmipp_p0_frameend_evt
Linedcmipp_p0_lineend_evt
Table 411. Event connection (continued)
PipeEvent nameInternal signal
Pipe1HSYNCdcmipp_p1_hsync_evt
VSYNCdcmipp_p1_vsync_evt
Framedcmipp_p1_frameend_evt
Linedcmipp_p1_lineend_evt
Pipe2HSYNCdcmipp_p2_hsync_evt
VSYNCdcmipp_p2_vsync_evt
Framedcmipp_p2_frameend_evt
Linedcmipp_p2_lineend_evt

42.14 DCMIPP registers

The registers are split into groups with a same prefix, as shown in Table 412.

Table 412. DCMIPP registers organization

Register nameOffsetFunction
DCMIPP_IP0x000IP-Plug registers
DCMIPP_PR0x100Parallel interface
DCMIPP_CM0x200Common registers
DCMIPP_P00x500Pipe0 (dump pipe) with shadow registers
0x700Pipe0 (dump pipe) with physical registers
DCMIPP_P10x800Pipe1 image processing with shadow registers
0x900Pipe1 post-processing with shadow registers
0xA00Pipe1 image processing with physical registers
0xB00Pipe1 post-processing with physical registers
DCMIPP_P20xC00Pipe2 image processing with shadow registers
0xD00Pipe2 post-processing with shadow registers
0xE00Pipe2 image processing with physical registers
0xF00Pipe2 post-processing with physical registers
DCMIPP_0xFF0IP version and configuration (without prefix)

42.14.1 DCMIPP IP-Plug global register 1 (DCMIPP_IPGR1)

Address offset: 0x000

Reset value: 0x0000 0002

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.QOS_MODERes.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MEMORYPAGE[2:0]
rwrwrw

Bits 31:25 Reserved, must be kept at reset value.

Bit 24 QOS_MODE: Quality of service

Set of functions enabling to build and configure an architecture meeting bandwidth and latency requirements.

Bits 23:3 Reserved, must be kept at reset value.

Bits 2:0 MEMORYPAGE[2:0]: Memory page size, as power of 2 of 64-byte units:

42.14.2 DCMIPP IP-Plug global register 2 (DCMIPP_IPGR2)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSTART
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 PSTART: Request to lock the IP-Plug, to allow reconfiguration.

0: No lock requested, IP-Plug runs on demand by background HW.

1: Lock requested: IP-Plug freezes shortly (see IDLE bit when lock is active).

PSTART must be reset to 0 after configuration is completed, to restart the IP-Plug.

42.14.3 DCMIPP IP-Plug global register 3 (DCMIPP_IPGR3)

Address offset: 0x008

Reset value: 0x0000 0001

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IDLE
r

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 IDLE: Status of IP-Plug

0: IP-Plug is running (on demand by background HW)

1: IP-Plug is currently locked and can be reconfigured

IDLE is set after a request by setting PSTART at 1, and reset by resetting PSTART at 0.

42.14.4 DCMIPP IP-Plug identification register (DCMIPP_IPGR8)

Address offset: 0x01C

Reset value: 0xAA04 0314

31302928272625242322212019181716
IPPID[7:0]Res.Res.Res.ARCHIID[4:0]
rrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.REVID[4:0]Res.Res.DID[5:0]
rrrrrrrrrrr

Bits 31:24 IPPID[7:0]: IP identifier (0xAA)

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:16 ARCHIID[4:0]: Architecture identifier (0x04)

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:8 REVID[4:0]: Revision identifier (0x03)

Bits 7:6 Reserved, must be kept at reset value.

Bits 5:0 DID[5:0]: Division identifier (0x14)

42.14.5 DCMIPP IP-Plug Clientx register 1 (DCMIPP_IPCxR1)

Address offset: 0x020 + 0x10 * (x - 1), (x = 1 to 6)

Reset value: 0x0000 0004

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.OTR[3:0]Res.Res.Res.Res.Res.TRAFFIC[2:0]
rwrwrwrwrwrwrw

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:8 OTR[3:0]: Maximum outstanding transactions

0: Disabled. No outstanding transaction limitation (except via FIFO size)

1: Maximum two outstanding transactions ongoing.

...

15: Maximum 16 outstanding transactions ongoing.

Bits 7:3 Reserved, must be kept at reset value.

Bits 2:0 TRAFFIC[2:0]: Burst size as power of 2 of 8-byte units

0x0: 8 bytes

0x1: 16 bytes

0x2: 32 bytes

0x3: 64 bytes

0x4: 128 bytes

Other values: Reserved

42.14.6 DCMIPP IP-Plug Clientx register 2 (DCMIPP_IPCxR2)

Address offset: 0x024 + 0x10 * (x - 1), (x = 1 to 6)

Reset value: 0x0001 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WLRU[3:0]
rwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:20 Reserved, must be kept at reset value.

Bits 19:16 WLRU[3:0]: Ratio for WLRU[3:0] arbitration

A client gets a portion of the total bandwidth = Ratio(client) / Sum(all ratios)

0x0: Ratio part = 1

0x1: Ratio part = 2

...

0xF: Ratio part = 16

Bits 15:0 Reserved, must be kept at reset value.

42.14.7 DCMIPP IP-Plug Clientx register 3 (DCMIPP_IPCxR3)

Address offset: 0x028 + 0x10 * (x - 1), (x = 1 to 6)

Reset value: 0x017F 0000, 0x02FF 0180, 0x03BF 0300, 0x041F 03C0, 0x059F 0420, 0x05EF 05A0

31302928272625242322212019181716
Res.Res.Res.Res.Res.DPREGEND[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.DPREGSTART[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 DPREGEND[10:0]: End word (AXI width = 64 bits) of the FIFO of Clientx.

The addressed word is included in the FIFO, so that next DPREGSTART is DPREGEND + 1.

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 DPREGSTART[10:0]: Start word (AXI width = 64 bits) of the FIFO of Clientx.

42.14.8 DCMIPP parallel interface control register (DCMIPP_PRCR)

Address offset: 0x104

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.SWAP
BITS
SWAP
CYCLES
Res.FORMAT[7:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.ENABLERes.EDM[2:0]Res.Res.VSPOLHSPOLPCKPOLESSRes.Res.Res.Res.
rwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bit 26 SWAPBITS: Swap LSB vs. MSB within each received component

Bit 25 SWAPCYCLES: Swap data (cycle 0 vs. cycle 1) for pixels received on two cycles

Bit 24 Reserved, must be kept at reset value.

Bits 23:16 FORMAT[7:0]:

Bit 15 Reserved, must be kept at reset value.

Bit 14 ENABLE: Parallel interface enable

ST logo
ST logo

Bit 13 Reserved, must be kept at reset value.

Bits 12:10 EDM[2:0]: Extended data mode

Bits 9:8 Reserved, must be kept at reset value.

Bit 7 VSPOL: Vertical synchronization polarity

This bit indicates the level on the VSYNC pin when the data are not valid on the parallel interface.

Bit 6 HSPOL: Horizontal synchronization polarity

This bit indicates the level on the HSYNC pin when the data are not valid on the parallel interface.

Bit 5 PCKPOL: Pixel clock polarity

This bit configures the capture edge of the pixel clock

Bit 4 ESS: Embedded synchronization select

0: Hardware synchronization data capture (frame/line start/stop) is synchronized with the HSYNC/VSYNC signals.

1: Embedded synchronization data capture is synchronized with synchronization codes embedded in the data flow.

Valid only for 8-bit parallel data. HSPOL/VSPOL are ignored when this bit is set.

Bits 3:0 Reserved, must be kept at reset value.

42.14.9 DCMIPP parallel interface embedded synchronization code register (DCMIPP_PRESCR)

Address offset: 0x108

Reset value: 0x0000 0000

31302928272625242322212019181716
FEC[7:0]LEC[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
LSC[7:0]FSC[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 FEC[7:0]: Frame end delimiter code

This byte specifies the code of the frame end delimiter. The code consists of four bytes in the form of 0xFF, 0x00, 0x00, FEC.

If FEC is programmed to 0xFF, all the unused codes (0xFF00 00XY) are interpreted as frame end delimiters.

Bits 23:16 LEC[7:0]: Line end delimiter code

This byte specifies the code of the line end delimiter. The code consists of four bytes in the form of 0xFF, 0x00, 0x00, LEC.

Bits 15:8 LSC[7:0]: Line start delimiter code

This byte specifies the code of the line start delimiter. The code consists of four bytes in the form of 0xFF, 0x00, 0x00, LSC.

Bits 7:0 FSC[7:0]: Frame start delimiter code

This byte specifies the code of the frame start delimiter. The code consists of four bytes in the form of 0xFF, 0x00, 0x00, FSC.

If FSC is programmed to 0xFF, no frame start delimiter is detected, but the first occurrence of LSC after an FEC code is interpreted as the start of frame delimiter.

42.14.10 DCMIPP parallel interface embedded synchronization unmask register (DCMIPP PRESUR)

Address offset: 0x10C

Reset value: 0x0000 0000

31302928272625242322212019181716
FEU[7:0]LEU[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
LSU[7:0]FSU[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 FEU[7:0]: Frame end delimiter unmask

This byte specifies the mask to be applied to the code of the frame end delimiter.

0: The corresponding bit in the FEC byte in DCMIPP_ESCR is masked while comparing the frame end delimiter with the received data.

1: The corresponding bit in the FEC byte in DCMIPP_ESCR is compared while comparing the frame end delimiter with the received data

Bits 23:16 LEU[7:0]: Line end delimiter unmask

This byte specifies the mask to be applied to the code of the line end delimiter.

0: The corresponding bit in the LEC byte in DCMIPP_ESCR is masked while comparing the line end delimiter with the received data

1: The corresponding bit in the LEC byte in DCMIPP_ESCR is compared while comparing the line end delimiter with the received data

Bits 15:8 LSU[7:0]: Line start delimiter unmask

This byte specifies the mask to be applied to the code of the line start delimiter.

0: The corresponding bit in the LSC byte in DCMIPP_ESCR is masked while comparing the line start delimiter with the received data

1: The corresponding bit in the LSC byte in DCMIPP_ESCR is compared while comparing the line start delimiter with the received data

Bits 7:0 FSU[7:0]: Frame start delimiter unmask

This byte specifies the mask to be applied to the code of the frame start delimiter.

0: The corresponding bit in the FSC byte in DCMIPP_ESCR is masked while comparing the frame start delimiter with the received data

1: The corresponding bit in the FSC byte in DCMIPP_ESCR is compared while comparing the frame start delimiter with the received data

42.14.11 DCMIPP parallel interface interrupt enable register (DCMIPP_PRIER)

Address offset: 0x1F4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.ERRIERes.Res.Res.Res.Res.Res.
rw

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 ERRIE: Synchronization error interrupt enable

0: No interrupt generation

1: An interrupt is generated if the embedded synchronization codes are not received in the correct order.

This bit is available only in embedded synchronization mode.

Bits 5:0 Reserved, must be kept at reset value.

42.14.12 DCMIPP parallel interface status register (DCMIPP_PRSR)

Address offset: 0x1F8

Reset value: 0x0003 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VSYNCHSYNC
rr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.ERRFRes.Res.Res.Res.Res.Res.
r

Bits 31:18 Reserved, must be kept at reset value.

Bit 17 VSYNC:

This bit gives the state of the VSYNC pin with the correct programmed polarity if ENABLE bit is set into the DCMIPP_PRCR register and if the pixel clock is received. It is set during the blanking period whatever the polarity selected in VPOL bit, and cleared otherwise.

When embedded synchronization codes are used:

0: Active frame

1: Synchronization between frames

In case of embedded synchronization, this bit is meaningful only if the CAPTURE bit in DCMIPP_CR is set.

Bit 16 HSYNC:

This bit gives the state of the HSYNC pin with the correct programmed polarity if ENABLE bit is set into the DCMIPP_PRCR register and if the pixel clock is received. It is set during the blanking period whatever the polarity selected in HPOL bit, and cleared otherwise.

When embedded synchronization codes are used:

0: Active line

1: Synchronization between lines

In case of embedded synchronization, this bit is meaningful only if the CAPTURE bit in DCMIPP_CR is set.

Bits 15:7 Reserved, must be kept at reset value.

Bit 6 ERRF: Synchronization error raw interrupt status

0: No synchronization error detected

1: Embedded synchronization characters are not received in the correct order.

This bit is valid only in the embedded synchronization mode. It is cleared by writing 1 to the CERRF bit in DCMIPP_PRFCR.

This bit is available only in embedded synchronization mode.

Bits 5:0 Reserved, must be kept at reset value.

42.14.13 DCMIPP parallel interface interrupt clear register (DCMIPP_PRFCR)

Address offset: 0x1FC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.CERRFRes.Res.Res.Res.Res.Res.
w

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 CERRF: Synchronization error interrupt status clear

Writing a 1 into this bit clears the ERRF bit in DCMIPP_PRSR.

This bit is available only in embedded synchronization mode.

Bits 5:0 Reserved, must be kept at reset value.

42.14.14 DCMIPP common IP HW configuration register (DCMIPP_CMHWCFGR)

Address offset: 0x200

Reset value: 0x0000 007C

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.TPGCCSICPARCPIPES[1:0]Res.Res.
rrrrr

Bits 31:7 Reserved, must be kept at reset value.

Bit 6 TPG: Presence of the test pattern generator

Bit 5 CCSI: Presence of the CSI-2 host interface

Bit 4 CPAR: Presence of the parallel interface

Bits 3:2 CPIPES[1:0]: Amount of instantiated pipes (either dump or pixel pipes)

Bits 1:0 Reserved, must be kept at reset value.

42.14.15 DCMIPP common configuration register (DCMIPP_CMCR)

Address offset: 0x204

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.SWAP
RB
Res.Res.CFCRes.PSFC[1:0]INSEL
rwwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 SWAPRB: Swap R/U and B/V

Bits 6:5 Reserved, must be kept at reset value.

Bit 4 CFC: Clear frame counter

When this bit is set, the frame counter associated to a pipe is cleared. It resets DCMIPP_CMFRCR register. This bit is always read at 0.

Bit 3 Reserved, must be kept at reset value.

Bits 2:1 PSFC[1:0]: Pipe selection for the frame counter

These bits (set and cleared by software) select on which pipe the frame counter is mapped.

00: Frame counter mapped to Pipe0

01: Frame counter mapped to Pipe1

10: Frame counter mapped to Pipe2

Other values: Reserved

Bit 0 INSEL: input selection

0: DCMI

1: CSI-2

This selection is common for all the pipes, meaning that the input source (DCMI or CSI) is exclusive. This bit must not be changed if one or more pipes are enabled or still in processing state after a disabling operation (corresponding CPTACT bit set into the DCMIPP_CMSR1 register).

42.14.16 DCMIPP common frame counter register (DCMIPP_CMFRCR)

Address offset: 0x208

Reset value: 0x0000 0000

31302928272625242322212019181716
FRMCNT[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
FRMCNT[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 FRMCNT[31:0]: Frame counter, read-only, loops around.

Incremented following VSYNC detection mapped to the pipe configured into bits PSFC[1:0] of the DCMIPP_CMCR register. The counter is cleared using clear frame counter (CFC) bit of DCMIPP_CMCR register.

42.14.17 DCMIPP common test pattern generator configuration register 1 (DCMIPP_CMTPGCR1)

Address offset: 0x210

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.HEIGHT[13:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.WIDTH[13:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 Reserved, must be kept at reset value.

Bits 29:16 HEIGHT[13:0]: Height of the visible pixels of the generated frame

Maximum value is 16383, the minimum must comply with the limitations of the DCMIPP.

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:0 WIDTH[13:0]: Width of the visible pixels of the generated frame

Maximum value is 16383, the minimum is 16.

42.14.18 DCMIPP common test pattern generator configuration register 2 (DCMIPP_CMTPGCR2)

Address offset: 0x214

Reset value: 0x0000 0000

31302928272625242322212019181716
VBL[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
FORMAT[7:0]RT[1:0]YT[1:0]PATTERNGSENLFLENTPGEN
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 VBL[15:0]: Amount of lines of the vertical blanking

Minimum value is 16.

Bits 15:8 FORMAT[7:0]: Pixel format generated:

0x1E: YUV422 (when selected, the YT field defines the YUV subformats)

0x22: RGB565

0x24: RGB888

0x2A: RAW8 (when selected, or RAW10/12/14, RT[1:0] gives the component sequence)

0x2B: RAW10

0x2C: RAW12

0x2D: RAW14

0x4A: monochrome 8-bit

0x4B: monochrome 10-bit

0x4C: monochrome 12-bit

0x4D: monochrome 14-bit

Other values: reserved

Bits 7:6 RT[1:0]: Raw Bayer type

Indicates the sequence of the R, G, G, B components. Taken in account when FORMAT is 0x2B, 0x2C, 0x2D:

0x0: RGGB

0x1: GRBG

0x2: GBRG

0x3: BGGR

42.14.19 DCMIPP common interrupt enable register (DCMIPP_CMIER)

Address offset: 0x3F0

Reset value: 0x0000 0000

31302928272625242322212019181716
P2 OVR IERes.Res.Res.Res.P2 VSYNC IEP2 FRAME IEP2 LINE IEP1 OVR IESTOVR IESTBC IEST FRAME IERes.P1 VSYNC IEP1 FRAME IEP1 LINE IE
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
P0 OVR IEP0 LIMIT IERes.Res.Res.P0 VSYNC IEP0 FRAME IEP0 LINE IERes.PR ERR IEATX ERR IERes.Res.Res.Res.Res.
rwrwrwrwrwrwrw

Bit 31 P2OVRIE: Overrun interrupt status enable for Pipe2
0: No interrupt generation
1: An interrupt is generated

Bits 30:28 Reserved, must be kept at reset value.

Bit 27 Reserved, must be kept at reset value.

Bit 26 P2VSYNCIE: Vertical sync interrupt enable for Pipe2
0: No interrupt generation
1: An interrupt is generated

Bit 6 PRERRIE: Limit interrupt enable for the parallel Interface

Bit 5 ATXERRIE: AXI transfer error interrupt enable for IP-Plug

Bits 4:0 Reserved, must be kept at reset value.

42.14.20 DCMIPP common status register 1 (DCMIPP_CMSR1)

Address offset: 0x3F4

Reset value: 0x0000 0003

31302928272625242322212019181716
P2CPT ACTRes.Res.Res.Res.Res.P2LST FRMP2LST LINEP1CPT ACTRes.Res.Res.Res.Res.P1LST FRMP1LST LINE
rrrrrr
1514131211109876543210
P0CPT ACTRes.Res.Res.Res.Res.P0LST FRMP0LST LINERes.Res.Res.Res.Res.Res.PRV SYNCPRH SYNC
rrrrr

Bit 31 P2CPTACT: Active frame capture (active from start-of-frame to frame complete) for Pipe2

Bits 30:28 Reserved, must be kept at reset value.

Bits 27:26 Reserved, must be kept at reset value.

Bit 25 P2LSTFRM: Last frame LSB bit, sampled at frame capture complete event for Pipe2

The information is extracted from the frame data number that can be delivered by the camera through the CSI2 interface.

Bit 24 P2LSTLINE: Last line LSB bit, sampled at frame capture complete event for Pipe2

The first line of a frame is counted as 0.

Bit 23 P1CPTACT: Active frame capture (active from start-of-frame to frame complete) for Pipe1

Bits 22:20 Reserved, must be kept at reset value.

Bits 19:18 Reserved, must be kept at reset value.

Bit 17 P1LSTFRM: Last frame LSB bit, sampled at frame capture complete event for Pipe1

The information is extracted from the frame data number, which can be delivered by the camera through the CSI2 interface.

Bit 16 P1LSTLINE: Last line LSB bit, sampled at Frame capture complete event for Pipe1

Bit 15 P0CPTACT: Active frame capture (active from start-of-frame to frame complete) for Pipe0

Bits 14:12 Reserved, must be kept at reset value.

Bits 11:10 Reserved, must be kept at reset value.

Bit 9 P0LSTFRM: Last frame LSB bit, sampled at Frame capture complete event for Pipe0

The information is extracted from the frame data number that can be delivered by the camera through the CSI2 interface.

Bit 8 P0LSTLINE: Last line LSB bit, sampled at Frame capture complete event for Pipe0

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 PRVSYNC:

This bit gives the state of the VSYNC pin with the correct programmed polarity on the parallel interface if ENABLE bit is set into the DCMIPP_PRCR register and if the pixel clock is received. It is set during the blanking period whatever the polarity selected in VPOL bit of the DCMIPP_PRCR register, and cleared otherwise.

When embedded synchronization codes are used, the meaning of this bit is the following:

0: Active frame

1: Synchronization between frames

In case of embedded synchronization, this bit is meaningful only if the CAPTURE bit in the DCMIPP_PRCR register is set.

Bit 0 PRHSYNC:

This bit gives the state of the HSYNC pin with the correct programmed polarity on the parallel interface if ENABLE bit is set into the DCMIPP_PRCR register and if the pixel clock is received. It is set during the blanking period whatever the polarity selected in HPOL bit of the DCMIPP_PRCR register, and cleared otherwise.

When embedded synchronization codes are used the meaning of this bit is the following:

0: Active line

1: Synchronization between lines

In case of embedded synchronization, this bit is meaningful only if the CAPTURE bit in the DCMIPP_PRCR register is set.

42.14.21 DCMIPP common status register 2 (DCMIPP_CMSR2)

Address offset: 0x3F8

Reset value: 0x0000 0000

31302928272625242322212019181716
P2 OVRFRes.Res.Res.Res.P2 VSYNC FP2 FRAME FP2 LINEFP1 OVRFST OVRFSTBCFST FRAME FRes.P1 VSYNC FP1 FRAME FP1LINE F
rrrrrrrrrrr
1514131211109876543210
P0 OVRFP0 LIMITFRes.Res.Res.P0 VSYNC FP0 FRAME FP0 LINEFRes.PR ERRFATX ERRFRes.Res.Res.Res.Res.
rrrrrrr

Bit 31 P2OVRF: Overrun raw interrupt status for Pipe2

0: No data buffer overrun occurred

1: A data buffer overrun occurred, and this frame data are corrupted

This bit is cleared by writing 1 to the CP2OVRF bit in DCMIPP_CMFCR.

Bits 30:28 Reserved, must be kept at reset value.

Bit 27 Reserved, must be kept at reset value.

Bits 4:0 Reserved, must be kept at reset value.

42.14.22 DCMIPP common interrupt clear register (DCMIPP_CMFCR)

Address offset: 0x3FC

Reset value: 0x0000 0000

31302928272625242322212019181716
CP2
OVRF
Res.Res.Res.Res.CP2
VSYNC
F
CP2
FRAME
F
CP2
LINEF
CP1
OVRF
CST
OVRF
CST
BCF
CST
FRAME
F
Res.CP1
VSYNC
F
CP1
FRAME
F
CP1
LINE
F
wwwwwwwwwww
1514131211109876543210
CP0
OVR
F
CP0
LIMIT
F
Res.Res.Res.CP0
VSYNC
F
CP0
FRAME
F
CP0
LINE
F
Res.CPR
ERR
F
CATX
ERR
F
Res.Res.Res.Res.Res.
wwwwwww

Bit 31 CP2OVRF: Overrun interrupt status clear

Writing 1 into this bit clears the P2OVRF bit in the DCMIPP_CMSR2 register

Bits 30:28 Reserved, must be kept at reset value.

Bit 27 Reserved, must be kept at reset value.

Bit 26 CP2VSYNCF: Vertical synchronization interrupt status clear

Writing 1 into this bit clears the P2VSYNCF bit in the DCMIPP_CMSR2 register

Bit 25 CP2FRAMEF: Frame capture complete interrupt status clear

Writing 1 into this bit clears the P2FRAMEF bit in the DCMIPP_CMSR2 register

Bit 24 CP2LINEF: Multi-line capture complete interrupt status clear

Writing 1 into this bit clears P2LINEF in the DCMIPP_CMSR2 register

Bit 23 CP1OVRF: Overrun interrupt status clear

Writing 1 into this bit clears the P1OVRF bit in the DCMIPP_CMSR2 register

Bit 22 CSTOVRF: Histogram statistics overrun interrupt clear

Writing 1 into this bit clears the STOVRF bit in the DCMIPP_CMSR2 register.

Bit 21 CSTBCF: Histogram statistics bad configuration interrupt enable

Writing 1 into this bit clears the STBCF bit in the DCMIPP_CMSR2 register.

Bit 20 CSTFRAMEF: Histogram statistics frame capture completed interrupt enable

Writing 1 into this bit clears the STFRAMEF bit in the DCMIPP_CMSR2 register.

Bit 19 Reserved, must be kept at reset value.

Bit 18 CP1VSYNCF: Vertical synchronization interrupt status clear

Writing 1 into this bit clears the P1VSYNCF bit in the DCMIPP_CMSR2 register

Bit 17 CP1FRAMEF: Frame capture complete interrupt status clear

Writing 1 into this bit clears the P1FRAMEF bit in the DCMIPP_CMSR2 register

Bit 16 CP1LINEF: Multi-line capture complete interrupt status clear

Writing 1 into this bit clears P1LINEF in the DCMIPP_CMSR2 register

42.14.23 DCMIPP Pipe0 HW configuration register (DCMIPP_P0HWCFGR)

Address offset: 0x400

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.CROI[3:0]CGM[1:0]CRB[1:0]DBMCDSCPLA[1:0]
rrrrrrrrrrrr

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:8 CROI[3:0]: Capability for ROI: defines the number of ROIs in the pipe

Bits 7:6 CGM[1:0]: Capability for gamma conversions

00: No gamma conversion

01: Gamma conversion with three interpolated segments

10, 11: Reserved.

Bits 5:4 CRB[1:0]: Capability for demosaicing

00: No demosaicing

01: Demosaicing with 2018-03 algorithm (Matrix 3 x 3 with Edge/LineHV/Peak)

10, 11: Reserved

42.14.24 DCMIPP Pipe0 flow selection configuration register (DCMIPP_P0FSCR)

Address offset: 0x404

Reset value: 0x0000 0000

31302928272625242322212019181716
PIPENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.VC[1:0]Res.DTMODE[1:0]
rwrwrwrwrw
1514131211109876543210
Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 5:0 DTIDA[5:0]: Data type selection ID A
Data type ID of the CSI flow to select.

42.14.25 DCMIPP Pipe0 flow control configuration register (DCMIPP_P0FCTCR)

Address offset: 0x500

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPT
REQ
CPT
MODE
FRATE[1:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CPTREQ: Capture requested

0: Capture not requested for next frame

1: Capture requested for next frame

When PIPEN = 1 and CPTREQ = 1. the pipe waits for the first VSync, automatically starts a capture, and sets CPTACT = 1 to mention it.

In Snapshot mode the CPTREQ bit is cleared at the start of the first received frame.

In Continuous grab mode, the capture remains active and CPTREQ = 1 until the software clears CPTREQ: the capture stops and CPTACT is reset at the end of the ongoing frame.

The DCMI and pipe configuration registers must be correctly programmed before enabling this bit.

Bit 2 CPTMODE: Capture mode

0: Continuous grab mode - The received data are transferred into the destination memory through the AXI master.

1: Snapshot mode (single frame) - Once activated, the interface waits for the start of frame, and then transfers a single frame through the AXI master. At the end of the frame, the CPTACT bit is automatically reset.

Bits 1:0 FRATE[1:0]: Frame capture rate control

These bits define the frequency of frame capture. They are meaningful only in Continuous grab mode, ignored in Snapshot mode.

00: All frames are captured

01: one out of two frames captured (50% bandwidth reduction)

10: one out of four frames captured (75% bandwidth reduction)

11: one out of eight frames captured (87% bandwidth reduction)

42.14.26 DCMIPP Pipe0 statistic/crop start register (DCMIPP_P0SCSTR)

Address offset: 0x504

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Vertical start, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Horizontal start, from 0 to 4094 words wide

42.14.27 DCMIPP Pipe0 statistic/crop size register (DCMIPP_P0SCSZR)

Address offset: 0x508

Reset value: 0x0000 0000

31302928272625242322212019181716
ENABLEPOSNEGRes.Res.VSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 ENABLE:

This bit is set and cleared by software.

0: Bypass. All the data are computed, if the statistic data are sent within the frame, they are sent to the processing pipe as pixels data.

1: Enable. Depending on bit POSNEG value, the rectangle defined by VSIZE, HSIZE, VSTART and HSTART can be used to extract or to remove some data (statistical extraction or removal, or basic 2D crop features).

if POSNEG = 0, the data inside the rectangle area are transmitted (it can correspond to a statistical data removal, or as a crop feature in a data valid image area).

if POSNEG = 1, the data outside of the rectangle area are transmitted (it can correspond to a statistical data extraction, rejecting all data inside the window).

This bit must be kept cleared if the input format is JPEG, to avoid unpredictable behavior of the pipe.

Bit 30 POSNEG:

This bit is set and cleared by software. It has a meaning only if ENABLE bit is set.

0: Positive area, the rectangle defined by VSIZE, HSIZE, and VSTART, HSTART

1: Negative area, the area excluding the rectangle defined by VSIZE, HSIZE, and VSTART, HSTART

Bits 29:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Vertical size, from 0 to 4094 pixels high

If the value is maintained at 0 when enabling the crop by means of ENABLE bit, the crop operation is not performed on vertical direction.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Horizontal size, from 0 to 4094 word wide (data 32-bit)

If the value is maintained at 0 when enabling the crop by means of ENABLE bit, the crop operation is not performed on horizontal direction.

42.14.28 DCMIPP Pipe0 dump counter register (DCMIPP_P0DCCNTR)

Address offset: 0x5B0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.CNT[25:16]
rrrrrrrrrr
1514131211109876543210
CNT[15:0]
rrrrrrrrrrrrrrrr

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:0 CNT[25:0]: Number of data dumped during the frame.

The size of the data is expressed in bytes. It counts only the data selected by means of the CROP 2D function. The counter saturates at 0x3FFFFFF. Granularity is 32-bit for all the formats except for the byte stream formats (for example JPEG) having byte granularity.

42.14.29 DCMIPP Pipe0 dump limit register (DCMIPP_P0DCLMTR)

Address offset: 0x5B4

Reset value: 0x00FF FFFF

31302928272625242322212019181716
ENABLERes.Res.Res.Res.Res.Res.Res.LIMIT[23:16]
rwrwrwrwrwrwrwrwrw
1514131211109876543210
LIMIT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 ENABLE:

0: Disabled, no check on the amount of 32-bit words transmitted

1: Enabled, check done versus limit

Bits 30:24 Reserved, must be kept at reset value.

Bits 23:0 LIMIT[23:0]: Maximum number of 32-bit data that can be dumped during a frame, after the crop 2D operation.

42.14.30 DCMIPP Pipe0 pixel packer configuration register (DCMIPP_P0PPCR)

Address offset: 0x5C0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LINEMULT[2:0]Res.OELSLSMOEBSBSM[1:0]HEADER ENPADRes.Res.Res.Res.SWAP YUV
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 Reserved, must be kept at reset value.

Bits 15:13 LINEMULT[2:0]: Amount of capture completed lines for LINE event and interrupt

Bit 12 Reserved, must be kept at reset value.

Bit 11 OELS: Odd/even line select (line select start)

This bit works in conjunction with LSM field (LSM = 1).

Bit 10 LSM: Line select mode

Bit 9 OEBS: Odd/even byte select (byte select start)

This bit works in conjunction with BSM field (BSM ≠ 00)

This bit has a meaning only if INSEL = 0 into the DCMIPP_CMCR register.

Bits 8:7 BSM[1:0]: Byte select mode

Modes 10 and 11 work only with EDM [2:0] = 000 into the DCMIPP_PRCR register.

This bit has a meaning only if INSEL = 0 into the DCMIPP_CMCR register

Bit 6 HEADEREN: CSI header dump enable

0: CSI-2 headers are not dumped

1: CSI-2 headers are dumped as a 32-bit word.

This setting is ignored for parallel interface mode, as there are no headers.

Bit 5 PAD: Pad mode for monochrome and raw Bayer 10/12/14 bpp (MSB vs. LSB alignment)

0: Aligns on LSB (and pads null bits on MSB), for backward compatibility with former DCMI.

1: Aligns on MSB (and pads null bits on LSB), for better ease of software or GPU.

Bits 4:1 Reserved, must be kept at reset value.

Bit 0 SWAPYUV: Swaps, within a 32-bit word, byte 0-vs-1 and byte 2-vs-3. It corresponds, for YUV422 pixels formats, to swap between UYVY and YUYV.

0: Outputs the provided words, as described in Section 42.10: Pixel format description.

1: Swaps the bytes from provided words, byte 0-vs.-1 and 2-vs.-3

42.14.31 DCMIPP Pipe0 pixel packer Memory0 address register 1 (DCMIPP_P0PPM0AR1)

Address offset: 0x5C4

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
M0A[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.32 DCMIPP Pipe0 status Memory0 address register (DCMIPP_P0STM0AR)

Address offset: 0x5D0

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M0A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

The register returns the status of the last captured frame.

42.14.33 DCMIPP Pipe0 interrupt enable register (DCMIPP_P0IER)

Address offset: 0x5F4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVR
IE
LIMIT
IE
Res.Res.Res.VSYNC
IE
FRAME
IE
LINE
IE
rwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 OVRIE: Overrun interrupt enable

0: No interrupt generation

1: An interrupt is generated if the AXI master is unable to transfer the last data before new data (32-bit) are received.

Bit 6 LIMITIE: Limit interrupt enable

0: No interrupt generation when the limit is reached

1: An interrupt is generated when the limit is reached

Bits 5:3 Reserved, must be kept at reset value.

Bit 2 VSYNCIE: VSYNC interrupt enable

0: No interrupt generation

1: An interrupt is generated on each VSYNC (captured or not)

Bit 1 FRAMEIE: Frame capture completed interrupt enable

0: No interrupt generation

1: An interrupt is generated after the full capture of a cropped frame

Bit 0 LINEIE: Multi-line capture completed interrupt enable

0: No interrupt generation when the line is received

1: An interrupt is generated after the full capture of a group of lines (or last line reached)

42.14.34 DCMIPP Pipe0 status register (DCMIPP_P0SR)

Address offset: 0x5F8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.CPTACTRes.Res.Res.Res.Res.LST FRMLST LINE
rrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVR FLIMIT FRes.Res.Res.VSYNC FFRAME FLINE F
rrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 CPTACT: Capture immediate status

0: Capture currently inactive

1: Capture currently active

This bit is automatically reset at the end of frame capture complete event (after all the data of that frame have been captured and the IP-Plug has started to emit the last burst on the AXI, usually before the next VSync).

Bits 22:20 Reserved, must be kept at reset value.

Bits 19:18 Reserved, must be kept at reset value.

Bit 17 LSTFRM: Last frame LSB bit, sampled at frame capture complete event.

The information is extracted from the frame data number that can be delivered by the camera through the CSI2 interface.

Bit 16 LSTLINE: Last line LSB bit, sampled at frame capture complete event.

Bits 15:8 Reserved, must be kept at reset value.

Bit 7 OVRF: Overrun raw interrupt status

0: No data buffer overrun occurred

1: A data buffer overrun occurred and this frame data are corrupted

This bit is cleared by writing 1 to the COVRF bit in the DCMIPP_P0FCR register.

Bit 6 LIMITF: Limit raw interrupt status

This bit is set when the data counter DCMIPP_PxDCCNTR reaches its maximum value DCMIPP_PxDCLIMITR.

It is cleared by writing 1 to the CLIMITF bit in the DCMIPP_P0FCR register.

Bits 5:3 Reserved, must be kept at reset value.

Bit 2 VSYNCF: VSYNC raw interrupt status

This bit is set when the VSYNC signal changes from the inactive state to the active state. In case of embedded synchronization, this bit is set only if the CAPTURE bit is set in DCMIPP_CR.

It is cleared by writing 1 to the CVSYNCF bit in the DCMIPP_P0FCR register.

Bit 1 FRAMEF: Frame capture completed raw interrupt status

0: No capture or ongoing capture

1: All data of a frame have been captured

This bit is set when all data of a frame or window have been captured. In case of a cropped window, this bit is set at the end of line of the last line in the crop. It is set even if the captured frame is empty (for example window cropped outside the frame).

This bit is cleared by writing 1 to the CFAMEF bit in DCMIPP_P0FCR.

Bit 0 LINEF: Multi-line capture completed raw interrupt status

This bit is set when one/more lines have been completed. For the JPEG mode, this bit is raised at the end of the frame.

The periodicity of LINEF event is configured by LINEMULT bits into DCMIPP_P0PPCR register. When reaching end of frame, this event is triggered out to allow software action even if the LINEMULT value set is not a multiple of the total lines frame.

In case of embedded synchronization, this bit is set only if the CAPTURE bit in the DCMIPP_CR register is set. It is cleared by writing 1 to the CLINEF bit in the DCMIPP_P0FCR register.

42.14.35 DCMIPP Pipe0 interrupt clear register (DCMIPP_P0FCR)

Address offset: 0x5FC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COVR
F
CLIMIT
F
Res.Res.Res.CVSYNC
F
CFRAME
F
CLINE
F
wwwww

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 COVRF: Overrun interrupt status clear

Writing 1 into this bit clears the OVRF bit in the DCMIPP_P0SR register.

Bit 6 CLIMITF: limit interrupt status clear

Writing 1 into this bit clears LIMITF in the DCMIPP_P0SR register.

Bits 5:3 Reserved, must be kept at reset value.

Bit 2 CVSYNCF: Vertical synchronization interrupt status clear

Writing 1 into this bit clears the VSYNCF bit in the DCMIPP_P0SR register.

Bit 1 CFRAMEF: Frame capture complete interrupt status clear

Writing 1 into this bit clears the FRAMEF bit in the DCMIPP_P0SR register.

Bit 0 CLINEF: Multi-line capture complete interrupt status clear

Writing 1 into this bit clears LINEF in the DCMIPP_P0SR register.

42.14.36 DCMIPP Pipe0 current flow selection configuration register (DCMIPP_P0CFSCR)

Address offset: 0x604

Reset value: 0x0000 0000

31302928272625242322212019181716
PIPENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.VC[1:0]Res.DTMODE[1:0]
rrrrr
1514131211109876543210
Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
rrrrrrrrrrrr

Bit 31 PIPEN: Current activation of PipeN

0: Pipe disabled

1: Pipe enabled, can start capturing with CPTMODE, CPTREQ, CPTACK.

Bits 30:21 Reserved, must be kept at reset value.

Bits 20:19 VC[1:0]: Current flow selection mode

Virtual channel ID of the CSI flow to select for further processing on the pipe.

Bit 18 Reserved, must be kept at reset value.

Bits 17:16 DTMODE[1:0]: Flow selection mode

00: Only flow DTIDA from the selected virtual channel is forwarded in the pipe.

01: Flows DTIDA and/or DTIDB from the selected virtual channel are forwarded in the pipe.

10: All Datatypes from the selected virtual channel, except the DTIDA or DTIDB are forwarded into the pipe.

11: All Datatypes of the selected virtual channel VC are forwarded in the pipe.

Bits 15:14 Reserved, must be kept at reset value.

Bits 13:8 DTIDB[5:0]: Current data type selection ID B

Data type ID of the CSI flow to select.

Bits 7:6 Reserved, must be kept at reset value.

Bits 5:0 DTIDA[5:0]: Current data type selection ID A

Data type ID of the CSI flow to select.

42.14.37 DCMIPP Pipe0 current flow control configuration register (DCMIPP_P0CFCTCR)

Address offset: 0x700

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPT REQCPT MODEFRATE[1:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CPTREQ: Capture requested

0: Capture not requested for next frame.

1: Capture requested for next frame.

When PIPEN = 1, and when the CPTREQ is set to 1 the pipe waits for the first VSync, and automatically starts a capture and sets CPTACT = 1 to mention it.

In Snapshot mode the CPTREQ bit is automatically cleared at the start of the first frame received.

In continuous grab mode the capture remains active and CPTREQ = 1, until the software clears CPTREQ: the capture stops and CPTACT is reset at the end of the ongoing frame.

The DCMI and pipe configuration registers must be correctly programmed before enabling this bit.

Bit 2 CPTMODE: Capture mode

0: Continuous grab mode - The received data are transferred into the destination memory through the AXI master.

1: Snapshot mode (single frame) - Once activated, the interface waits for the start of frame, and then transfers a single frame through the AXI master. At the end of the frame the CPTACT bit is automatically reset.

Bits 1:0 FRATE[1:0]: Frame capture rate control

These bits define the frequency of frame capture. They are meaningful only in Continuous grab mode, ignored in Snapshot mode.

00: all frames are captured

01: one out of two frames captured (50% bandwidth reduction)

10: one out of four frames captured (75% bandwidth reduction)

11: one out of eight frames captured (87% bandwidth reduction)

42.14.38 DCMIPP Pipe0 current statistic/crop start register (DCMIPP_P0CSCSTR)

Address offset: 0x704

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0] : Current vertical start, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0] : Current horizontal start, from 0 to 4094 words wide

42.14.39 DCMIPP Pipe0 current statistic/crop size register (DCMIPP_P0CSCSZR)

Address offset: 0x708

Reset value: 0x0000 0000

31302928272625242322212019181716
ENABLEPOSNEGRes.Res.VSIZE[11:0]
rrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rrrrrrrrrrrr
Bit 31 ENABLE : Current value of the ENABLE bit

0: Bypass. All data are computed, if the statistics data are sent within the frame, they are sent to the processing pipe as pixels data.

1: Enable: Depending on bit POSNEG value, the rectangle defined by the VSIZE, HSIZE, VSTART, HSTART can be used to extract or to remove certain amount of data (statistical extraction or removal, or basic 2D crop features)

if POSNEG = 0, the data inside the rectangle area are transmitted (can correspond to a statistical data removal, or as a crop feature in a data valid image area).

if POSNEG = 1, the data outside of the rectangle area are transmitted (can correspond to a statistical data extraction, rejecting all data inside the window)

Bit 30 POSNEG : Current value of the POSNEG bit

This bit has a meaning only if ENABLE bit is set.

0: Positive area. The rectangle defined by VSIZE, HSIZE, and VSTART, HSTART is the active area.

1: Negative area. The active area is the area excluding the rectangle defined by VSIZE, HSIZE, and VSTART, HSTART.

Bits 29:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0] : Current vertical size, from 0 to 4094 pixels high.

If the value is maintained at 0 when enabling the crop by means of the ENABLE bit, the value is forced internally at 0xFFE which is the maximum value.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0] : Current horizontal size, from 0 to 4094 word wide (data 32-bit).

If the value is maintained at 0 when enabling the crop by means of the ENABLE bit, the value is forced internally at 0xFFE, which is the maximum value.

42.14.40 DCMIPP Pipe0 current pixel packer configuration register (DCMIPP_P0CPPCR)

Address offset: 0x7C0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LINEMULT[2:0]Res.OELSLSMOEBSBSM[1:0]HEADER ENPADRes.Res.Res.Res.SWAP YUV
rrrrrrrrrrr

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:13 LINEMULT[2:0]: Current amount of capture completed lines for LINE event and interrupt

Bit 12 Reserved, must be kept at reset value.

Bit 11 OELS: Current odd/even line select (ine select start)

Bit 10 LSM: Current Line select mode

Bit 9 OEBS: Current odd/even byte select (byte select start)

Bits 8:7 BSM[1:0]: Current Byte select mode

Bit 6 HEADEREN: Current CSI header dump enable

Bit 5 PAD: Current Pad mode for monochrome and raw Bayer 10/12/14 bpp (MSB vs. LSB alignment)

Bits 4:1 Reserved, must be kept at reset value.

Bit 0 SWAPYUV: Swaps, within a 32-bit word, byte 0 vs. 1 and byte 2 vs. 3. It corresponds, for YUV422 pixels formats, to swap between UYVY and YUYV.

42.14.41 DCMIPP Pipe0 current pixel packer Memory0 address register 1 (DCMIPP_P0CPPM0AR1)

Address offset: 0x7C4

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M0A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of the current memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.42 DCMIPP Pipex HW configuration register (DCMIPP_PxHWCFGR)

Address offset: 0x800 + (x - 1) * 0x400, (x = 1 to 2)

Reset value: 0x0001 1056, 0x0000 1044

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CFOCCLSCHS
rrr
1514131211109876543210
Res.Res.Res.CDECCROI[3:0]CGM[1:0]CRB[1:0]DBMCDSCPLA[1:0]
rrrrrrrrrrrrr

Bits 31:19 Reserved, must be kept at reset value.

Bit 18 CFOC: Capability for focus extraction

0: Focus extraction not supported

1: Focus extraction supported

Bit 17 CLS: Capability for lens shading

0: Lens shading not supported

1: Lens shading supported

Bit 16 CHS: Capability to extract histograms

0: Histogram extraction not supported

1: Histogram extraction supported

Bits 15:13 Reserved, must be kept at reset value.

Bit 12 CDEC: Capability to decimate before downsize

0: No decimation supported

1: Decimation before downsize supported

Bits 11:8 CROI[3:0]: Capability for ROI: defines the number of ROIs in the pipe

Bits 7:6 CGM[1:0]: Capability for gamma conversions

00: No gamma conversion

01: Gamma conversion with seven interpolated segments

10, 11: Reserved

Bits 5:4 CRB[1:0]: Capability for demosaicing

00: No demosaicing

01: Demosaicing with 2018-03 algorithm (Matrix 3 x 3 with Edge/LineHV/Peak)

10, 11: Reserved

Bit 3 DBM: Double buffer mode

0: No Double buffer mode supported

1: Double buffer mode supported

Bit 2 CDS: Capability for downsize filter

0: No downsize filter, basic decimation instead

1: Downsize filter based on a BoxFilter

Bits 1:0 CPLA[1:0]: Capability for planar buffers

00: Capability to dump to a coplanar buffer only

01: Capability to dump to a semi-planar buffer (i.e. YUV420-2)

10: Capability to dump to full-planar buffer (i.e. YUV420-3)

11: Reserved

42.14.43 DCMIPP Pipe1 flow selection configuration register (DCMIPP_P1FSCR)

Address offset: 0x804

Reset value: 0x0000 0000

column_1column_2Bits 7:6 Bits 5:4 Bit 3 Bit 2 Bits 1:0CGM[1:0]: CRB[1:0]: DBM: CDS:10, 11: Reserved 10, 11: Reserved CPLA[1:0]: 11: Reservedcolumn_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0506
31302928272625242322212019181716
PIPEN FDTFENFDTF[5:0]Res.Res.Res.VC[1:0]PIPEDIFF DTMODE[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
rwrwrwrwrwrwrwrwrwrwrwrw
Bit 31PIPEN: Activation of PipeN 0: Pipe disabled
Bit 30FDTFEN: Force Datatype format enable

Bit 31 PIPEN: Activation of PipeN

0: Pipe disabled

1: Pipe enabled, can start capturing with CPTMODE, CPTREQ, CPTACK

Bit 30 FDTFEN: Force Datatype format enable

0: Disable force Datatype format. The Datatype format used by the pipe is the one defined into DTIDx1: Enable force Datatype format. When the Datatype DTIDx is detected by the pipe, the real pixel format considered by the pipe is the one set into the FDTF[5:0] bit field instead of the physical one received by the CSI2 Host. It allows to handle, for instance, 3D sensors camera using user data type in bottom-up approach, and to explicitly define the pixel format to be handled by the pipe. Note that the flow is first selected using the DTMODE and DTIDA/B, and then, if selected, its data type may be forced with the to FDTF using FDTFEN = 1.

42.14.44 DCMIPP Pipe1 stat removal configuration register (DCMIPP_P1SRCR)

Address offset: 0x820

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
CROP ENFIRSTLINEDEL[2:0]LASTLINE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
ST logo
ST logo

Bits 11:0 LASTLINE[11:0]: Amount of following lines to keep when CROPEN = 1.
If LASTLINE = 0 all pixels after FIRSTLINEDEL are fed through.

42.14.45 DCMIPP Pipe1 bad pixel removal control register (DCMIPP_P1BPRCR)

Address offset: 0x824

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STRENGTH[2:0]ENABLE
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:1 STRENGTH[2:0]: Strength (aggressiveness) of the bad pixel detection

0x0: The filter is fairly tolerant: only a few pixels are declared bad, due to their high noise

...

0x7: The filter is very aggressive: many pixels are declared bad, even if only slightly noisy.

Bit 0 ENABLE:

0: Bypass: bad pixel removal is not active, all pixels are transmitted through

1: Enable: if bad pixel are detected, they are replaced by corrected pixels

Bad pixel detection must be enabled only for raw Bayer flows, as it corrupts RGB flows.

42.14.46 DCMIPP Pipe1 bad pixel removal status register (DCMIPP_P1BPRSR)

Address offset: 0x828

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.BADCNT[11:0]
rrrrrrrrrrr

Bits 31:12 Reserved, must be kept at reset value.

Bits 11:0 BADCNT[11:0]: Amount of detected bad pixels

Counts the amount of bad pixels detected in each frame, and if too many, saturates at its maximum value (4095). It is reclocked at the frame end, to remain stable for reading during the next frame.

42.14.47 DCMIPP Pipe1 decimation register (DCMIPP_P1DECR)

This register controls the input decimation.

Address offset: 0x830

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VDEC[1:0]HDEC[1:0]ENABLE
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:3 VDEC[1:0]: Vertical decimation ratio

0x0: All pixels are transmitted, no vertical decimation

0x1: one line out of two transmitted (for raw Bayer data, two lines of components every four)

0x2: one line out of four transmitted (for raw Bayer data, two lines of components every eight)

0x3: one line out of eight transmitted (for raw Bayer data, two lines of components every 16)

Bits 2:1 HDEC[1:0]: Horizontal decimation ratio

0x0: All pixels are transmitted, no horizontal decimation

0x1: one line out of two transmitted (for raw Bayer data, two lines of components every four)

0x2: one line out of four transmitted (for raw Bayer data, two lines of components every eight)

0x3: one line out of eight transmitted (for raw Bayer data, two lines of components every 16)

Bit 0 ENABLE:

0: Bypass: decimation is not active, all pixels are transmitted

1: Enable: one pixel every 1, 2, 4, or 8, in H and V is transmitted, following HDEC and VDEC

42.14.48 DCMIPP Pipe1 black level calibration control register (DCMIPP_P1BLCCR)

Address offset: 0x840

Reset value: 0x0000 0000

31302928272625242322212019181716
BLCR[7:0]BLCG[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
BLCB[7:0]Res.Res.Res.Res.Res.Res.Res.ENABLE
rwrwrwrwrwrwrwrwrw

Bits 31:24 BLCR[7:0]: Black level calibration - Red

Value subtracted from the red input MSB component, whether it is on 8, 10, 12, 14 bits.

Bits 23:16 BLCG[7:0]: Black level calibration - Green

Value subtracted from the green input MSB component, whether it is on 8, 10, 12, 14 bits.

Bits 15:8 BLCB[7:0]: Black level calibration - Blue

Value subtracted from the blue input MSB component, whether it is on 8, 10, 12, 14 bits.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 ENABLE: Black level calibration

0: Bypass: black level calibration is not active, all pixels are transmitted non-modified.

1: Enable: the BLC R, G, B are subtracted.

42.14.49 DCMIPP Pipe1 exposure control register 1 (DCMIPP_P1EXCR1)

Address offset: 0x844

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.SHFR[2:0]MULTR[7:0]Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
rw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 SHFR[2:0]: Exposure shift - Red

0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7: exposure of reds is increased, respectively, by a factor 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x.

Bits 27:20 MULTR[7:0]: Exposure multiplier - Red

Value that is multiplied for the red input components, whether it is on 8, 10, 12, 14 bits.

Multiplying by 64 reduces the exposure (darkens the reds) by a factor 2x.

Multiplying by 128 does not modify the exposure (keeps the reds as-is).

Multiplying by 255 increase the exposure (lightens the reds) by a factor ~2x.

Bits 19:1 Reserved, must be kept at reset value.

Bit 0 ENABLE: Exposure control (multiplication and shift) of all red, green and blue

0: Bypass: exposure multiplier and shift are not applied

1: Enable: the exposure multiplication and shift is applied

42.14.50 DCMIPP Pipe1 exposure control register 2 (DCMIPP_P1EXCR2)

Address offset: 0x848

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.SHFG[2:0]MULTG[7:0]Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.SHFB[2:0]MULTB[7:0]Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 SHFG[2:0]: Exposure shift - Green

0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7: Exposure of greens is increased, respectively, by a factor 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x.

Bits 27:20 MULTG[7:0]: Exposure multiplier - Green

Value that is multiplied for the green input components, whether it is on 8, 10, 12, 14 bits.
Multiplying by 64 reduces the exposure (darkens the greens) by a factor 2x.
Multiplying by 128 does not modify the exposure (keeps the greens as-is).
Multiplying by 255 increases the exposure (lightens the greens) by a factor ~2x.

Bits 19:15 Reserved, must be kept at reset value.

Bits 14:12 SHFB[2:0]: Exposure shift - Blue

0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7: exposure of blues is increased, respectively, by a factor 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x.

Bits 11:4 MULTB[7:0]: Exposure multiplier - Blue

Value that is multiplied for the blue input components, whether it is on 8, 10, 12, 14 bits.
Multiplying by 64 reduces the exposure (darkens the blues) by a factor 2x.
Multiplying by 128 does not modify the exposure (keeps the blues as-is).
Multiplying by 255 increases the exposure (lightens the blues) by a factor ~2x.

Bits 3:0 Reserved, must be kept at reset value.

42.14.51 DCMIPP Pipe1 statistics1 control register (DCMIPP_P1ST1CR)

Address offset: 0x850

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MODESRC[2:0]BINS[1:0]Res.ENABLE
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 MODE: Statistics mode

0: Average: accumulates the 8-bit component value of the considered pixel components.
Typically used to extract the average value of R, G, B, or luminance across the picture, and to drive the exposure control and the white balance.
1: Bins: accumulates 256 for each considered pixel component fitting a bin dynamic.
Typically used to extract how many pixel components fall into the various dynamic bins, and to drive the contrast enhancement.

Bits 6:4 SRC[2:0]: Statistics source

0x0, 0x1, 0x2, 0x3: components are sampled after black level, and sample, respectively, red, green, blue, and luminance. For raw Bayer formats, only one component is available by pixel.
0x4, 0x5, 0x6, 0x7: components are sampled after demosaicing, and sample, respectively, red, green, blue, and luminance.

Bits 3:2 BINS[1:0]: Current bin definition

Condition: MODE = Bins

0x0: LowerBins: Accu0 (1, 2) is incremented of 256 if Component <4 (<8, <16)

0x1: LowMid Bins: Accu0 (1, 2) is incremented of 256 if Component <32 (<64, <128)

0x2: UpMid Bins: Accu0 (1, 2) is incremented of 256 if Component >127 (>191, >224)

0x3: UpBins: Accu0 (1, 2) is incremented of 256 if Component >239 (>247, >251)

Condition: MODE = Average

0x0: All Pixels: Accu is incremented of Component, if 0 ≤ Component < 256.

0x1: NoExt16: Accu is incremented of Component, if 16 ≤ Component < 240

0x2: NoExt32: Accu is incremented of Component, if 32 ≤ Component < 224

0x3: NoExt64: Accu is incremented of Component, if 64 ≤ Component < 192

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: Disabled: statistics are not accumulated

1: Enable: statistics are accumulated

42.14.52 DCMIPP Pipe1 statistics 2 control register (DCMIPP_P1ST2CR)

Address offset: 0x854

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MODESRC[2:0]BINS[1:0]Res.ENABLE
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 MODE: Statistics mode

0: Average: accumulates the 8-bit component value of the considered pixel components.

It is typically used to extract the average value of R, G, B, or luminance across the picture, and to drive the exposure control and the white balance.

1: Bins: accumulates 256 for each considered pixel component fitting a bin dynamic.

It is typically used to extract how many pixel components fall into the various dynamic bins.

It is usually used to drive the contrast enhancement.

Bits 6:4 SRC[2:0]: Statistics source

0x0, 0x1, 0x2, 0x3: components are sampled after black level, and sample, respectively, the red, green, blue components, and luminance.

0x4, 0x5, 0x6, 0x7: components are sampled after the black level calibration and exposure, and sample, respectively, red, green, blue and luminance.

Bits 3:2 BINS[1:0]: Bin definition

Condition: MODE = Bins

0x0: LowerBins: Accu0 (1, 2) is incremented of 256 if Component < 4 (< 8, < 16)

0x1: LowMid Bins: Accu0 (1, 2) is incremented of 256 if Component < 32 (< 64, < 128)

0x2: UpMid Bins: Accu0 (1, 2) is incremented of 256 if Component > 127 (> 191, > 224)

0x3: UpBins: Accu0 (1, 2) is incremented of 256 if Component > 239 (> 247, > 251)

Condition: MODE = Average

0x0: AllPixels: Accu is incremented of Component, if 0 ≤ Component < 256.

0x1: NoExt16: Accu is incremented of Component, if 16 ≤ Component < 240.

0x2: NoExt32: Accu is incremented of Component, if 32 ≤ Component < 224.

0x3: NoExt64: Accu is incremented of Component, if 64 ≤ Component < 192.

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: Disabled: statistics are not accumulated

1: Enabled: statistics are accumulated

42.14.53 DCMIPP Pipe1 statistics 3 control register (DCMIPP_P1ST3CR)

Address offset: 0x858

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MODESRC[2:0]BINS[1:0]Res.ENABLE
rwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 MODE: Statistics mode

0: Average: accumulates the 8-bit component value of the considered pixel components.

It is typically used to extract the average value of R, G, B, or luminance across the picture, and to drive the exposure control and the white balance.

1: Bins: accumulates 256 for each considered pixel component fitting a bin dynamic.

It is typically used to extract how many pixel components fall into the various dynamic bins. It is usually used to drive the contrast enhancement.

Bits 6:4 SRC[2:0]: Statistics source

0x0, 0x1, 0x2, 0x3: components are sampled after black level, and sample, respectively, the red, green, blue components, and luminance.

0x4, 0x5, 0x6, 0x7: components are sampled after the black level calibration and exposure, and sample, respectively, the red, green, blue and luminance.

Bits 3:2 BINS[1:0]: Bin definition

Condition: MODE = Bins

0x0: LowerBins: Accu0 (1, 2) is incremented of 256 if Component <4 (<8, <16)

0x1: LowMid Bins: Accu0 (1, 2) is incremented of 256 if Component <32 (<64, <128)

0x2: UpMid Bins: Accu0 (1, 2) is incremented of 256 if Component >127 (>191, >224)

0x3: UpBins: Accu0 (1, 2) is incremented of 256 if Component >239 (>247, >251)

Condition: MODE = Average

0x0: AllPixels: Accu is incremented of Component, if 0 ≤ Component < 256.

0x1: NoExt16: Accu is incremented of Component, if 16 ≤ Component < 240.

0x2: NoExt32: Accu is incremented of Component, if 32 ≤ Component < 224.

0x3: NoExt64: Accu is incremented of Component, if 64 ≤ Component < 192.

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: Disabled: statistics are not accumulated

1: Enabled: statistics are accumulated

42.14.54 DCMIPP Pipe1 statistics window start register (DCMIPP_P1STSTR)

Address offset: 0x85C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Vertical start, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Horizontal start, from 0 to 4094 pixels wide

42.14.55 DCMIPP Pipe1 statistics window size register (DCMIPP_P1STSZR)

Address offset: 0x860

Reset value: 0x0000 0000

31302928272625242322212019181716
CROP
EN
Res.Res.Res.VSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 CROPEN:

0: Bypass, all pixels are used to compute the statistics

1: Enable, only the rectangle defined by VSTART, HSTART, VSIZE, HSIZE is used for statistics.

Bits 30:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0] : Vertical size, from 0 to 4094 pixels high

If the value is kept at 0 when enabling the crop with the CROPEN bit, the value is forced internally at the maximum value 0xFFE.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0] : Horizontal size, from 0 to 4094 pixels wide

If the value is kept at 0 when enabling the crop with the CROPEN bit, the value is forced internally at the maximum value 0xFFE.

42.14.56 DCMIPP Pipe1 statistics 1 status register (DCMIPP_P1ST1SR)

Address offset: 0x864

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.ACCU[23:16]
rrrrrrrr
1514131211109876543210
ACCU[15:0]
rrrrrrrrrrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 ACCU[23:0] : Accumulation result, divided by 256.

42.14.57 DCMIPP Pipe1 statistics 2 status register (DCMIPP_P1ST2SR)

Address offset: 0x868

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.ACCU[23:16]
rrrrrrrr
1514131211109876543210
ACCU[15:0]
rrrrrrrrrrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 ACCU[23:0] : accumulation result, divided by 256.

42.14.58 DCMIPP Pipe1 statistics 3 status register (DCMIPP_P1ST3SR)

Address offset: 0x86C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.ACCU[23:16]
rrrrrrrr
1514131211109876543210
ACCU[15:0]
rrrrrrrrrrrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:0 ACCU[23:0] : accumulation result, divided by 256.

42.14.59 DCMIPP Pipe1 demosaicing configuration register (DCMIPP_P1DMCR)

Address offset: 0x870

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.EDGE[2:0]Res.LINEH[2:0]Res.LINEV[2:0]Res.PEAK[2:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TYPE[1:0]ENABLE
rwrwrw

Bit 31 Reserved, must be kept at reset value.

42.14.60 DCMIPP Pipe1 ColorConv configuration register (DCMIPP_P1CCCR)

Address offset: 0x880

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAMPTYPEENABLE
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: ColorConv is bypassed

1: ColorConv is enabled

42.14.61 DCMIPP Pipe1 ColorConv red coefficient register 1 (DCMIPP_P1CCRR1)

Address offset: 0x884

Reset value: 0x0000 0000

Coefficients of the ColorConv, in signed 2.8 format (1.0 is coded by 0x100). The sign is indicated as complement to 2.

31302928272625242322212019181716
Res.Res.Res.Res.Res.RG[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.RR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 RG[10:0]: Coefficient row 1 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 RR[10:0]: Coefficient row 1 column 1 of the matrix

42.14.62 DCMIPP Pipe1 ColorConv red coefficient register 2 (DCMIPP_P1CCRR2)

Address offset: 0x888

Reset value: 0x0000 0000

The coefficients RA[9:0] of the added column, for the ColorConv, are defined as signed 10-bit integer with the sign as complement to 2 (-256 is coded by 0x200).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.RA[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.RB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 RA[9:0]: Coefficient row 1 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 RB[10:0]: Coefficient row 1 column 3 of the matrix

42.14.63 DCMIPP Pipe1 ColorConv green coefficient register 1
(DCMIPP_P1CCGR1)

Address offset: 0x88C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.GG[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.GR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 GG[10:0]: Coefficient row 2 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 GR[10:0]: Coefficient row 2 column 1 of the matrix

42.14.64 DCMIPP Pipe1 ColorConv green coefficient register 2
(DCMIPP_P1CCGR2)

Address offset: 0x890

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.GA[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.GB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 GA[9:0]: Coefficient row 2 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 GB[10:0]: Coefficient row 2 column 3 of the matrix

42.14.65 DCMIPP Pipex ColorConv blue coefficient register 1 (DCMIPP_P1CCBR1)

Address offset: 0x894

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.BG[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.BR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 BG[10:0]: Coefficient row 3 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 BR[10:0]: Coefficient row 3 column 1 of the matrix

42.14.66 DCMIPP Pipe1 ColorConv blue coefficient register 2 (DCMIPP_P1CCBR2)

Address offset: 0x898

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.BA[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.BB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 BA[9:0]: Coefficient row 3 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 BB[10:0]: Coefficient row 3 column 3 of the matrix

42.14.67 DCMIPP Pipe1 contrast control register 1 (DCMIPP_P1CTCR1)

Address offset: 0x8A0

Reset value: 0x0000 2000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.LUM0[5:0]Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
rwrwrwrwrwrwrw

Bits 31:15 Reserved, must be kept at reset value.

Bits 14:9 LUM0[5:0]: Luminance increase for input luminance of 0 (increase is idle with LUMx = 16)

Bits 8:1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: Bypass, pixels are forwarded idle.

1: Enable, contrast enhancement is applied on pixels.

42.14.68 DCMIPP Pipe1 contrast control register 2 (DCMIPP_P1CTCR2)

Address offset: 0x8A4

Reset value: 0x2020 2020

31302928272625242322212019181716
Res.LUM1[5:0]Res.Res.LUM2[5:0]Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.LUM3[5:0]Res.Res.LUM4[5:0]Res.
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:25 LUM1[5:0]: Luminance increase for input luminance of 32 (increase is idle with LUMx = 16)

Bits 24:23 Reserved, must be kept at reset value.

Bits 22:17 LUM2[5:0]: Luminance increase for input luminance of 64 (increase is idle with LUMx = 16)

Bits 16:15 Reserved, must be kept at reset value.

Bits 14:9 LUM3[5:0]: Luminance increase for input luminance of 96 (increase is idle with LUMx = 16)

Bits 8:7 Reserved, must be kept at reset value.

Bits 6:1 LUM4[5:0]: Luminance increase for input luminance of 128 (increase is idle with LUMx = 16)

Bit 0 Reserved, must be kept at reset value.

42.14.69 DCMIPP Pipe1 contrast control register 3 (DCMIPP_P1CTCR3)

Address offset: 0x8A8

Reset value: 0x2020 2020

31302928272625242322212019181716
Res.LUM5[5:0]Res.Res.LUM6[5:0]Res.
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.LUM7[5:0]Res.Res.LUM8[5:0]Res.
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:25 LUM5[5:0]: Luminance increase for input luminance of 160 (increase is idle with LUMx = 16)

Bits 24:23 Reserved, must be kept at reset value.

Bits 22:17 LUM6[5:0]: Luminance increase for input luminance of 192 (increase is idle with LUMx = 16)

Bits 16:15 Reserved, must be kept at reset value.

Bits 14:9 LUM7[5:0]: Luminance increase for input luminance of 224 (increase is idle with LUMx = 16)

Bits 8:7 Reserved, must be kept at reset value.

Bits 6:1 LUM8[5:0]: Luminance increase for input luminance of 256 (increase is idle with LUMx = 16)

Bit 0 Reserved, must be kept at reset value.

42.14.70 DCMIPP Pipe1 histogram configuration register (DCMIPP_P1HSCR)

Address offset: 0x8B0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.BIN[1:0]DYN[1:0]Res.COMP[2:0]Res.VDEC[2:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.HDEC[2:0]VREG[3:0]HREG[3:0]SRC[2:0]EN
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:26 BIN[1:0]: Bin amount per histogram. All bins have the same width.

0x0: 4 bins per histogram (assuming an input with 256 values, each bin is 64-value wide)

0x1: 16 bins per histogram (assuming an input with 256 values, each bin is 16-value wide)

0x2: 64 bins per histogram (assuming an input with 256 values, each bin is 4-value wide)

0x3: 256 bins per histogram (assuming an input with 256 values, each bin is 1-value wide)

Bits 7:4 HREG[3:0]: Amount of horizontal regions per frame, from which to extract the histograms
0x0: 1 region per frame
0x1: 2 regions per frame
...
0xF: 16 regions per frame

Bits 3:1 SRC[2:0]: Source across the pipeline, where to sample pixels and extract the histograms:
0x0: after the input decimation (and before the black level)
0x1: after the black level (and before the exposure)
0x2: after the exposure (and before the demosaicing)
0x3: after the demosaicing (and before the ColorConv)
0x4: after the ColorConv (and before the contrast)
0x5: after the contrast (and before entering the applicative pipe and its CROP)
Other values: reserved

Note: When SRC > 2 the pixel is considered RGB.

Bit 0 EN: Histogram enable
0: disabled
1: enabled, histograms are extracted and written out.

42.14.71 DCMIPP Pipe1 histogram window start register (DCMIPP_P1HSSTR)

Address offset: 0x8B4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Vertical start, from 0 to 4094 pixels high.
The unit is the pixel. In case of a raw Bayer input, VSTART is rounded to even values.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Horizontal start, from 0 to 4094 pixels high.
The unit is the pixel. In case of a raw Bayer input, HSTART is rounded to even values.

42.14.72 DCMIPP Pipe1 histogram window size register (DCMIPP_P1HSSZR)

Address offset: 0x8B8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Vertical size of each histogram region, from 0 to 4094 pixels high

The unit is the pixel. It must be a multiple of decimation. In case of a raw Bayer input, VSIZE is rounded to even values.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Horizontal size of each histogram region, from 0 to 4094 pixels high

The unit is the pixel. It must be a multiple of decimation. In case of a raw Bayer input, HSIZE is rounded to even values.

42.14.73 DCMIPP Pipe1 histogram memory address register 1 (DCMIPP_P1HSMAR1)

Address offset: 0x8BC

Reset value: 0x0000 0000

31302928272625242322212019181716
MA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrrrr

Bits 31:0 MA[31:0]: Memory address

Base address of memory area, to whom histogram data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.74 DCMIPP Pipe1 histogram memory status address register 3 (DCMIPP_P1HSSMAR)

Address offset: 0x8C4

Reset value: 0x0000 0000

31302928272625242322212019181716
MA[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
MA[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 MA[31:0]: Memory address

Base address of memory area, to whom histogram data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

This register returns the status of the last captured histogram.

42.14.75 DCMIPP Pipex flow control configuration register (DCMIPP_PxFCTCR)

Address offset: 0x900 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPT REQCPT MODEFRATE[1:0]
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CPTREQ: Capture requested

0: Capture not requested for next frame

1: Capture requested for next frame

When PIPEN = 1, and when the CPTREQ is set to 1, the pipe waits for the first VSync, then automatically starts a capture and sets CPTACT = 1 to mention it.

In Snapshot mode, the CPTREQ bit is automatically cleared at the start of the first frame received.

In continuous grab mode, the capture remains active and CPTREQ = 1, until the software clears CPTREQ: the capture stops and CPTACT is reset at the end of the ongoing frame.

The DCMI and pipe configuration registers must be correctly programmed before enabling this bit.

Bit 2 CPTMODE: Capture mode

0: Continuous grab mode. The received data are transferred into the destination memory through the AXI master.

1: Snapshot mode (single frame). Once activated, the interface waits for the start of frame, and then transfers a single frame through the AXI master. At the end of the frame, the CPTACT bit is automatically reset.

Bits 1:0 FRATE[1:0]: Frame capture rate control

These bits define the frequency of frame capture. They are meaningful only in Continuous grab mode, ignored in Snapshot mode.

00: All frames are captured

01: one out of two frames captured (50% bandwidth reduction)

10: one out of four frames captured (75% bandwidth reduction)

11: one out of eight frames captured (87% bandwidth reduction)

42.14.76 DCMIPP Pipex crop window start register (DCMIPP_PxCRSTR)

Address offset: 0x904+0x400*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Vertical start, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Horizontal start, from 0 to 4094 pixels wide

42.14.77 DCMIPP Pipex crop window size register (DCMIPP_PxCRSZR)

Address offset: 0x908+0x400*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
ENABLERes.Res.Res.VSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 ENABLE:

0: Bypass, all pixels are transmitted through (no need to set any start and size values)

1: Enable, only the rectangle defined by VSIZE, HSIZE, VSTART, HSTART is transmitted.

Bits 30:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Vertical size, from 0 to 4094 pixels high. If the value is maintained at 0 when enabling the crop thanks to the ENABLE bit, the value is forced internally at 0xFFE, which is the maximum value.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Horizontal size, from 0 to 4094 pixels wide. If the value is maintained at 0 when enabling the crop by means of the ENABLE bit, the value is forced internally at 0xFFE, which is the maximum value.

42.14.78 DCMIPP Pipex decimation register (DCMIPP_PxDCCR)

This register controls decimation, prior to downsize (to complement it).

Address offset: 0x90C+0x400*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VDEC[1:0]HDEC[1:0]ENABLE
rwrwrwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:3 VDEC[1:0]: Vertical decimation ratio

Bits 2:1 HDEC[1:0]: Horizontal decimation ratio

Bit 0 ENABLE:

42.14.79 DCMIPP Pipex downsize configuration register (DCMIPP_PxDSCR)

Address offset: 0x910+0x400*(x-1) (x = 1 to 2)

Reset value: 0x0000 0000

The division factor is an unsigned integer based on the source/destination ratio:

\[\text{div} = \max(\text{int}(1024 / (\text{source}/\text{destination})), 1023)\]

31302928272625242322212019181716
ENABLERes.Res.Res.Res.Res.VDIV[9:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.HDIV[9:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 ENABLE:

0: Down scaler is bypassed

1: Down scaler is enabled

Bits 30:26 Reserved, must be kept at reset value.

Bits 25:16 VDIV[9:0]: Vertical division factor, from 128 (8x) to 1023 (1x)

Bits 15:10 Reserved, must be kept at reset value.

Bits 9:0 HDIV[9:0]: Horizontal division factor, from 128 (8x) to 1023 (1x)

42.14.80 DCMIPP Pipex downsize ratio register (DCMIPP_PxDSRTIOR)

Address offset: 0x914 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

The down scale ratio is expressed in unsigned 3.13 format:

\[\text{ratio} = \max(\text{int}((\text{SourceSize} - 1) / (\text{DestinationSize} - 1)) * 8192, 8 * 8192 - 1)\]

31302928272625242322212019181716
VRATIO[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
HRATIO[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 VRATIO[15:0]: Vertical ratio, from 8192 (1x) to 65535 (8x)

Bits 15:0 HRATIO[15:0]: Horizontal ratio, from 8192 (1x) to 65535 (8x)

42.14.81 DCMIPP Pipex downsize destination size register (DCMIPP_PxDSSZR)

Address offset: 0x918 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Vertical size, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Horizontal size, from 0 to 4094 pixels wide

42.14.82 DCMIPP Pipex gamma configuration register (DCMIPP_PxGMCR)

Address offset: 0x970 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: Gamma is bypassed

1: Gamma is enabled

42.14.83 DCMIPP Pipe1 YUVConv configuration register (DCMIPP_P1YUVCR)

Address offset: 0x980

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAMPTYPEENABLE
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 CLAMP: Clamp the output samples

0: Not activated (clamped to [0;255] by default)

1: Activated, depending on TYPE

Bit 1 TYPE: Output samples type used while CLAMP is activated

0: Clamped to [16;235] for Y and to [16;240] for U and V

1: Clamped to [16;235] for R, G and B

Bit 0 ENABLE:

0: ColorConv is bypassed

1: ColorConv is enabled

42.14.84 DCMIPP Pipe1 YUVConv red coefficient register 1
(DCMIPP_P1YUVRR1)

Address offset: 0x984

Reset value: 0x0000 0000

Coefficients of the ColorConv, in signed 2.8 format (1.0 is coded by 0x100):

\[\text{int\_value} = \text{int}(\text{float\_value} * (1 \ll 8) + 0.5)\]

31302928272625242322212019181716
Res.Res.Res.Res.Res.RG[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.RR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 RG[10:0]: Coefficient row 1 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 RR[10:0]: Coefficient row 1 column 1 of the matrix

42.14.85 DCMIPP Pipe1 YUVConv red coefficient register 2
(DCMIPP_P1YUVRR2)

Address offset: 0x988

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.RA[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.RB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 RA[9:0]: Coefficient row 1 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 RB[10:0]: Coefficient row 1 column 3 of the matrix

42.14.86 DCMIPP Pipe1 YUVConv green coefficient register 1
(DCMIPP_P1YUVGR1)

Address offset: 0x98C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.GG[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.GR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 GG[10:0]: Coefficient row 2 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 GR[10:0]: Coefficient row 2 column 1 of the matrix

42.14.87 DCMIPP Pipe1 YUVConv green coefficient register 2
(DCMIPP_P1YUVGR2)

Address offset: 0x990

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.GA[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.GB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 GA[9:0]: Coefficient row 2 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 GB[10:0]: Coefficient row 2 column 3 of the matrix

42.14.88 DCMIPP Pipe1 YUVConv blue coefficient register 1
(DCMIPP_P1YUVBR1)

Address offset: 0x994

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.BG[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.BR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 BG[10:0]: Coefficient row 3 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 BR[10:0]: Coefficient row 3 column 1 of the matrix

42.14.89 DCMIPP Pipe1 YUV blue coefficient register 2 (DCMIPP_P1YUVBR2)

Address offset: 0x998

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.BA[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.BB[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 BA[9:0]: Coefficient row 3 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 BB[10:0]: Coefficient row 3 column 3 of the matrix

42.14.90 DCMIPP Pipe1 pixel packer configuration register (DCMIPP_P1PPCR)

Address offset: 0x9C0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LINEMULT[2:0]Res.Res.Res.Res.Res.Res.Res.Res.SWAP
RB
FORMAT[3:0]
rwrwrwrwrwrwrwrw

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 Reserved, must be kept at reset value.

Bits 15:13 LINEMULT[2:0]: Amount of capture completed lines for LINE Event and Interrupt

Bits 12:5 Reserved, must be kept at reset value.

Bit 4 SWAPRB: Swaps R-vs-B components if RGB, and U-vs-V components if YUV
0: No swap of R-vs-B (U-vs-V)
1: Swap active

Bits 3:0 FORMAT[3:0]: Memory format
0x0: RGB888 or YUV444 1-buffer
0x1: RGB565 1-buffer
0x2: ARGB8888 (with A = 0xFF)
0x3: RGBA8888 (with A = 0xFF)
0x4: monochrome Y8 or G8 1-buffer
0x5: YUV444 1-buffer (32 bpp, FOURCC = AYUV, with A = 0xFF)
0x6: YUV422 1-buffer (16 bpp, FOURCC = YUYV)
0x7: YUV422 2-buffer (16 bpp, FOURCC = none)
0x8: YUV420 2-buffer (12 bpp, FOURCC = NV21), NV12 available with SWAPRB = 1
0x9: YUV420 3-buffer (12 bpp, FOURCC = YV12)
0xA: YUV422 1-buffer (16 bpp, FOURCC = UYVY)
Other formats are reserved and not supported.

42.14.91 DCMIPP Pipe1 pixel packer Memory0 address register 1 (DCMIPP_P1PPM0AR1)

Address offset: 0x9C4

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
M0A[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrrrr

Bits 31:0 M0A[31:0]: Memory0 address
Base address of memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.92 DCMIPP Pipex pixel packer Memory0 pitch register (DCMIPP_PxPPM0PR)

Address offset: 0x9CC + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
PITCH[14:0]
Res.rwrwrwrwrwrwrwrwrwrwrwrrrr
ST logo
ST logo

Bits 31:15 Reserved, must be kept at reset value.

Bits 14:0 PITCH[14:0]: Number of bytes between the address of two consecutive lines.

It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0. It ranges to 32 Kbytes, to allow a double-width buffer, containing a 4-kpixel wide 32 bpp picture.

42.14.93 DCMIPP Pipex status Memory0 address register (DCMIPP_PxSTM0AR)

Address offset: 0x9D0 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M0A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0. The register returns the status of the last captured frame.

42.14.94 DCMIPP Pipex pixel packer Memory1 address register 1 (DCMIPP_PxPPM1AR1)

Address offset: 0x9D4 + 0x200 * (x - 1), (x = 1 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
M1A[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
M1A[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrrrr

Bits 31:0 M1A[31:0]: Memory1 address

Base address of memory area 1, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.95 DCMIPP Pipex pixel packer Memory1 pitch register (DCMIPP_PxPPM1PR)

Address offset: 0x9DC+0x400*(x-1), (x = 1 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.PITCH[14:0]
rwrwrwrwrwrwrwrwrwrwrwrrrr

Bits 31:15 Reserved, must be kept at reset value.

Bits 14:0 PITCH[14:0]: Number of bytes between the address of two consecutive lines.

It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0. It ranges to 32 Kbytes, to allow a double-width buffer, containing a 4-kpixel wide 32 bpp picture. PITCH is used also for Memory2 (there is no need to differentiate the pitch of Memory1/Memory2).

42.14.96 DCMIPP Pipex status Memory1 address register (DCMIPP_PxSTM1AR)

Address offset: 0x9E0+0x400*(x-1), (x = 1 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
M1A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M1A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M1A[31:0]: Memory1 address

Base address of memory area 1, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0. The register returns the status of the last captured frame.

42.14.97 DCMIPP Pipex pixel packer memory2 address register 1 (DCMIPP_PxPPM2AR1)

Address offset: 0x9E4 + 0x400 * (x - 1), (x = 1 to 1)

Reset value: 0x0000 0000

RM0506column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
313029282726252423 M2A[31:16]22212019181716
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
151413121110987 M2A[15:0]6543210
rwrwrwrwrwrwrwrwrwrwrwrwrrrr
Bits 31:0M2A[31:0]: Memory 2 address
313029282726252423 M2A[31:16]22212019181716
rrrrrrrrrrrrrrrr
151413121110987 M2A[15:0]6543210
rrrrrrrrrrrrrrrr
Bits 31:0M2A[31:0]: Memory2 address
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVRSTOVRSTBCSTFRAMEFRAMELINE
IERes.VSYNC
IEIEIEIEIEIE
rwrwrwrwrwrwrw
RM0506 Rev 22303/4831

Bits 31:0 M2A[31:0]: Memory 2 address

Base address of memory area 2 to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.98 DCMIPP Pipex status Memory2 address register (DCMIPP_PxSTM2AR)

Address offset: 0x9F0 + 0x400 * (x - 1), (x = 1 to 1)

Reset value: 0x0000 0000

Bits 31:0 M2A[31:0]: Memory2 address

Base address of memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0. The register returns the status of the last captured frame.

42.14.99 DCMIPP Pipe1 interrupt enable register (DCMIPP_P1IER)

Address offset: 0x9F4

Reset value: 0x0000 0000

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 OVRIE: Overrun interrupt enable

0: No interrupt generation

1: An interrupt is generated if the AXI master is unable to transfer the last data before new data (32-bit) are received.

Bit 6 STOVRIE: Statistic overrun interrupt enable

0: No interrupt generation

1: An interrupt is generated if the AXI master is unable to transfer the last data before new data (32-bit) are received.

Bit 5 STBCIE: Statistic bad configuration interrupt enable

0: No interrupt generation

1: An interrupt is generated if the software configuration is considered inconsistent

Bit 4 STFRAMEIE: Statistic frame capture interrupt enable

0: No interrupt generation

1: An interrupt is generated after the full capture of the statistics of a frame

Bit 3 Reserved, must be kept at reset value.

Bit 2 VSYNCIE: VSYNC interrupt enable

0: No interrupt generation

1: An interrupt is generated on each VSYNC (captured or not)

Bit 1 FRAMEIE: Frame capture completed interrupt enable

0: No interrupt generation

1: An interrupt is generated after the full capture of a cropped frame

Bit 0 LINEIE: Multi-line capture completed interrupt enable

0: No interrupt generation when the line is received

1: An interrupt is generated after the full capture of a group of lines (or last line reached)

42.14.100 DCMIPP Pipe1 status register (DCMIPP_P1SR)

Address offset: 0x9F8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.CPT
ACT
Res.Res.Res.Res.Res.LST
FRM
LST
LINE
rrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVR
F
STOVR
F
STBC
F
STFRAME
F
Res.VSYNC
F
FRAME
F
LINE
F
rrrrrrr

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 CPTACT: Capture immediate status

0: Capture currently inactive

1: Capture currently active

This bit is automatically reset at the end of Frame capture complete event (after all the data of that frame have been captured, usually before the next VSync).

Bits 22:20 Reserved, must be kept at reset value.

Bits 19:18 Reserved, must be kept at reset value.

Bit 17 LSTFRM: Last frame LSB bit, sampled at frame capture complete event. The information is extracted from the frame data number, which can be delivered by the camera through the CSI2 interface.

Bit 16 LSTLINE: Last line LSB bit, sampled at frame capture complete event.

Bits 15:8 Reserved, must be kept at reset value.

Bit 7 OVRF: Overrun raw interrupt status

0: No data buffer overrun occurred

1: A data buffer overrun occurred and this frame data are corrupted.

This bit is cleared by writing 1 to the COVRF bit in DCMIPP_P1FCR.

Bit 6 STOVRF: Histogram statistics overrun interrupt status

0: No interrupt occurred

1: An interrupt occurred

Bit 5 STBCF: Histogram statistics bad configuration interrupt status

0: No interrupt occurred

1: An interrupt occurred

Bit 4 STFRAMEF: Histogram statistics frame capture interrupt status

0: No interrupt occurred

1: An interrupt occurred

Bit 3 Reserved, must be kept at reset value.

Bit 2 VSYNCF: VSYNC raw interrupt status

This bit is set when the VSYNC signal changes from the inactive state to the active state.

In the case of embedded synchronization, this bit is set only if the CAPTURE bit is set in DCMIPP_CR.

It is cleared by writing 1 to the CVSYNCF bit in DCMIPP_P1FCR.

Bit 1 FRAMEF: Frame capture completed raw interrupt status

0: no capture or ongoing capture

1: all data of a frame have been captured

This bit is set when all data of a frame or window have been captured.

In case of a cropped window, this bit is set at the end of line of the last line in the crop, even if the captured frame is empty (for example window cropped outside the frame).

This bit is cleared by writing 1 to the CFAMEF bit in DCMIPP_P1FCR.

Bit 0 LINEF: Multi-line capture completed raw interrupt status

This bit is set when one/more lines have been completed. The periodicity of LINEF event is configured by LINEMULT bits into DCMIPP_P1PPCR. When reaching end of frame, this event is triggered out to allow software action even if the LINEMULT value set is not a multiple of the total lines frame.

In the case of embedded synchronization, this bit is set only if the CAPTURE bit in DCMIPP_CR is set. It is cleared by writing 1 to the CLINEF bit in DCMIPP_P1FCR.

42.14.101 DCMIPP Pipe1 interrupt clear register (DCMIPP_P1FCR)

Address offset: 0x9FC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.COVRFCSTOVRFCSTBCFCSTFRAMEFRes.CVSYNCFCFRAMEFCLINEF
wwwwwww

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 COVRF: Overrun interrupt status clear

Writing 1 into this bit clears the OVRF bit in the DCMIPP_P1SR register.

Bit 6 CSTOVRF: Histogram statistics overrun interrupt clear

Writing 1 into this bit clears the STOVRF bit in the DCMIPP_P1SR register.

Bit 5 CSTBCF: Histogram statistics bad configuration interrupt clear

Writing 1 into this bit clears the STBCF bit in the DCMIPP_P1SR register.

Bit 4 CSTFRAMEF: Histogram statistics frame capture interrupt clear

Writing 1 into this bit clears the STFRAMEF bit in the DCMIPP_P1SR register.

Bit 3 Reserved, must be kept at reset value.

Bit 2 CVSYNCF: Vertical synchronization interrupt status clear

Writing 1 into this bit clears the VSYNCF bit in the DCMIPP_P1SR register.

Bit 1 CFRAMEF: Frame capture complete interrupt status clear

Writing 1 into this bit clears the FRAMEF bit in the DCMIPP_P1SR register.

Bit 0 CLINEF: Multi-line capture complete interrupt status clear

Writing 1 into this bit clears LINEF in the DCMIPP_P1SR register.

42.14.102 DCMIPP Pipe1 current flow selection configuration register (DCMIPP_P1CFSCR)

Address offset: 0xA04

Reset value: 0x0000 0000

31302928272625242322212019181716
PIPENFDTFENFDTF[5:0]Res.Res.Res.VC[1:0]PIPE DIFFDTMODE[1:0]
rrrrrrrrrrrrr
1514131211109876543210
Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
rrrrrrrrrrrr

42.14.103 DCMIPP Pipe1 current bad pixel removal register (DCMIPP_P1CBPRCR)

Address offset: 0xA24

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STRENGTH[2:0]ENABLE
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bits 3:1 STRENGTH[2:0]: Current strength (aggressiveness) of the bad pixel detection:

0x0: the filter is fairly tolerant: only a few pixels are declared bad, due to their high noise.

0x7: the filter is very aggressive: many pixels are declared bad, even if only slightly noisy.

Bit 0 ENABLE: Current status of enable bit

0: Bypass: bad pixel removal is not active, all pixels are transmitted through

1: Enable: if bad pixel are detected, they are replaced by corrected pixels.

(bad pixel detection must be enabled only for raw Bayer flows, as it would corrupt RGB flows)

42.14.104 DCMIPP Pipe1 current black level calibration control register (DCMIPP_P1CBLCCR)

Address offset: 0xA40

Reset value: 0x0000 0000

31302928272625242322212019181716
BLCR[7:0]BLCG[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
BLCB[7:0]Res.Res.Res.Res.Res.Res.Res.ENABLE
rrrrrrrrr

Bits 31:24 BLCR[7:0]: Current black level calibration - Red

Value that is subtracted from the red input components, whether it is on 8,10,12,14 bits.

Bits 23:16 BLCG[7:0]: Current black level calibration - Green

Value that is subtracted from the green input components, whether it is on 8,10,12,14 bits.

Bits 15:8 BLCB[7:0]: Current black level calibration - Blue

Value that is subtracted from the blue input components, whether it is on 8,10,12,14 bits.

Bits 7:1 Reserved, must be kept at reset value.

Bit 0 ENABLE: For current black level calibration

0: Bypass: black level calibration is not active, all pixels are transmitted non-modified.

1: Enable: the BLCR, G, B are subtracted.

42.14.105 DCMIPP Pipe1 current exposure control register 1 (DCMIPP_P1CEXCR1)

Address offset: 0xA44

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.SHFR[2:0]MULTR[7:0]Res.Res.Res.Res.
rrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
r

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 SHFR[2:0] : Current exposure shift - Red

0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7: exposure of reds is increased, respectively, by a factor 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x.

Bits 27:20 MULTR[7:0] : Current exposure multiplier - Red

Value that is multiplied for the red input components, whether it is on 8,10,12,14 bits.

Multiplying by 64 reduces the exposure (darkens the reds) by a factor 2x.

Multiplying by 128 does not modify the exposure (keeps the reds as-is).

Multiplying by 255 increases the exposure (lightens the reds) by a factor ~2x.

Bits 19:1 Reserved, must be kept at reset value.

Bit 0 ENABLE : for exposure control (multiplication and shift)

0: Bypass: exposure multiplier and shift are not applied.

1: Enable: the exposure multiplication and shift is applied.

42.14.106 DCMIPP Pipe1 current exposure control register 2 (DCMIPP_P1CEXCR2)

Address offset: 0xA48

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.SHFG[2:0]MULTG[7:0]Res.Res.Res.Res.
rrrrrrrrrrr
1514131211109876543210
Res.SHFB[2:0]MULTB[7:0]Res.Res.Res.Res.
rrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bits 30:28 SHFG[2:0] : Current exposure shift - Green

0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7: exposure of greens is increased, respectively, by a factor 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x.

Bits 27:20 MULTG[7:0] : Current exposure multiplier - Green

Value that is multiplied for the green input components, whether it is on 8,10,12,14 bits.

Multiplying by 64 reduces the exposure (darkens the greens) by a factor 2x.

Multiplying by 128 does not modify the exposure (keeps the greens as-is).

Multiplying by 255 increases the exposure (lightens the greens) by a factor ~2x.

Bits 19:15 Reserved, must be kept at reset value.

Bits 14:12 SHFB[2:0]: Current exposure shift - Blue
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7: exposure of blues is increased, respectively, by a factor 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x.

Bits 11:4 MULTB[7:0]: Current exposure multiplier - Blue
Value that is multiplied for the blue input components, whether it is on 8,10,12,14 bits.
Multiplying by 64 reduces the exposure (darkens the blues) by a factor 2x.
Multiplying by 128 does not modify the exposure (keeps the blues as-is).
Multiplying by 255 increases the exposure (lightens the blues) by a factor ~2x.

Bits 3:0 Reserved, must be kept at reset value.

42.14.107 DCMIPP Pipe1 current statistics 1 control register (DCMIPP_P1CST1CR)

Address offset: 0xA50

Reset value: 0x0000 0000

31302928272625242322212019181716
ACCU[23:8]
rrrrrrrrrrrrrrrr
1514131211109876543210
ACCU[7:0]MODESRC[2:0]BINS[1:0]Res.ENABLE
rrrrrrrrrrrrrrr

Bits 31:8 ACCU[23:0]: Current accumulation result, divided by 256.

Bit 7 MODE: Current statistics mode

0: Average: accumulates the 8-bit component value of the considered pixel components.
It is typically used to extract the average value of R, G, B, or luminance across the picture, and to drive the exposure control and the white balance.
1: Bins: accumulates 256 for each considered pixel component fitting a bin dynamic.
It is typically used to extract how many pixel components fall into the various dynamic bins.
It is usually used to drive the contrast enhancement.

Bits 6:4 SRC[2:0]: Current source of statistics

0x0, 0x1, 0x2, 0x3: components are sampled before the black level calibration and exposure, and sample, respectively, the red, green, blue components, and luminance (computed as R/4+G/2+B/4).

0x4, 0x5, 0x6, 0x7: components are sampled after the black level calibration and exposure, and sample, respectively, red, green, blue and luminance.

Bits 3:2 BINS[1:0]: Current bin definition

Condition: MODE = Bins

0x0: LowerBins: Accu0 (1, 2) is incremented of 256 if Component <4 (<8, <16)

0x1: LowMid Bins: Accu0 (1, 2) is incremented of 256 if Component <32 (<64, <128)

0x2: UpMid Bins: Accu0 (1, 2) is incremented of 256 if Component >127 (>191, >224)

0x3: UpBins: Accu0 (1, 2) is incremented of 256 if Component >239 (>247, >251)

Condition: MODE = Average

0x0: AllPixels: Accu is incremented of Component, if 0 ≤ Component < 256

0x1: NoExt16: Accu is incremented of Component, if 16 ≤ Component < 240

0x2: NoExt32: Accu is incremented of Component, if 32 ≤ Component < 224

0x3: NoExt64: Accu is incremented of Component, if 64 ≤ Component < 192

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE: Current enable bit value
0: Disabled: statistics are not accumulated
1: Enable: statistics are accumulated

42.14.108 DCMIPP Pipe1 current statistics 2 control register (DCMIPP_P1CST2CR)

Address offset: 0xA54

Reset value: 0x0000 0000

31302928272625242322212019181716
ACCU[23:8]
rrrrrrrrrrrrrrrr
1514131211109876543210
ACCU[7:0]MODESRC[2:0]BINS[1:0]Res.ENABLE
rrrrrrrrrrrrrrr

Bits 31:8 ACCU[23:0]: Accumulation result, divided by 256.

Bit 7 MODE: Statistics mode

0: Average: accumulates the 8-bit component value of the considered pixel components.
It is typically used to extract the average value of R, G, B, or luminance across the picture, and to drive the exposure control and the white balance.
1: Bins: accumulates 256 for each considered pixel component fitting a bin dynamic.
It is typically used to extract how many pixel components fall into the various dynamic bins.
It is usually used to drive the contrast enhancement.

Bits 6:4 SRC[2:0]: Statistics source

0x0, 0x1, 0x2, 0x3: components are sampled before the black level calibration and exposure, and sample, respectively, the red, green, blue components, and luminance (computed as R/4+G/2+B/4).
0x4, 0x5, 0x6, 0x7: components are sampled after the black level calibration and exposure, and sample, respectively, the red, green, blue and luminance.

Bits 3:2 BINS[1:0]: Bin definition

Condition: MODE = Bins
0x0: LowerBins: Accu0 (1, 2) is incremented of 256 if Component <4 (<8, <16)
0x1: LowMid Bins: Accu0 (1, 2) is incremented of 256 if Component <32 (<64, <128)
0x2: UpMid Bins: Accu0 (1, 2) is incremented of 256 if Component >127 (>191, >224)
0x3: UpBins: Accu0 (1, 2) is incremented of 256 if Component >239 (>247, >251)
Condition: MODE = Average
0x0: AllPixels: Accu is incremented of Component, if 0 ≤ Component < 256
0x1: NoExt16: Accu is incremented of Component, if 16 ≤ Component < 240
0x2: NoExt32: Accu is incremented of Component, if 32 ≤ Component < 224
0x3: NoExt64: Accu is incremented of Component, if 64 ≤ Component < 192

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE:
0: Disabled: statistics are not accumulated
1: Enable: statistics are accumulated

42.14.109 DCMIPP Pipe1 current statistics 3 control register (DCMIPP_P1CST3CR)

Address offset: 0xA58

Reset value: 0x0000 0000

31302928272625242322212019181716
ACCU[23:8]
rrrrrrrrrrrrrrrr
1514131211109876543210
ACCU[7:0]MODESRC[2:0]BINS[1:0]Res.ENABLE
rrrrrrrrrrrrrrr

Bits 31:8 ACCU[23:0]: Accumulation result, divided by 256.

Bit 7 MODE: Statistics mode

0: Average: accumulates the 8-bit component value of the considered pixel components.

It is typically used to extract the average value of R, G, B, or luminance across the picture, and to drive the exposure control and the white balance.

1: Bins: accumulates 256 for each considered pixel component fitting a bin dynamic.

It is typically used to extract how many pixel components fall into the various dynamic bins. It is usually used to drive the contrast enhancement.

Bits 6:4 SRC[2:0]: Statistics source

0x0, 0x1, 0x2, 0x3: components are sampled before the black level calibration and exposure, and sample, respectively, the red, green, blue components, and luminance (computed as R/4+G/2+B/4).

0x4, 0x5, 0x6, 0x7: components are sampled after the black level calibration and exposure, and sample, respectively, red, green, blue and luminance.

Bits 3:2 BINS[1:0]: Current bin definition

Condition: MODE = Bins

0x0: LowerBins: Accu0 (1, 2) is incremented of 256 if Component <4 (<8, <16)

0x1: LowMid Bins: Accu0 (1, 2) is incremented of 256 if Component <32 (<64, <128)

0x2: UpMid Bins: Accu0 (1, 2) is incremented of 256 if Component >127 (>191, >224)

0x3: UpBins: Accu0 (1, 2) is incremented of 256 if Component >239 (>247, >251)

Condition: MODE = Average

0x0: AllPixels: Accu is incremented of Component, if 0 ≤ Component < 256

0x1: NoExt16: Accu is incremented of Component, if 16 ≤ Component < 240

0x2: NoExt32: Accu is incremented of Component, if 32 ≤ Component < 224

0x3: NoExt64: Accu is incremented of Component, if 64 ≤ Component < 192

Bit 1 Reserved, must be kept at reset value.

Bit 0 ENABLE:

0: Disabled: statistics are not accumulated

1: Enable: statistics are accumulated

42.14.110 DCMIPP Pipe1 current statistics window start register (DCMIPP_P1CSTSTR)

Address offset: 0xA5C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Current vertical start, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Current horizontal start, from 0 to 4094 pixels wide

42.14.111 DCMIPP Pipe1 current statistics window size register (DCMIPP_P1CSTSZR)

Address offset: 0xA60

Reset value: 0x0000 0000

31302928272625242322212019181716
CROP ENRes.Res.Res.VSIZE[11:0]
rrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rrrrrrrrrrrr

Bit 31 CROPEN: Current CROPEN bit value

0: Bypass, all pixels are used to compute the statistics.

1: Enable, only the rectangle defined by VSTART, HSTART, VSIZE, HSIZE, are used for statistics.

Bits 30:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Current vertical size, from 0 to 4094 pixels high

If the value is maintained at 0 when enabling the crop by means of the CROPEN bit, the value is forced internally at 0xFFE, which is the maximum value.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Current horizontal size, from 0 to 4094 pixels wide

If the value is maintained at 0 when enabling the crop by means of the CROPEN bit, the value is forced internally at 0xFFE, which is the maximum value.

42.14.112 DCMIPP Pipe1 current ColorConv configuration register
(DCMIPP_P1CCCCR)

Address offset: 0xA80

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAMPTYPEENABLE
rrr

Bits 31:3 Reserved, must be kept at reset value.

Bit 2 CLAMP: Clamp the output samples

This bit indicates the current value applied.

0: Not activated (clamped to [0;255] by default)

1: Activated, depending on TYPE

Bit 1 TYPE: Output samples type used while CLAMP is activated

This bit indicates the current value applied

0: clamped to [16;235] for Y and to [16;240] for U and V

1: clamped to [16;235] for R, G and B

Bit 0 ENABLE: Current value applied

0: ColorConv is bypassed

1: ColorConv is enabled

42.14.113 DCMIPP Pipe1 current ColorConv red coefficient register 1
(DCMIPP_P1CCCRR1)

Address offset: 0xA84

Reset value: 0x0000 0000

Coefficients of the ColorConv, in signed 2.8 format (1.0 is coded by 0x100):

\[\text{int\_value} = \text{int}(\text{float\_value} * (1 \ll 8) + 0.5)\]

31302928272625242322212019181716
Res.Res.Res.Res.Res.RG[10:0]
rrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.RR[10:0]
rrrrrrrrrrr

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 RG[10:0]: Current coefficient row 1 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 RR[10:0]: Current coefficient row 1 column 1 of the matrix

42.14.114 DCMIPP Pipe1 current ColorConv red coefficient register 2
(DCMIPP_P1CCCRR2)

Address offset: 0xA88

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.RA[9:0]
rrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.RB[10:0]
rrrrrrrrrrr

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 RA[9:0]: Current coefficient row 1 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 RB[10:0]: Current coefficient row 1 column 3 of the matrix

42.14.115 DCMIPP Pipe1 current ColorConv green coefficient register 1
(DCMIPP_P1CCGR1)

Address offset: 0xA8C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.GG[10:0]
rrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.GR[10:0]
rrrrrrrrrrr

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 GG[10:0]: Current coefficient row 2 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 GR[10:0]: Current coefficient row 2 column 1 of the matrix

42.14.116 DCMIPP Pipe1 current ColorConv green coefficient register 2
(DCMIPP_P1CCCGR2)

Address offset: 0xA90

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.GA[9:0]
rrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.GB[10:0]
rrrrrrrrrrr

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 GA[9:0]: Current coefficient row 2 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 GB[10:0]: Current coefficient row 2 column 3 of the matrix

42.14.117 DCMIPP Pipex current ColorConv blue coefficient register 1
(DCMIPP_P1CCCBR1)

Address offset: 0xA94

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.BG[10:0]
rrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.BR[10:0]
rrrrrrrrrrr

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 BG[10:0]: Current coefficient row 3 column 2 of the matrix

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 BR[10:0]: Current coefficient row 3 column 1 of the matrix

42.14.118 DCMIPP Pipe1 current ColorConv blue coefficient register 2
(DCMIPP_P1CCCBR2)

Address offset: 0xA98

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.BA[9:0]
rrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.BB[10:0]
rrrrrrrrrrr

Bits 31:26 Reserved, must be kept at reset value.

Bits 25:16 BA[9:0]: Current coefficient row 3 of the added column (signed integer value)

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 BB[10:0]: Current coefficient row 3 column 3 of the matrix

42.14.119 DCMIPP Pipe1 current contrast control register 1
(DCMIPP_P1CCTCR1)

Address offset: 0xAA0

Reset value: 0x0000 2000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.LUM0[5:0]Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
rrrrrrr

Bits 31:15 Reserved, must be kept at reset value.

Bits 14:9 LUM0[5:0]: Current luminance increase for input luminance of 0 (increase is idle with LUMx = 16)

Bits 8:1 Reserved, must be kept at reset value.

Bit 0 ENABLE: Current ENABLE bit value

0: Bypass, pixels are forwarded idle.

1: Enable, contrast enhancement is applied on pixels.

42.14.120 DCMIPP Pipe1 current contrast control register 2
(DCMIPP_P1CCTCR2)

Address offset: 0xAA4

Reset value: 0x2020 2020

31302928272625242322212019181716
Res.LUM1[5:0]Res.Res.LUM2[5:0]Res.
rrrrrrrrrrrr
1514131211109876543210
Res.LUM3[5:0]Res.Res.LUM4[5:0]Res.
rrrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bits 30:25 LUM1[5:0] : Current luminance increase for input luminance of 32 (increase is idle with LUMx = 16)

Bits 24:23 Reserved, must be kept at reset value.

Bits 22:17 LUM2[5:0] : Current luminance increase for input luminance of 64 (increase is idle with LUMx = 16)

Bits 16:15 Reserved, must be kept at reset value.

Bits 14:9 LUM3[5:0] : Current luminance increase for input luminance of 96 (increase is idle with LUMx = 16)

Bits 8:7 Reserved, must be kept at reset value.

Bits 6:1 LUM4[5:0] : Current luminance increase for input luminance of 128 (increase is idle with LUMx = 16)

Bit 0 Reserved, must be kept at reset value.

42.14.121 DCMIPP Pipe1 current contrast control register 3
(DCMIPP_P1CCTCR3)

Address offset: 0xAA8

Reset value: 0x2020 2020

31302928272625242322212019181716
Res.LUM5[5:0]Res.Res.LUM6[5:0]Res.
rrrrrrrrrrrr
1514131211109876543210
Res.LUM7[5:0]Res.Res.LUM8[5:0]Res.
rrrrrrrrrrrr

Bit 31 Reserved, must be kept at reset value.

Bits 30:25 LUM5[5:0] : Luminance increase for input luminance of 160 (increase is idle with LUMx = 16)

Bits 24:23 Reserved, must be kept at reset value.

Bits 22:17 LUM6[5:0] : Luminance increase for input luminance of 192 (increase is idle with LUMx = 16)

Bits 16:15 Reserved, must be kept at reset value.

Bits 14:9 LUM7[5:0]: Luminance increase for input luminance of 224 (increase is idle with LUMx = 16)

Bits 8:7 Reserved, must be kept at reset value.

Bits 6:1 LUM8[5:0]: Luminance increase for input luminance of 256 (increase is idle with LUMx = 16)

Bit 0 Reserved, must be kept at reset value.

42.14.122 DCMIPP Pipe1 current histogram configuration register (DCMIPP_P1CHSCR)

Address offset: 0xAB0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.BIN[1:0]DYN[1:0]Res.COMP[2:0]Res.VDEC[2:0]
rrrrrrrrrr
1514131211109876543210
Res.HDEC[2:0]VREG[3:0]HREG[3:0]SRC[2:0]EN
rrrrrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:26 BIN[1:0]: Bin amount per histogram. All bins have the same width.

Bits 25:24 DYN[1:0]: Dynamic of the pixel value, when extracting the histogram

The input pixel value is assumed mapped on 14 bits, 8 are extracted from them to select the bin to update. It is possible to map non-msb bits, to focus the histogram dynamic on the darker pixels. When non-msb bits are extracted to select a bin, if the pixel value is larger than the highest bin, then the highest bin is incremented. In other words, the highest bin collects pixel values higher than the selected dynamic.

Bit 23 Reserved, must be kept at reset value.

Bits 22:20 COMP[2:0]: Component selected for the histograms:

Note: Gr means the green component among a green-red raw Bayer line, Gb means the green component among a green-blue raw Bayer line. L means the Luminance, extracted as (R/4 + G/2 + B/4).

ST logo
ST logo

42.14.123 DCMIPP Pipe1 current histogram window start register
(DCMIPP_P1CHSSTR)

Address offset: 0xAB4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Vertical start, from 0 to 4094 pixels high.

The unit is the decimated period of pixel. Note that a decimation by 2x in raw Bayer counts two pixels every four, and VSIZE counts every four pixels.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Horizontal start, from 0 to 4094 pixels high.

The unit is the decimated period of pixel. Note that a decimation by 2x in raw Bayer counts two pixels every four, and HSIZE counts every four pixels.

42.14.124 DCMIPP Pipe1 current histogram window size register
(DCMIPP_P1CHSSZR)

Address offset: 0xAB8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSIZE[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Vertical size of each histogram region, from 0 to 4094 pixels high

The unit is the decimated period of pixel. Note that a decimation by 2x in raw Bayer counts two pixels every four, and VSIZE counts every four pixels.

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Horizontal size of each histogram region, from 0 to 4094 pixels high

The unit is the decimated period of pixel. Note that a decimation by 2x in raw Bayer counts two pixels every four, and HSIZE counts every four pixels.

42.14.125 DCMIPP Pipe1 current histogram memory address register 1 (DCMIPP_P1CHSMAR1)

Address offset: 0xABC

Reset value: 0x0000 0000

31302928272625242322212019181716
MA[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
MA[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 MA[31:0]: Memory address

Base address of memory area, to whom histogram data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.126 DCMIPP Pipex current flow control configuration register (DCMIPP_PxCFCTCR)

Address offset: 0xB00 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPT REQCPT MODEFRATE[1:0]
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CPTREQ: Capture requested

0: Capture not requested for next frame.

1: Capture requested for next frame.

When PIPEN = 1, and when the CPTREQ is set to 1 the pipe waits for the first VSync, and automatically starts a capture and sets CPTACT= 1 to mention it.

In Snapshot mode, the CPTREQ bit is automatically cleared at the start of the first frame received.

In continuous grab mode, the capture remains active and CPTREQ = 1, until the software clears CPTREQ: the capture stops and CPTACT is reset at the end of the ongoing frame.

The DCMIPP and pipe configuration registers must be correctly programmed before enabling this bit.

Bit 2 CPTMODE: Capture mode

0: Continuous grab mode - Received data are transferred into the destination memory through the AXI master.

1: Snapshot mode (single frame) - Once activated, the interface waits for the start of frame and then transfers a single frame through the AXI master. At the end of the frame, the CPTACT bit is automatically reset.

Bits 1:0 FRATE[1:0]: Frame capture rate control

These bits define the frequency of frame capture. They are meaningful only in Continuous grab mode, ignored in Snapshot mode.

00: all frames are captured

01: one out of two frames captured (50% bandwidth reduction)

10: one out of four frames captured (75% bandwidth reduction)

11: one out of eight frames captured (87% bandwidth reduction)

42.14.127 DCMIPP Pipex current crop window start register (DCMIPP_PxCCRSTR)

Address offset: 0xB04 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSTART[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSTART[11:0]
rrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSTART[11:0]: Current vertical start, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSTART[11:0]: Current horizontal start, from 0 to 4094 pixels wide

42.14.128 DCMIPP Pipex current crop window size register (DCMIPP_PxCCRSZR)

Address offset: 0xB08 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
ENABLERes.Res.Res.VSIZE[11:0]
rrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rrrrrrrrrrrr

Bit 31 ENABLE: Current ENABLE bit value.

0: Bypass, all pixels are transmitted through (no need to set any start and size values)

1: Enable, only the rectangle defined by VSIZE, HSIZE, VSTART, HSTART is transmitted.

Bits 30:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Current vertical size, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Current horizontal size, from 0 to 4094 pixels wide

42.14.129 DCMIPP Pipex current decimation register (DCMIPP_PxCDCCR)

This register controls decimation, prior to downsize (to complement it).

Address offset: 0xB0C+0x400*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VDEC[1:0]HDEC[1:0]ENABLE
rrrrr

Bits 31:5 Reserved, must be kept at reset value.

Bits 4:3 VDEC[1:0]: Vertical decimation ratio

0x0: All pixels are transmitted, no vertical decimation

0x1: one line out of two transmitted

0x2: one line out of four transmitted

0x3: one line out of eight transmitted

Bits 2:1 HDEC[1:0]: Horizontal decimation ratio

0x0: All pixels are transmitted, no horizontal decimation

0x1: one line out of two transmitted

0x2: one line out of four transmitted

0x3: one line out of eight transmitted

Bit 0 ENABLE:

0: Bypass: decimation is not active, all pixels are transmitted

1: Enable: one pixel every 1, 2, 4 or 8, in H and V is transmitted, following HDEC and VDEC

42.14.130 DCMIPP Pipex current downsize configuration register (DCMIPP_PxCDSCR)

Address offset: 0xB10+0x400*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

The division factor is an unsigned integer based on the source/destination ratio:

\[\text{div} = \max(\text{int}(024 / (\text{source}/\text{destination})), 1023)\]

31302928272625242322212019181716
ENABLERes.Res.Res.Res.Res.VDIV[9:0]
rrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.HDIV[9:0]
rrrrrrrrrr

Bit 31 ENABLE: Current value of bit ENABLE

0: Down scaler is bypassed

1: Down scaler is enabled

Bits 30:26 Reserved, must be kept at reset value.

Bits 25:16 VDIV[9:0]: Current vertical division factor, from 128 (8x) to 1023 (1x)

Bits 15:10 Reserved, must be kept at reset value.

Bits 9:0 HDIV[9:0]: Current horizontal division factor, from 128 (8x) to 1023 (1x)

42.14.131 DCMIPP Pipex current downsize ratio register (DCMIPP_PxCDSRTIOR)

Address offset: 0xB14 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

The down scale ratio is expressed in unsigned 3.13 format:

\[\text{ratio} = \max(\text{int}((\text{source} / \text{destination}) * 8192), 8 * 8192 - 1)\]

31302928272625242322212019181716
VRATIO[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
HRATIO[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 VRATIO[15:0]: Current vertical ratio, from 8192 (1x) to 65535 (8x)

Bits 15:0 HRATIO[15:0]: Current horizontal ratio, from 8192 (1x) to 65535 (8x)

42.14.132 DCMIPP Pipex current downsize destination size register (DCMIPP_PxCDSSZR)

Address offset: 0xB18 + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.VSIZE[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.HSIZE[11:0]
rrrrrrrrrrrr

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 VSIZE[11:0]: Current vertical size, from 0 to 4094 pixels high

Bits 15:12 Reserved, must be kept at reset value.

Bits 11:0 HSIZE[11:0]: Current horizontal size, from 0 to 4094 pixels wide

42.14.133 DCMIPP Pipe1 current pixel packer configuration register (DCMIPP_P1CPPCR)

Address offset: 0xBC0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LINEMULT[2:0]Res.Res.Res.Res.Res.Res.Res.Res.SWAP
RB
FORMAT[3:0]
rrrrrrrr

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 Reserved, must be kept at reset value.

Bits 15:13 LINEMULT[2:0] : Amount of capture completed lines for LINE Event and Interrupt

Bits 12:5 Reserved, must be kept at reset value.

Bit 4 SWAPRB : Swaps R-vs-B components if RGB, and U-vs-V components if YUVBits 3:0 FORMAT[3:0] : Memory format

42.14.134 DCMIPP Pipe1 current pixel packer Memory0 address register 1 (DCMIPP_P1CPPM0AR1)

Address offset: 0xBC4

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M0A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of current memory area 0, to whom data are written.

It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.135 DCMIPP Pipex current pixel packer Memory0 pitch register (DCMIPP_PxCPPM0PR)

Address offset: 0xBCC + 0x400 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.PITCH[14:0]
rrrrrrrrrrrrrrr

Bits 31:15 Reserved, must be kept at reset value.

Bits 14:0 PITCH[14:0]: Current number of bytes between the address of two consecutive lines.

It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0. It ranges to 32 Kbytes, to allow a double-width buffer, containing a 4-kpixel wide 32 bpp picture.

42.14.136 DCMIPP Pipex current pixel packer Memory1 address register 1 (DCMIPP_PxCPPM1AR1)

Address offset: 0xBD4 + 0x400 * (x - 1), (x = 1 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
M1A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M1A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M1A[31:0]: Memory1 address

Base address of current memory area 1, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.137 DCMIPP Pipex current pixel packer Memory1 pitch register (DCMIPP_PxCPPM1PR)

Address offset: 0xBDC + 0x400 * (x - 1), (x = 1 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.PITCH[14:0]
rrrrrrrrrrrrrrr

Bits 31:15 Reserved, must be kept at reset value.

Bits 14:0 PITCH[14:0]: Current number of bytes between the address of two consecutive lines

It is assumed to be a multiple of 16, hence its bits [3:0] are always at 0x0. It ranges to 32 Kbytes, to allow a double-width buffer, containing a 4-kpixel wide 32 bpp picture.

42.14.138 DCMIPP Pipex current pixel packer Memory2 address register 1 (DCMIPP_PxCPPM2AR1)

Address offset: 0xBE4 + 0x400 * (x - 1), (x = 1 to 1)

Reset value: 0x0000 0000

31302928272625242322212019181716
M2A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M2A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M2A[31:0]: Memory 2 address

Base address of current memory area 2 where data are written. It is assumed to be a multiple of 16, hence its bits [3:0] are always at 0x0.

42.14.139 DCMIPP Pipe2 flow selection configuration register (DCMIPP_P2FSCR)

Address offset: 0xC04

Reset value: 0x0000 0000

RM0506column_2column_3column_4column_5column_6
31 30 2928272625 24 23 22 21 20 19 18 17 16
PIPEN FDTFENFDTF[5:0]Res. Res. Res. VC[1:0] Res. Res. Res.
rw rw rwrwrwrwrw rw rw rw
15 14 131211109 8 7 6 5 4 3 2 1 0
Res. Res. Res.Res.Res.Res.Res. Res. Res. Res. DTIDA[5:0]
rw rw rw rw rw rw
Bit 31PIPEN: Activation of PipeN
Bit 30FDTFEN: Force data type format enable into DTIDx
Bits 29:24FDTF[5:0]: Force data type format
Bits 20:19VC[1:0]: Flow selection mode
Bits 5:0DTIDA[5:0]: Data type ID
RM0506 Rev 2 2329/ 4831

Bit 31 PIPEN: Activation of PipeN

0: PipeN disabled

1: PipeN enabled, can start capturing with CPTMODE, CPTREQ, CPTACK

Bit 30 FDTFEN: Force data type format enable

0: Disable force data type format. The data type format used by the pipe is the one defined into DTIDx

1: Enable force data type format. When the data type DTIDA is detected by the pipe, the real pixel format considered by the pipe is the one set into the FDTF[5:0] bit field instead of the physical one received by the CSI2 host.

This bit has no meaning if PIPEDIFF = 0 in the DCMIPP_P1FSCR register.

Bits 29:24 FDTF[5:0]: Force data type format

This data type overwrites the one received by the CSI2 Host by specifying the pixel format to consider. The value must follow the CSI2 data type format definition in the CSI2 standard. This bit field has no meaning if the FDTFEN bit is cleared.

These bits have no meaning if PIPEDIFF = 0 in the DCMIPP_P1FSCR register.

Bits 23:21 Reserved, must be kept at reset value.

Bits 20:19 VC[1:0]: Flow selection mode

Virtual channel ID of the CSI flow to select for further processing on the pipe.

These bits have no meaning if PIPEDIFF = 0 into DCMIPP_P1FSCR, hence the pipe takes the value VC[1:0] configured into the DMCIPP_P1FSCR register.

Bits 18:6 Reserved, must be kept at reset value.

Bits 5:0 DTIDA[5:0]: Data type ID

Data type ID of the CSI flow to select.

These bits have no meaning if PIPEDIFF = 0 into DCMIPP_P1FSCR, hence the pipe takes the value of VC and DTIDA[5:0] / DTIDB[5:0] configured into the DMCIPP_P1FSCR register.

42.14.140 DCMIPP Pipe2 pixel packer configuration register (DCMIPP_P2PPCR)

Address offset: 0xDC0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LINEMULT[2:0]Res.Res.Res.Res.Res.Res.Res.Res.SWAP
RB
FORMAT[3:0]
rwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:13 LINEMULT[2:0]: Amount of capture completed lines for LINE event and interrupt

Bits 12:5 Reserved, must be kept at reset value.

Bit 4 SWAPRB: Swaps R-vs-B components if RGB, and if YUV, swaps U-vs-V components

Bits 3:0 FORMAT[3:0]: Memory format (only coplanar formats are supported in Pipe2)

Other formats are reserved and not supported.

ST logo
ST logo

42.14.141 DCMIPP Pipe2 pixel packer Memory0 address register 1 (DCMIPP_P2PPM0AR1)

Address offset: 0xDC4

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
M0A[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.142 DCMIPP Pipe2 interrupt enable register (DCMIPP_P2IER)

Address offset: 0xDF4

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVR
IE
Res.Res.Res.Res.VSYNC
IE
FRAME
IE
LINE
IE
rwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 OVRIE: Overrun interrupt enable

0: No interrupt generation

1: An interrupt is generated if the AXI master is unable to transfer the last data before new data (32-bit) are received

Bits 6:3 Reserved, must be kept at reset value.

Bit 2 VSYNCEIE: VSYNC interrupt enable

0: No interrupt generation

1: An interrupt is generated on each VSYNC (captured or not)

Bit 1 FRAMEIE: Frame capture completed interrupt enable

0: No interrupt generation

1: An interrupt is generated after the full capture of a cropped frame

Bit 0 LINEIE: Multi-line capture completed interrupt enable

0: No interrupt generation when the line is received

1: An interrupt is generated after the full capture of a group of lines (or last line reached)

42.14.143 DCMIPP Pipe2 status register (DCMIPP_P2SR)

Address offset: 0xDF8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.CPT
ACT
Res.Res.Res.Res.Res.LST
FRM
LST
LINE
rrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVR
F
Res.Res.Res.Res.VSYNCFFRAME
F
LINE
F
rrrr

Bits 31:24 Reserved, must be kept at reset value.

Bit 23 CPTACT : Capture immediate status

0: Capture currently inactive

1: Capture currently active

This bit is automatically reset at the end of frame capture complete event (after all the data of that frame have been captured, usually before the next VSync).

Bits 22:20 Reserved, must be kept at reset value.

Bits 19:18 Reserved, must be kept at reset value.

Bit 17 LSTFRM : Last frame LSB bit, sampled at frame capture complete event.

The information is extracted from the frame data number which can be delivered by the camera through the CSI2 interface.

Bit 16 LSTLINE : Last line LSB bit, sampled at frame capture complete event.

Bits 15:8 Reserved, must be kept at reset value.

Bit 7 OVRF : Overrun raw interrupt status

0: No data buffer overrun occurred

1: A data buffer overrun occurred and data of this frame are corrupted

This bit is cleared by writing 1 to the COVRF bit in the DCMIPP_P2FCR register.

Bits 6:3 Reserved, must be kept at reset value.

Bit 2 VSYNCF : VSYNC raw interrupt status

This bit is set when the VSYNC signal changes from the inactive state to the active state. In the case of embedded synchronization, this bit is set only if the CAPTURE bit is set in the DCMIPP_CR register. It is cleared by writing 1 to the CVSYNCF bit in the DCMIPP_P2FCR register.

Bit 1 FRAMEF : Frame capture completed raw interrupt status

0: No capture or ongoing capture

1: All data of a frame have been captured

This bit is set when all data of a frame or window have been captured.

In case of a cropped window, this bit is set at the end of line of the last line in the crop. It is set even if the captured frame is empty (for example window cropped outside the frame).

This bit is cleared by writing 1 to the CFRAMEF bit in DCMIPP_P2FCR.

Bit 0 LINEF: Multi-line capture completed raw interrupt status

This bit is set when one/more lines have been completed.

The periodicity of LINEF event is configured by LINEMULT bits into DCMIPP_P1PPCR register. When reaching end of frame, this event is triggered out to allow software action even if the LINEMULT value set is not a multiple of the total lines frame.

In the case of embedded synchronization, this bit is set only if the CAPTURE bit in the DCMIPP_CR register is set.

It is cleared by writing 1 to the CLINEF bit in the DCMIPP_P2FCR register.

42.14.144 DCMIPP Pipe2 interrupt clear register (DCMIPP_P2FCR)

Address offset: 0xDFC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.C
OVRF
Res.Res.Res.Res.C
VSYNC
F
C
FRAME
F
C
LINEF
wwww

Bits 31:8 Reserved, must be kept at reset value.

Bit 7 COVRF: Overrun interrupt status clear

Writing 1 into this bit clears the OVRF bit in the DCMIPP_P2SR register.

Bits 6:3 Reserved, must be kept at reset value.

Bit 2 CVSYNCF: Vertical synchronization interrupt status clear

Writing 1 into this bit clears the VSYNCF bit in the DCMIPP_P2SR register.

Bit 1 CFRAMEF: Frame capture complete interrupt status clear

Writing 1 into this bit clears the FRAMEF bit in the DCMIPP_P2SR register.

Bit 0 CLINEF: Multi-line capture complete interrupt status clear

Writing 1 into this bit clears LINEF in the DCMIPP_P2SR register.

42.14.145 DCMIPP Pipe2 current flow selection configuration register (DCMIPP_P2CFSCR)

Address offset: 0xE04

Reset value: 0x0000 0000

31302928272625242322212019181716
PIPENFDTFENFDTF[5:0]Res.Res.Res.VC[1:0]Res.Res.Res.
rrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DTIDA[5:0]
rrrrrr

42.14.146 DCMIPP Pipe2 current pixel packer configuration register (DCMIPP_P2CPPCR)

Address offset: 0xFC0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
LINEMULT[2:0]Res.Res.Res.Res.Res.Res.Res.Res.SWAP RBFORMAT[3:0]
rrrrrrrr

Bits 31:17 Reserved, must be kept at reset value.

Bit 16 Reserved, must be kept at reset value.

ST logo
ST logo

Bits 15:13 LINEMULT[2:0]: Amount of capture completed lines for LINE event and interrupt

Bits 12:5 Reserved, must be kept at reset value.

Bit 4 SWAPRB: Swaps R-vs-B components if RGB, and if YUV, swaps U-vs-V components

Bits 3:0 FORMAT[3:0]: Memory format (only coplanar formats are supported in Pipe2)

42.14.147 DCMIPP Pipe2 current pixel packer Memory0 address register 1 (DCMIPP_P2CPPM0AR1)

Address offset: 0xFC4

Reset value: 0x0000 0000

31302928272625242322212019181716
M0A[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
M0A[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 M0A[31:0]: Memory0 address

Base address of current memory area 0, to whom data are written. It is assumed to be a multiple of 16, hence its bits 3:0 are always at 0x0.

42.14.148 DCMIPP hardware configuration register 3 (DCMIPP_HWCFGR3)

Address offset: 0xFE8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:0 Reserved, must be kept at reset value.

42.14.149 DCMIPP hardware configuration register 2 (DCMIPP_HWCFGR2)

Address offset: 0xFEC

Reset value: 0x1103 0000

31302928272625242322212019181716
Res.Res.Res.STVRes.Res.Res.TPGRes.Res.Res.MCURes.Res.DEC2DEC1
rrrrr
1514131211109876543210
Res.Res.Res.ADD
MOD
Res.Res.Res.PROC
CLK
Res.Res.Res.DBMFTRes.VPFT[2:0]
rrrrrr

Bits 31:29 Reserved, must be kept at reset value.

Bit 28 STV: Statistic version

Bits 27:25 Reserved, must be kept at reset value.

Bit 24 TPG: Test pattern generator

Bits 23:21 Reserved, must be kept at reset value.

Bit 20 MCU: Macroblock unit as pixel format

Bits 19:18 Reserved, must be kept at reset value.

Bit 17 DEC2: Decimation on Pipe2 before downsize

Bit 16 DEC1: Decimation on Pipe1 before downsize

Bits 15:13 Reserved, must be kept at reset value.

Bit 12 ADDMOD: Address modulo computation to access a small buffer in streaming featured
0: Address modulo is not implemented
1: Address modulo is implemented

Bits 11:9 Reserved, must be kept at reset value.

Bit 8 PROCCLK: Processing clock linked to AXI clock featured
0: Independent processing clock not connected to AXI
1: Processing clock is directly the AXI

Bits 7:5 Reserved, must be kept at reset value.

Bit 4 DBMFT: Double buffer mode featured

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 VPFT[2:0]: Virtual pipe function

42.14.150 DCMIPP hardware configuration register 1 (DCMIPP_HWCFGR1)

Address offset: 0xFF0

Reset value: 0x0031 3131

31302928272625242322212019181716
ROI2NB[3:0]ROI1NB[3:0]Res.Res.PLANARFT[1:0]Res.Res.Res.RB2 RGB
rrrrrrrrrrr
1514131211109876543210
Res.Res.DSP2 FTDSP1 FTRes.Res.Res.IPPLUG CFGRes.Res.PIPENB[1:0]Res.Res.Res.CSIFT
rrrrrr

Bits 31:28 ROI2NB[3:0]: Number of ROIs for Pipe2

Bits 27:24 ROI1NB[3:0]: Number of ROIs for Pipe1

Bits 23:22 Reserved, must be kept at reset value.

Bits 21:20 PLANARFT[1:0]: Buffer features for Pipe1
00: Coplanar
01: Semiplanar
10: Reserved
11: Full planar (one buffer per component)

Bits 19:17 Reserved, must be kept at reset value.

Bit 16 RB2RGB: Raw Bayer to RGB feature (demosaicer)

Bits 15:14 Reserved, must be kept at reset value.

Bit 13 DSP2FT: Down-sampling feature for the pixel Pipe2

Bit 12 DSP1FT: Down-sampling feature for the pixel Pipe1

Bits 11:9 Reserved, must be kept at reset value.

Bit 8 IPPLUGCFG: IP-Plug configuration

Bits 7:6 Reserved, must be kept at reset value.

Bits 5:4 PIPENB[1:0]: Number of pipes

Bits 3:1 Reserved, must be kept at reset value.

Bit 0 CSIFT: CSI2 host protocol compliant

42.14.151 DCMIPP version register (DCMIPP_VERR)

Address offset: 0xFF4

Reset value: 0x0000 0031

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 MAJREV[3:0]: DCMIPP major revision

Bits 3:0 MINREV[3:0]: DCMIPP minor revision

42.14.152 DCMIPP identification register (DCMIPP_IPIDR)

Address offset: 0xFF8

Reset value: 0x0016 2021

31302928272625242322212019181716
IDR[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
IDR[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 IDR[31:0]: Parallel camera interface (DCMI) and optional pixel processing (PP)

42.14.153 DCMIPP size identification register (DCMIPP_SIDR)

Address offset: 0xFFC

Reset value: 0xA3C5 DD04

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: 4-Kbyte decoding space

42.15 DCMIPP register map

Table 413. DCMIPP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000DCMIPP_IPGR1Res.Res.Res.Res.Res.Res.Res.QOS_MODERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MEMORYPAGE[2:0]
Reset value0010
0x004DCMIPP_IPGR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSTART
Reset value0
0x008DCMIPP_IPGR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IDLE
Reset value1
0x00C-0x018ReservedReserved
0x01CDCMIPP_IPGR8IPPID[7:0]Res.Res.Res.ARCHIID[4:0]Res.Res.Res.REVID[4:0]Res.Res.DID[5:0]
Reset value101010100010000011010100
0x020DCMIPP_IPC1R1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OTR[3:0]Res.Res.Res.Res.Res.Res.Res.TRAFFIC[2:0]
Reset value0000100
0x028DCMIPP_IPC1R3Res.Res.Res.Res.Res.Res.DPREGEND[10:0]Res.Res.Res.Res.Res.DPREGSTART[10:0]
Reset value000111111100000000000
0x02CReservedReserved
0x030DCMIPP_IPC2R1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OTR[2:0]Res.Res.Res.Res.Res.Res.Res.TRAFFIC[2:0]
Reset value000100
0x034DCMIPP_IPC2R2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WLRU[3:0]Res.Res.Res.SVC MAPPING[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00010000
0x038DCMIPP_IPC2R3Res.Res.Res.Res.Res.Res.DPREGEND[10:0]Res.Res.Res.Res.Res.DPREGSTART[10:0]
Reset value000111111100000000000
0x03CReservedReserved
0x040DCMIPP_IPC3R1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OTR[2:0]Res.Res.Res.Res.Res.Res.Res.TRAFFIC[2:0]
Reset value000100
0x044DCMIPP_IPC3R2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WLRU[3:0]Res.Res.Res.SVC MAPPING[3:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value00010000
0x048DCMIPP_IPC3R3Res.Res.Res.Res.Res.Res.DPREGEND[10:0]Res.Res.Res.Res.Res.DPREGSTART[10:0]
Reset value000111111100000000000
0x04CReservedReserved
0x050DCMIPP_IPC4R1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OTR[2:0]Res.Res.Res.Res.Res.Res.Res.TRAFFIC[2:0]
Reset value000100

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x054DCMIPP_IPC4R2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WLRU[3:0]Res.Res.Res.Res.Res.SVC
MAPPING
[3:0]
Res.Res.Res.Res.Res.Res.Res.
Reset value00010000
0x058DCMIPP_IPC4R3Res.Res.Res.Res.Res.DPREGEND[10:0]Res.Res.Res.Res.Res.DPREGSTART[10:0]
Reset value0001111111100000000000
0x05C to
0x100
ReservedReserved
0x100DCMIPP
_PRHWCGFR
PRHWCGFR[31:0]
Reset value00000000000000000000000000000000
0x104DCMIPP_PRCRRes.Res.Res.Res.SWAPBITSSWAPCYCLESRes.FORMAT[7:0]Res.ENABLERes.EDM
[2:0]
Res.Res.VSPOLHSPOLPCKPOLESSRes.Res.Res.Res.
Reset value000000000000000000
0x108DCMIPP_PRESCRFEC[7:0]LEC[7:0]LSC[7:0]FSC[7:0]
Reset value00000000000000000000000000000000
0x10CDCMIPP_PRESURFEU[7:0]LEU[7:0]LSU[7:0]FSU[7:0]
Reset value00000000000000000000000000000000
0x110 to
0x1F0
ReservedReserved
0x1F4DCMIPP_PRIERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ERRIERes.Res.Res.Res.Res.Res.
Reset value0
0x1F8DCMIPP_PRSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VSYNCHSYNCRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.ERRFRes.Res.Res.Res.Res.Res.
Reset value110
0x1FCDCMIPP_PRFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CERRFRes.Res.Res.Res.Res.Res.
Reset value0
0x200DCMIPP_
CMHWCGFR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TPGCCSICPARCPIPES
[1:0]
Res.Res.Res.
Reset value01111
0x204DCMIPP_CMCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SWAPRBRes.CFCPSFC
[1:0]
INSELRes.Res.
Reset value00000
0x208DCMIPP_CMFRCRFRMCNT[31:0]
Reset value00000000000000000000000000000000
0x20CReservedReserved
0x210DCMIPP_
CMTPGCR1
Res.Res.HEIGHT[13:0]Res.Res.WIDTH[13:0]
Reset value0000000000000000000000000000
0x214DCMIPP_
CMTPGCR2
VBL[15:0]FORMAT[7:0]RT
[1:0]
YT
[1:0]
PATTERNGSENLFLENTPGEN
Reset value00000000000000000000000000000000
0x218-
0x3EC
ReservedReserved

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x3F0DCMIPP_CMIERRes.Res.Res.Res.Res.STOVRIESTBCRIESTFRAMEIERes.P0OVRIEP0LIMITIERes.Res.Res.P0VSYNCIEP0FRAMEIEP0LINEIERes.PRERRIEATXERRIERes.Res.Res.Res.Res.
Reset value0000000000
0x3F4DCMIPP_CMSR1P2CPTACTRes.Res.Res.Res.Res.P2LSTFRMP2LSTLINEP1CPTACTRes.Res.Res.Res.Res.P1LSTFRMP1LSTLINEP0CPTACTRes.Res.Res.Res.Res.P0LSTFRMP0LSTLINERes.Res.Res.Res.Res.Res.PRVSYNCPRHSYNC
Reset value00000000011
0x3F8DCMIPP_CMSR2Res.Res.Res.Res.Res.STOVRFSTBCRFSTFRAMEFRes.P0OVRFP0LIMITFRes.Res.Res.P0VSYNCFP0FRAMEFP0LINEFRes.PRERRFATXERRFRes.Res.Res.Res.Res.
Reset value0000000000
0x3FCDCMIPP_CMFCRRes.Res.Res.Res.Res.STOVRFSTBCRFSTFRAMEFRes.CP0OVRFCP0LIMITFRes.Res.Res.CP0VSYNCFCP0FRAMEFCP0LINEFRes.CPRERRFCATXERRFRes.Res.Res.Res.Res.
Reset value0000000000
0x400DCMIPP_P0HWCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CROI[3:0]CGM[1:0]CRB[1:0]DBMCDSCPLA[1:0]
Reset value000000001000
0x404DCMIPP_P0FSCRPIPENRes.Res.Res.Res.Res.Res.Res.Res.Res.VC[1:0]Res.Res.DTMODE[1:0]Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
Reset value00000000000000000
0x408-0x4FCReservedReserved
0x500DCMIPP_P0FCTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPTREQCPTMODEFRATE[1:0]
Reset value0000
0x504DCMIPP_P0SCSTRRes.Res.Res.Res.VSTART[11:0]Res.Res.Res.Res.HSTART[11:0]
Reset value000000000000000000000000
0x508DCMIPP_P0SCSZRENABLEPOSNEGRes.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value00000000000000000000000000
0x50C-0x5ACReservedReserved
0x5B0DCMIPP_P0DCCNTRRes.Res.Res.Res.Res.Res.CNT[25:0]
Reset value00000000000000000000000000
0x5B4DCMIPP_P0DCLMTRENABLERes.Res.Res.Res.Res.Res.Res.LIMIT[23:0]
Reset value0111111111111111111111111
0x5B8 - 0x5BCReservedReserved

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x5C0DCMIPP_P0PPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LINEMULT
[2:0]
Res.Res.OELSLSMOEBSBSM[1:0]HEADERENPADRes.Res.Res.Res.SWAPYUV
Reset value00000000000
0x5C4DCMIPP
_P0PPM0AR1
M0A[31:0]
Reset value00000000000000000000000000000000
0x5D0DCMIPP
_P0STM0AR
M0A[31:0]
Reset value00000000000000000000000000000000
0x5C8-
0x5F0
ReservedReserved
0x5F4DCMIPP_P0IERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OVRIELIMITIERes.Res.Res.VSYNCIEFRAMEIELINEIE
Reset value00000
0x5F8DCMIPP_P0SRRes.Res.Res.Res.Res.Res.Res.Res.CPTACTRes.Res.Res.Res.Res.Res.LSTLINERes.Res.Res.Res.Res.Res.Res.Res.OVRFLIMITFRes.Res.Res.VSYNCFFRAMEFLINEF
Reset value0000000
0x5FCDCMIPP_P0FCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.COVRFCLIMITFRes.Res.Res.CVSYNCFCFRAMEFCLINEF
Reset value00000
0x600ReservedReserved
0x604DCMIPP_P0CFSCRPIPENRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.VC
[1:0]
Res.Res.DTMODE
[1:0]
Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
Reset value00000000000000000
0x608-
0x6FC
ReservedReserved
0x700DCMIPP_P0CFCTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPTREQCPTMODEFRATE
[1:0]
Reset value0000
0x704DCMIPP_P0CSCSTRRes.Res.Res.Res.VSTART[11:0]Res.Res.Res.Res.HSTART[11:0]
Reset value000000000000000000000000
0x708DCMIPP_P0CSCSZRENABLEPOSNEGRes.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value00000000000000000000000000
0x70C-
0x7BC
ReservedReserved
0x7C0DCMIPP_P0CPPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LINEMULT
[2:0]
Res.Res.OELSLSMOEBSBSM[1:0]HEADERENPADRes.Res.Res.Res.SWAPYUV
Reset value00000000000
0x7C4DCMIPP
_P0CPPM0AR1
M0A[31:0]
Reset value00000000000000000000000000000000
0x7C8DCMIPP
_P0CPPM0AR2
M0A[31:0]
Reset value00000000000000000000000000000000
ST logo
ST logo

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x7CC - 0x7FCReservedReserved
0x800DCMIPP_P1HWCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CFOCCLSCHSRes.Res.Res.CDECCROI [3:0]Res.CGM[1:0]Res.CRB[1:0]DBMCDSCPLA[1:0]
Reset value00000000001010110
0x804DCMIPP_P1FSCRPIPENFDTFENFDTF[5:0]Res.Res.Res.VC [1:0]Res.Res.PIPEDIFFDTMODE [1:0]Res.Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
Reset value0000000000000000000000000
0x810-0x81CReservedReserved
0x820DCMIPP_P1SRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CROPENFIRSTLINE DEL[2:0]LASTLINE[11:0]
Reset value0000000000000000
0x824DCMIPP_P1BPRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STRENGHT [2:0]ENABLE
Reset value00000
0x828DCMIPP_P1BPRSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BADCNT[11:0]
Reset value0000000000000
0x82CReservedReserved
0x830DCMIPP_P1DECRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VDEC [1:0]HDEC [1:0]ENABLE
Reset value00000
0x834-0x83CReservedReserved
0x840DCMIPP_P1BLCCRBLCR[7:0]BLCG[7:0]BLCB[7:0]Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
Reset value00000000000000000000000000000000
0x844DCMIPP_P1EXCR1Res.SHFR [2:0]MULTR[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
Reset value0000000000000
0x848DCMIPP_P1EXCR2Res.SHFG [2:0]MULTG[7:0]Res.Res.Res.Res.Res.SHFB [2:0]MULTB[7:0]Res.Res.Res.Res.
Reset value000000000000000000000000
0x84CReservedReserved
0x850DCMIPP_P1ST1CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODESRC [2:0]BINS [1:0]ENABLE
Reset value00000000
0x854DCMIPP_P1ST2CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODESRC [2:0]BINS [1:0]ENABLE
Reset value00000000
0x858DCMIPP_P1ST3CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MODESRC [2:0]BINS [1:0]ENABLE
Reset value00000000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x85CDCMIPP_P1STSTRResResResResVSTART[11:0]ResResResResResHSTART[11:0]
Reset value000000000000000000000000
0x860DCMIPP_P1STSZRCROPENResResResResVSIZE[11:0]ResResResResResHSIZE[11:0]
Reset value00000000000000000000000
0x864DCMIPP_P1ST1SRResResResResResResResResACCU[23:0]ResResResResResResResResResResResResRes
Reset value000000000000000000000000
0x868DCMIPP_P1ST2SRResResResResResResResResACCU[23:0]ResResResResResResResResResResResResRes
Reset value000000000000000000000000
0x86CDCMIPP_P1ST3SRResResResResResResResResACCU[23:0]ResResResResResResResResResResResResRes
Reset value000000000000000000000000
0x870DCMIPP_P1DMCRResResEDGE [2:0]ResResLINEH [2:0]ResResResLINEV [2:0]ResResPEAK [2:0]ResResResResResResResResResResResResResResResTYPE [1:0]ENABLERes
Reset value0 0 00 0 00 0 00 0 00 0 00
0x874-0x87CReservedReserved
0x880DCMIPP_P1CCCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResCLAMPTYPEENABLERes
Reset value0000
0x884DCMIPP_P1CCRR1ResResResResResResRG[10:0]ResResResResResRR[10:0]
Reset value0000000000000000000000
0x888DCMIPP_P1CCRR2ResResResResResResRA[9:0]ResResResResResRB[10:0]
Reset value0000000000000000000000
0x88CDCMIPP_P1CCGR1ResResResResResResGG[10:0]ResResResResResGR[10:0]
Reset value0000000000000000000000
0x890DCMIPP_P1CCGR2ResResResResResResGA[9:0]ResResResResResGB[10:0]
Reset value0000000000000000000000
0x894DCMIPP_P1CCBR1ResResResResResResBG[10:0]ResResResResResBR[10:0]
Reset value0000000000000000000000
0x898DCMIPP_P1CCBR2ResResResResResResBA[9:0]ResResResResResBB[10:0]
Reset value0000000000000000000000
0x89CReservedReserved
0x8A0DCMIPP_P1CTCR1ResResResResResResResResResResResResResResResResResLUM0[5:0]ResResResResResResResResResENABLERes
Reset value0100000
0x8A4DCMIPP_P1CTCR2ResLUM1[5:0]ResResLUM2[5:0]ResResLUM3[5:0]ResResLUM4[5:0]ResResResResResRes
Reset value010000010000010000010000
0x8A8DCMIPP_P1CTCR3ResLUM5[5:0]ResResLUM6[5:0]ResResLUM7[5:0]ResResLUM8[5:0]ResResResResResRes
Reset value010000010000010000010000
0x8ACReservedReserved
0x8B0DCMIPP_P1HSCRResResResResBIN [1:0]BIN [1:0]ResCOMP [2:0]ResVDEC [2:0]ResHDEC [2:0]ResVREG [3:0]ResVREG [3:0]ResSRC [2:0]EN
Reset value000000000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x8B4DCMIPP_P1HSSTRResResResResVSTART[11:0]ResResResResResHSTART[11:0]
Reset value000000000000000000000000
0x8B8DCMIPP_P1HSSZRResResResResVSIZE[11:0]ResResResResResHSIZE[11:0]
Reset value000000000000000000000000
0x8BCDCMIPP_P1HSMAR1MA[31:0]
Reset value00000000000000000000000000000000
0x8C4DCMIPP_P1HSSMARMA[31:0]
Reset value00000000000000000000000000000000
0x8D0-0x8FCReservedReserved
0x900DCMIPP_P1FCTCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResOPTREQCPTMODEFRATE [1:0]
Reset value00000
0x904DCMIPP_P1CRSTRResResResResVSTART[11:0]ResResResResResHSTART[11:0]
Reset value000000000000000000000000
0x908DCMIPP_P1CRSZRENABLEResResResVSIZE[11:0]ResResResResResHSIZE[11:0]
Reset value0000000000000000000000000
0x90CDCMIPP_P1DCCRResResResResResResResResResResResResResResResResResResResResResResResResResResResVDEC [1:0]HDEC [1:0]ENABLE
Reset value00000
0x910DCMIPP_P1DSCRENABLEResResResResResVDIV[9:0]ResResResResResResHDIV[9:0]
Reset value000000000000000000000
0x914DCMIPP_P1DSRTIORVRATIO[15:0]HRATIO[15:0]
Reset value00000000000000000000000000000000
0x918DCMIPP_P1DSSZRResResResResVSIZE[11:0]ResResResResResHSIZE[11:0]
Reset value000000000000000000000000
0x91C-0x96CReservedReserved
0x970DCMIPP_P1GMCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResENABLE
Reset value0
0x974-0x97CReservedReserved
0x980DCMIPP_P1YUVCRRResResResResResResResResResResResResResResResResResResResResResResResResResResResResCLAMPTYPEENABLE
Reset value0000
0x984DCMIPP_P1YUVRR1ResResResResResRG[10:0]ResResResResResRR[10:0]
Reset value00000000000000000000000
0x988DCMIPP_P1YUVRR2ResResResResResRA[9:0]ResResResResResRB[10:0]
Reset value00000000000000000000000
0x98CDCMIPP_P1YUVGR1ResResResResResGG[10:0]ResResResResResGR[10:0]
Reset value00000000000000000000000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x990DCMIPP_P1YUVGR2ResResResResResResGA[9:0]ResResResResResResGB[10:0]
Reset value000000000000000000000
0x994DCMIPP_P1YUVBR1ResResResResResResBG[10:0]ResResResResResResBR[10:0]
Reset value000000000000000000000
0x998DCMIPP_P1YUVBR2ResResResResResResBA[9:0]ResResResResResResBB[10:0]
Reset value000000000000000000000
0x99C-0x9BCReservedReserved
0x9C0DCMIPP_P1PPCRResResResResResResResResResResResResResResResResLINEMULT [2:0]ResResResResResResResResResResResResFORMAT [3:0]
Reset value0000000
0x9C4DCMIPP_P1PPM0AR1M0A[31:0]
Reset value00000000000000000000000000000000
0x9C8ReservedReserved
0x9CCDCMIPP_P1PPM0PRResResResResResResResResResResResResResResResResPITCH[14:0]
Reset value0000000000000000
0x9D0DCMIPP_P1STM0AM0A[31:0]
Reset value00000000000000000000000000000000
0x9D0ReservedReserved
0x9D4DCMIPP_P1PPM1AR1M1A[31:0]
Reset value00000000000000000000000000000000
0x9D8ReservedReserved
0x9DCDCMIPP_P1PPM1PRResResResResResResResResResResResResResResResResPITCH[14:0]
Reset value0000000000000000
0x9E0DCMIPP_P1STM1ARM1A[31:0]
Reset value00000000000000000000000000000000
0x9E0ReservedReserved
0x9E4DCMIPP_P1PPM2AR1M2A[31:0]
Reset value00000000000000000000000000000000
0x9F0DCMIPP_P1STM2ARM2A[31:0]
Reset value00000000000000000000000000000000
0x9E8-0x9F0ReservedReserved
0x9F4DCMIPP_P1IERResResResResResResResResResResResResResResResResResResResResResResResResOVRIESTOVRIESTBCIESTFRAMEIEResVSYNCIEFRAMEIELINEIE
Reset value00000000
0x9F8DCMIPP_P1SRResResResResResResResResResResResResResResResResResResResResResResResResOVRFSTOVRFSTBCFSTFRAMEFResVSYNCFFRAMEFLINEF
Reset value00000000
0x9FCDCMIPP_P1FCRResResResResResResResResResResResResResResResResResResResResResResResResCOVRFCSTOVRFCSTBCFCSTFRAMEFResCVSYNCFCFRAMEFCLINEF
Reset value00000000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xA00ReservedReserved
0xA04DCMIPP_P1CFSCRPIPENFDTFENFDTF[5:0]Res.Res.Res.VC
[1:0]
PIPEDIFFDTMODE
[1:0]
Res.Res.DTIDB[5:0]Res.Res.DTIDA[5:0]
Reset value0000000000000000000000000
0xA08-
0xA20
ReservedReserved
0xA24DCMIPP_P1CBPRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.STRENGTH
[2:0]
ENABLE
Reset value0000
0xA28-
0xA3C
ReservedReserved
0xA40DCMIPP_P1CBLCCRBLCR[7:0]BLCG[7:0]BLCB[7:0]Res.Res.Res.Res.Res.Res.Res.ENABLE
Reset value0000000000000000000000000
0xA44DCMIPP_P1CEXCR1Res.SHFR
[2:0]
MULTR[7:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
Reset value000000000000
0xA48DCMIPP_P1CEXCR2Res.SHFG
[2:0]
MULTG[7:0]Res.Res.Res.Res.SHFB
[2:0]
MULTB[7:0]Res.Res.Res.Res.Res.
Reset value0000000000000000000000
0xA4CReservedReserved
0xA50DCMIPP_P1CST1CRACCU[23:0]MODESRC
[2:0]
BINS
[1:0]
Res.ENABLE
Reset value0000000000000000000000000000000
0xA54DCMIPP_P1CST2CRACCU[23:0]MODESRC
[2:0]
BINS
[1:0]
Res.ENABLE
Reset value0000000000000000000000000000000
0xA58DCMIPP_P1CST3CRACCU[23:0]MODESRC
[2:0]
BINS
[1:0]
Res.ENABLE
Reset value0000000000000000000000000000000
0xA5CDCMIPP_P1CSTSTRRes.Res.Res.Res.VSTART[11:0]Res.Res.Res.Res.HSTART[11:0]
Reset value000000000000000000000000
0xA60DCMIPP_P1CSTSZRCROPENRes.Res.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value0000000000000000000000000
0xA64-
0xA7C
ReservedReserved
0xA80DCMIPP_P1CCCCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLAMPTYPEENABLE
Reset value000
0xA84DCMIPP_P1CCCRR1Res.Res.Res.Res.Res.RG[10:0]Res.Res.Res.Res.Res.RR[10:0]
Reset value0000000000000000000000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xA88DCMIPP_P1CCRR2Res.Res.Res.Res.Res.Res.RA[9:0]Res.Res.Res.Res.Res.RB[10:0]
Reset value000000000000000000000
0xA8CDCMIPP_P1CCGR1Res.Res.Res.Res.Res.GG[10:0]Res.Res.Res.Res.Res.GR[10:0]
Reset value0000000000000000000000
0xA90DCMIPP_P1CCGR2Res.Res.Res.Res.Res.Res.GA[9:0]Res.Res.Res.Res.Res.GB[10:0]
Reset value000000000000000000000
0xA94DCMIPP_P1CCBR1Res.Res.Res.Res.Res.BG[10:0]Res.Res.Res.Res.Res.BR[10:0]
Reset value0000000000000000000000
0xA98DCMIPP_P1CCBR2Res.Res.Res.Res.Res.Res.BA[9:0]Res.Res.Res.Res.Res.BB[10:0]
Reset value000000000000000000000
0xA9CReservedReserved
0xAA0DCMIPP_P1CCTCR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LUM0[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.ENABLE
Reset value0100000
0xAA4DCMIPP_P1CCTCR2Res.LUM1[5:0]Res.Res.LUM2[5:0]Res.Res.LUM3[5:0]Res.Res.LUM4[5:0]Res.
Reset value010000010000010000010000
0xAA8DCMIPP_P1CCTCR3Res.LUM5[5:0]Res.Res.LUM6[5:0]Res.Res.LUM7[5:0]Res.Res.LUM8[5:0]Res.
Reset value010000010000010000010000
0xAACReservedReserved
0xAB0DCMIPP_P1CHSCRRes.Res.Res.Res.BIN
[1:0]
BIN
[1:0]
COMP
[2:0]
Res.VDEC
[2:0]
Res.HDEC
[2:0]
VREG
[3:0]
VREG
[3:0]
SRC
[2:0]
EN
Reset value0000000001100000000000000
0xAB4DCMIPP_P1CHSSTRRes.Res.Res.Res.VSTART[11:0]Res.Res.Res.Res.HSTART[11:0]
Reset value000000000000000000000000
0xAB8DCMIPP_P1CHSSZRRes.Res.Res.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value000000000000000000000000
0xABCDCMIPP
_P1CHSMAR1
MA[31:0]
Reset value00000000000000000000000000000000
0xAC0DCMIPP
_P1CHSMAR2
MA[31:0]
Reset value00000000000000000000000000000000
0xAC4-0xAFCReservedReserved
0xB00DCMIPP_P1CFCTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPTREQCPTMODEFRATE
[1:0]
Reset value0000
0xB04DCMIPP_P1CCRSTRRes.Res.Res.Res.VSTART[11:0]Res.Res.Res.Res.HSTART[11:0]
Reset value000000000000000000000000
0xB08DCMIPP_P1CCRSZRENABLERes.Res.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value0000000000000000000000000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xB0CDCMIPP_P1CDCCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VDEC [1:0]HDEC [1:0]ENABLE
00000
0xB10DCMIPP_P1CDSCRENABLERes.Res.Res.Res.Res.VDIV[9:0]Res.Res.Res.Res.Res.Res.Res.HDIV[9:0]
Reset value000000000000000000000
0xB14DCMIPP_P1CDSRTIORVRATIO[15:0]HRATIO[15:0]
Reset value00000000000000000000000000000000
0xB18DCMIPP_P1CDSSZRRes.Res.Res.Res.VSIZE[11:0]Res.Res.Res.Res.Res.HSIZE[11:0]
Reset value00000000000000000000000
0xB1CxBCReservedReserved
0xBC0DCMIPP_P1CPPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LINEMULT [2:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.SWAPRBFORMAT [3:0]
Reset value000000000
0xBC4DCMIPP_P1CPPM0AR1M0A[31:0]
Reset value00000000000000000000000000000000
0xBC8ReservedReserved
0xBCCDCMIPP_P1CPPM0PRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PITCH[14:0]
Reset value0000000000000000
0xBD0ReservedReserved
0xBD4DCMIPP_P1CPPM1AR1M1A[31:0]
Reset value00000000000000000000000000000000
0xBD8ReservedReserved
0xBDCDCMIPP_P1CPPM1PRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PITCH[14:0]
Reset value0000000000000000
0xBE0ReservedReserved
0xBE4DCMIPP_P1CPPM2AR1M2A[31:0]
Reset value00000000000000000000000000000000
0xBE8 - 0xBFCReservedReserved
0xC00DCMIPP_P2HWCGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CDECCROI[3:0]CGM [1:0]CRB[1:0]DBMCDSCPLA [1:0]
Reset value1000001000100
0xC04DCMIPP_P2FSCRPIPENFDTFENFDTF[5:0]Res.Res.Res.VC [1:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DTIDA[5:0]
Reset value0000000000000000
0xC08 - 0xCFCReservedReserved
0xD00DCMIPP_P2FCTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.OPTREQOPTMODEFRATE [1:0]
Reset value00000

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xD04DCMIPP_P2CRSTRResResResResVSTART[11:0]ResResResResResHSTART[11:0]
Reset value000000000000000000000000
0xD08DCMIPP_P2CRSZRENABLEResResResVSIZE[11:0]ResResResResResHSIZE[11:0]
Reset value0000000000000000000000000
0xD0CDCMIPP_P2DCCRResResResResResResResResResResResResResResResResResResResResResResResResResResResVDEC
[1:0]
HDEC
[1:0]
ENABLE
Reset value00000
0xD10DCMIPP_P2DSCRENABLEResResResResResVDIV[9:0]ResResResResResResResHDIV[9:0]
Reset value000000000000000000000
0xD14DCMIPP_P2DSRTIORVRATIO[15:0]HRATIO[15:0]
Reset value00000000000000000000000000000000
0xD18DCMIPP_P2DSSZRResResResResVSIZE[11:0]ResResResResResHSIZE[11:0]
Reset value000000000000000000000000
0xD1C-0xD6CReservedReserved
0xD70DCMIPP_P2GMCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResENABLE
Reset value0
0xD74-0xDBCReservedReserved
0xDC0DCMIPP_P2PPCRResResResResResResResResResResResResResResResResResResResResResResResResResResResSWAPRBFORMAT
[3:0]
Reset value00000000
0xDC4DCMIPP_P2PPM0AR1M0A[31:0]
Reset value00000000000000000000000000000000
0xDC8ReservedReserved
0xDCCDCMIPP_P2PPM0PRResResResResResResResResResResResResResResResResPITCH[14:0]
Reset value0000000000000000
0xDD0-0xDF0ReservedReserved
0xDF4DCMIPP_P2IERResResResResResResResResResResResResResResResResResResResResResResResResResOVRIEResResResResVSYNCIE
Reset value00
0xDF8DCMIPP_P2SRResResResResResResResResResResResResResResResResResResResResResResResResResOVRFResResResResVSYNCF
Reset value00
0xDFCDCMIPP_P2FCRResResResResResResResResResResResResResResResResResResResResResResResResResCOVRFResResResResCVSYNCF
Reset value00

Table 413. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xE00ReservedReserved
0xE04DCMIPP_P2CFSCRPIPENFDTFENFDTF[5:0]Res.Res.Res.VC
[1:0]
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DTIDA[5:0]
Reset value0000000000000000
0xE08-
0xEFC
ReservedReserved
0xF00DCMIPP_P2CFCTCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CPTREQCPTMODEFRATE
[1:0]
Reset value0000
0xF04DCMIPP_P2CCRSTRRes.Res.Res.Res.VSTART[11:0]Res.Res.Res.Res.HSTART[11:0]
Reset value000000000000000000000000
0xF08DCMIPP_P2CCRSZRENABLERes.Res.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value0000000000000000000000000
0xF0CDCMIPP_P2DCCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VDEC
[1:0]
HDEC
[1:0]
ENABLE
Reset value00000
0xF10DCMIPP_P2CDSCRENABLERes.Res.Res.Res.Res.VDIV[9:0]Res.Res.Res.Res.Res.Res.HDIV[9:0]
Reset value000000000000000000000
0xF14DCMIPP
_P2CDSRTIOR
VRATIO[15:0]HRATIO[15:0]
Reset value00000000000000000000000000000000
0xF18DCMIPP_P2CDSSZRRes.Res.Res.Res.VSIZE[11:0]Res.Res.Res.Res.HSIZE[11:0]
Reset value000000000000000000000000
0xF1C-
0xFBC
ReservedReserved
0xFC0DCMIPP_P2CPPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LINEMULT
[2:0]
Res.Res.Res.Res.Res.Res.Res.Res.SWAPRBFORMAT
[3:0]
Reset value00000000
0xFC4DCMIPP
_P2CPPM0AR1
M0A[31:0]
Reset value00000000000000000000000000000000
0xFC8ReservedReserved
0xFCCDCMIPP
_P2CPPM0PR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PITCH[14:0]
Reset value000000000000000
0xFD0-
0xFE4
ReservedReserved
0xFE8DCMIPP_HWCFGR3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value
0xFECDCMIPP_HWCFGR2Res.Res.Res.STVRes.Res.TPGRes.Res.Res.MCURes.Res.DEC2DEC1Res.Res.ADDMODRes.Res.Res.PROCCLKRes.Res.Res.DBMFTRes.Res.Res.VPFT
[2:0]
Reset value11111100000
Table 413. DCMIPP register map and reset values (continued)
OffsetRegister name313029282726252423222120191817161514131211109876543210
0xFF0DCMIPP_HWCGR1ROI2NB
[3:0]
ROI1NB
[3:0]
Res.Res.PLANARTF
[1:0]
Res.Res.Res.RB2RGBRes.Res.DSP2FTDSP1FTRes.Res.Res.IPPLUGCFGRes.Res.PIPENB
[1:0]
Res.Res.Res.CSIFT
Reset value000000111110111
0xFF4DCMIPP_VERRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAJREV
[3:0]
MINREV
[3:0]
Reset value00110001
0xFF8DCMIPP_IPIDRIDR[31:0]
Reset value00000000001011000100000000100001
0xFFCDCMIPP_SIDRSID[31:0]
Reset value10100011110001011101110100000100

Refer to Section 2.4: Memory organization for the register boundary addresses.