30. Digital camera interface pixel pipeline (DCMIPP)

30.1 DCMIPP introduction

The DCMIPP is the pixel pipeline section of a high-resolution camera subsystem: it gets pixels from a parallel interface, and after some processing (such as decimation, cropping) 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).

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

Table 238. Available pipeline

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 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.

Figure 264 shows the DCMIPP main functions, namely the integrated parallel interface, the applicative post-processing pipeline with its crop, downsize, and pixel formatting.

Figure 264. DCMIPP overview

Block diagram of DCMIPP overview showing the data flow from a parallel interface through a Pipe0: DUMP block (containing FRM CTRL, Decimation, and Crop) to an IP-PLUG and finally to an AXI BUS 64 bits.

The diagram illustrates the DCMIPP architecture. A 'Parallel interface' block on the left feeds into a large grey box labeled 'DCMIPP'. Inside this box, the data enters a sub-block labeled 'Pipe0: DUMP'. This sub-block contains a sequence of three smaller blocks: 'FRM CTRL (snap, rate)', 'Decimation (ratio 1, 2, 4)', and 'Crop', connected by arrows. The output of the 'Pipe0: DUMP' sub-block goes to an 'IP-PLUG' block. An arrow from the 'IP-PLUG' points to the text 'AXI BUS 64 bits'. The reference 'MSv54044V2' is located in the bottom right corner of the diagram area.

Block diagram of DCMIPP overview showing the data flow from a parallel interface through a Pipe0: DUMP block (containing FRM CTRL, Decimation, and Crop) to an IP-PLUG and finally to an AXI BUS 64 bits.
Table 239. Glossary
ItemDefinition
AAlpha component, used to define transparency, opaque = 0xFF, for example ARGB.
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)
DCMIPP_Digital camera interface - Pixel pipeline
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.
NPUNeural network processing engine (also known as NN, neural network).
PlanarDefines in how many sub-buffers a pixel buffer is split into: 1 (coplanar).
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
YUV420Pixel format, YUV color reference, chroma component (U, V) sub-sampled 1/2 in X and Y.

30.2 DCMIPP main features

30.3 DCMIPP functional description

30.3.1 DCMIPP block diagram

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

Figure 265. DCMIPP block diagram

Block diagram of the DCMIPP showing internal modules and external interfaces.

The diagram illustrates the internal architecture of the DCMIPP. At the top, four external clock signals (dcmipp_pclk, dcmipp_aclk, dcmipp_ker_ck, dcmipp_pxclk) feed into the 'Reset and clock modules'. On the left, a 'Parallel interface' block receives data inputs (DCMIPP_D0 to DCMIPP_D15) and control signals (DCMIPP_PIXCLK, DCMIPP_HSYNC, DCMIPP_VSYNC). It also outputs event signals (dcmipp_p0_hsync_evt, dcmipp_p0_vsync_evt, dcmipp_p0_frameend_evt, dcmipp_p0_lineend_evt). The core of the DCMIPP is the 'Pipe0: dump' block, which contains 'Pipe control', 'Crop 2D Decimation', 'Dump counter', 'Event controller', and 'Interrupt controller'. A 'Frame counter' is connected to the 'Event controller'. The 'Pipe0: dump' block is connected to the 'Parallel interface' and the 'AXI master client1' within the 'IPPLUG' block. The 'AXI master client1' connects to an external 'AXI bus'. A 'Global interrupt controller' receives 'dcmipp_it_global' and is connected to the 'Pipe0: dump' block. A 'Register bank' is connected to an external 'APB bus'. The diagram is labeled 'MSv54045V2' in the bottom right corner.

Block diagram of the DCMIPP showing internal modules and external interfaces.

30.3.2 DCMIPP pads and internal signals

Table 240. 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 241. DCMIPP input/output pins

Internal signal nameSignal typeDescription
dcmipp_pclkInputDCMIPP APB clock (APB bus)
dcmipp_aclkInputDCMIPP AXI clock (AXI bus)
dcmipp_ker_ckInputDCMIPP kernel clock (ISB byte header)
dcmipp_it_globalOutputDCMIPP interrupts (refer to Table 259 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

30.3.3 DCMIPP reset and clocks

Table 242. DCMIPP clocks

DomainClockMaximum frequencyComments
Paralleldcmipp_pxclk120 MHzUp to 2x 120 MB/s in 16-bit mode
Pipelinedcmipp_ker_ck266 MHzUp to 266 Mpixels/s (minus the blanking)
AXI busdcmipp_aclk350 MHzSoC AXI frequency
APB busdcmipp_pclk133 MHzSoC APB frequency

Table 243. 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 244. 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

30.3.4 DCMIPP maximum resolution

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

30.3.5 DCMIPP minimum requirements for frame structure

DCMIPP imposes the following minimum requirements for the frame architecture:

Blanking phase

Data image area

30.3.6 Description of DCMIPP pixel format support

Table 245 lists the supported pixel formats in the input interfaces (parallel interface), and in the output Pipe0.

Table 245. Supported pixel formats

Index(1)Pixel formatBPPParallel input (clk/pix)(2)Pipe0 output (dump)
13(3)Byte stream (JPEG, compressed video)8Y, 1Y
14(4)Other data8 to 16(4)Y, 1Y
5Raw66(5)Y
5Raw77(5)Y
5Raw88Y, 1Y
6Raw1010Y, 1To 16 bpc
7Raw1212Y, 1To 16 bpc
8Raw1414Y, 1To 16 bpc
9Mono88Y, 1Y
10Mono1010Y, 1To 16 bpc
11Mono1212Y, 1To 16 bpc
12Mono1414Y, 1To 16 bpc

Table 245. Supported pixel formats (continued)

Index(1)Pixel formatBPPParallel input (clk/pix)(2)Pipe0 output (dump)
2RGB44412(5)(5)
2RGB55515(5)(5)
2RGB56516Y, 1 and 2Y
3RGB66618(5)(5)
4RGB888 / YUV444 (a)24Y, 2 and 3Y
1YUV422-1 (YUYV)16Y, 1 and 2Y
  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 an 8 bpp
    • - Raw7: Raw8 with 1-cycle input, processed as an 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

30.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).

30.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 246. DCMIPP_CMCR bit function

Bit IDFunctionComments
CFCClear frame counterClear the frame counter when set.

30.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 30.10.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 247. 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_PREURy.
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 248).

Table 248. 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
LSC, LECLine-start and line-end synchronization, when embedded synchronization ESS = 1
LSU, LEUMasks for LSC and LEC codes

30.4.3 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 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 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.

30.4.4 Frame control

The module is replicated for the dump pipe. It handles the frame control and the capture of the 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.

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 266.

Figure 266. 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 (StartOfFrame), VSYNC, EndOfFrame (capture complete), and VSYNC (capture complete). It shows the CPTREQ signal being set to 1 by software, the CPTACT signal being set to 1, and the CAPTURE to AXI operation. In Snapshot mode, the capture is a single event. In Continuous mode, the capture is a continuous sequence of events.

The diagram illustrates the timing for two capture modes: Snapshot (CPTMODE = 1) and Continuous (CPTMODE = 0).

Snapshot Mode (CPTMODE = 1): This mode shows a single capture event. A software-initiated CPTREQ = 1 occurs after the first VSYNC (StartOfFrame). This request leads to a CPTACT = 1 signal, which then triggers a CAPTURE to AXI operation. The capture is completed by the second VSYNC, which is also labeled as EndOfFrame (capture complete). Subsequent VSYNC signals are shown without further capture activity.

Continuous Mode (CPTMODE = 0): This mode shows a continuous sequence of captures. After the first VSYNC (StartOfFrame), a software-initiated CPTREQ = 1 leads to a CPTACT = 1 signal and a CAPTURE to AXI operation. This is followed by a second VSYNC, which is also labeled as EndOfFrame (capture complete). A third VSYNC follows, and another software-initiated CPTREQ = 1 leads to another CPTACT = 1 signal and CAPTURE to AXI operation. The diagram shows that in continuous mode, the CPTREQ signal remains high until the software explicitly sets it to 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 (StartOfFrame), VSYNC, EndOfFrame (capture complete), and VSYNC (capture complete). It shows the CPTREQ signal being set to 1 by software, the CPTACT signal being set to 1, and the CAPTURE to AXI operation. In Snapshot mode, the capture is a single event. In Continuous mode, the capture is a continuous sequence of events.

Table 249. DCMIPP_PxFCTCR bit function

Bit IDFunctionValues
CPTMODECapture mode– 0: Continuous
– 1: Snapshot
CPTREQCapture request– 1: Capture requested

Table 249. DCMIPP_PxFCTCR bit function (continued)

Bit IDFunctionValues
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
    1. – 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:
    1. – As in Snapshot mode, the capture starts, and CPTACT is set at 1.
    2. – Unlike the Snapshot mode, CPTREQ is not modified and remains at 1.
  5. 5. At the following capture complete interrupt:
    1. – 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.
    1. – An ongoing capture continues until completion.
  8. 8. At the next VSync, CPTREQ is sampled at 0, and the next capture does not restart.

30.4.5 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 pipe considering the above operation mode, before switching off the parallel interface.

30.5 Pipe0 (dump pipe)

30.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 267. Pipe0 (dump) architecture overview

Figure 267. 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)', 'Dump counter', and 'Pixel packer'), and finally through 'AXI' (containing 'AXI master') to the 'AXI bus 64 bits'. A version number 'MSv55972V3' is at the bottom right.
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)] DumpCounter[Dump counter] PixelPacker[Pixel packer] Decimation --> Crop Crop --> DumpCounter DumpCounter --> PixelPacker end PixelPacker --> AXI[AXI] subgraph AXI AXIMaster[AXI master] end AXIMaster --> Bus[AXI bus
64 bits]
Figure 267. 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)', 'Dump counter', and 'Pixel packer'), and finally through 'AXI' (containing 'AXI master') to the 'AXI bus 64 bits'. A version number 'MSv55972V3' is at the bottom right.

Pipe0 retrieves data from the camera sensor module connected to the DCMIPP through the 16-bit parallel interface.

The frame controller handles mainly the camera acquisition mode (continuous or snapshot, frame rate), see Section 30.4.4.

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.

30.5.2 Decimation

The decimation allows to cheaply downsize a frame.

Based on parallel interface camera module:

raw 10, for instance) to make equivalent decimation to one pixel out of two. Bit OEBS is used to start from the odd or even byte (or data) to capture first.

Table 250. 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.

30.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).

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 conveying 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.

30.5.4 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 251. 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: 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.

30.5.5 Double buffer mode

The dump pipe uses an AXI master interface to dump the data from the internal FIFO to the external memory. In the application, it is possible to handle frame data swapping memory area frame by frame. The double buffer mode fills up this function. There are two memory address registers set to initialize the base addresses of these memories areas. Each start of captured frame event swaps the memory base address to handle double buffering mode.

The double buffer mode can be used to allow post-processing on a buffer (frame buffer) while the other buffer is read to be displayed (display buffer).

Software configuration

Double buffering mode requires an activation, as well as addresses configuration, to define the two memory areas in which data are consecutively stored frame by frame at the output of the pipeline:

30.5.6 Pixel packing

This module works on the dump pipe (Pipe0), setting the arriving pixels in memory words.

Features

Table 252. DCMIPP_PxPPCR bit function

Bit IDFunctionValueComments
M0ABase 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) must be a multiple of 16 bytes.
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.
LINEMULTPeriodicity of the line (HSync) interrupt and event, as power of 2 of LINEMULT configuration (i.e. every 1, 2, ...,128 lines).--

30.5.7 Overrun detection

This logic handles flow-control hazards: the DCMIPP is provided a continuous flow of data (via parallel interface) 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

30.6 Pixel format description

This section describes the pixel formats used in the parallel interface and dump pipe.

The support for the pixel formats, per interface (parallel, dump output) are summarized in Table 253.

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.

30.6.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 253. 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 253. 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 254. 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 255 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 255. 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

30.6.2 Dump pipe formats

The dump pipe, thanks to its capability to dump, supports:

Table 256 details the support for these additional pixel formats. Other formats are assumed to be pixels with the same width.

Table 256. Dump pipe OUTPUT pixel formats(1)

Bits313029282726252423222120191817161514131211109876543210
Byte/
mono/raw
8 bpp
76543210765432107654321076543210
PN + 3PN + 2PN + 1PN + 0
PAD = 0
Mono/raw
10 bpp
09876543210098765432100
PN + 1PN + 0
PAD = 0
Mono/raw
12 bpp
01110987654321001110987654321001110
PN + 1PN + 0
PAD = 0
Mono/raw
14 bpp
013121110987654321001312111098765432100
PN + 1PN + 0
PAD = 1
Mono/raw
10 bpp
98765432100000009876543210000000
PN + 1PN + 0
PAD = 1
Mono/raw
12 bpp
111098765432100000111098765432100000
PN + 1PN + 0

Table 256. Dump pipe OUTPUT pixel formats(1) (continued)

Bits313029282726252423222120191817161514131211109876543210
PAD = 1
Mono/raw
14 bpp
1312111098765432100013121110987654321000
PN + 1PN + 0
RGB
16 bpp
15141312111098765432101514131211109876543210
PN + 1PN + 0
RGB
24 bpp
(words
0 to 2)
7654321023222120191817161514131211109876543210
PN + 1PN + 0
R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0
1514131211109876543210232221201918171615141312111098
PN + 2PN + 1
G7G6G5G4G3G2G1G0B7B6B5B4B3B2B1B0R7R6R5R4R3R2R1R0G7G6G5G4G3G2G1G0
232221201918171615141312111098765432102322212019181716
PN + 3PN + 2
YUV422-1
(1 word)
313029282726252423222120191817161514131211109876543210
PN + 1PN + 0
Y7Y6Y5Y4Y3Y2Y1Y0V7V6V5V4V3V2V1V0Y7Y6Y5Y4Y3Y2Y1Y0U7U6U5U4U3U2U1U0

1. PN indicates Pixel N.

30.6.3 AXI IP-Plug

The AXI IP-Plug dumps the data of the pipe to the memory via the AXI.

Features

Common software configuration

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

ST logo
ST logo

The common registers R1 and R3 are writable only when the IP-Plug is in Idle mode.

Per-client software configuration

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

The client registers R1 and R3 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 configurable per-client features are the following:

Configuration computations

IP-Plug common configuration:

IP-Plug per-client configuration:

It results with the Client1 assigned to Pipe0:

30.7 Shadow registers

A dump 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 257.

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

Table 257. Shadow and physical registers

Shadow registerPhysical registerTrigger event
DCMIPP_P0FCTCRDCMIPP_P0CFCTCRVsync boundaries
DCMIPP_P0SCSTRDCMIPP_P0CSCSTRVsync boundaries
DCMIPP_P0SCSZRDCMIPP_P0CSCSZRVsync boundaries
DCMIPP_P0PPCRDCMIPP_P0CPPCRVsync boundaries
DCMIPP_P0PPM0AR1DCMIPP_P0CPPxM0AR1Vsync boundaries
DCMIPP_P0PPM0AR2DCMIPP_P0CPPM0AR2Vsync boundaries

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 30.4.5: Pipe deactivation).

30.8 DCMIPP low power modes

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

Table 258. 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.

30.9 DCMIPP interrupts

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

30.9.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:

30.9.2 Interrupts

The DCMIPP handles three interrupt pins, the third being the OR of the first two.

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. Common interrupt: groups the events of the above interrupts in a single register set and drives its own interrupt line.
    • – The third interrupt is designed for systems where a single driver handles the whole DCMIPP: a single access to this interrupt status allows to retrieve the status of the whole DCMIPP.
    • – The first two interrupts are designed for systems where a driver handles a pipe and (potentially) another one drives the parallel interface. In that case, each driver handles its own individual interrupt register set, without need for semaphores to arbitrate conflicting accesses.

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.

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

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

Table 259. 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/PRERRFIE
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

30.9.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 260. Event connection

PipeEvent nameInternal signal
Pipe0HSYNCdcmipp_p0_hsync_evt
VSYNCdcmipp_p0_vsync_evt
Framedcmipp_p0_frameend_evt
Linedcmipp_p0_lineend_evt

30.10 DCMIPP registers

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

Table 261. 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_0xFF0IP version and configuration (without prefix)

30.10.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
MODE
Res.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:

30.10.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.

30.10.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.

30.10.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

30.10.5 DCMIPP IP-Plug Clientx register 1 (DCMIPP_IPCxR1)

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

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.OTR[1:0]Res.Res.Res.Res.Res.TRAFFIC[2:0]
rwrwrwrwrw

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

Bits 9:8 OTR[1:0]: Maximum outstanding transactions

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

1: Maximum two outstanding transactions ongoing.

...

3: Maximum four outstanding transactions ongoing.

Other values are not allowed.

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

30.10.6 DCMIPP IP-Plug Clientx register 2 (DCMIPP_IPCxR2)

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

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 = \(\text{Ratio}(\text{client}) / \text{Sum}(\text{all ratios})\)

0x0: Ratio part = 1

0x1: Ratio part = 2

...

0xF: Ratio part = 16

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

30.10.7 DCMIPP IP-Plug Clientx register 3 (DCMIPP_IPCxR3)

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

Reset value: 0x003F 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGEND[5:0]
rwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGSTART[5:0]
rwrwrwrwrwrw

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

Bits 21:16 DPREGEND[5: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:6 Reserved, must be kept at reset value.

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

30.10.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

0: As received

1: Swapped MSB vs. LSB

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

0: Default

1: Swap active: the data of cycle 1 is used before the data of cycle 0.

The swap must not be activated by software for pixels received in one or three cycles.

Bit 24 Reserved, must be kept at reset value.

Bits 23:16 FORMAT[7:0]:

0x1E: YUV422

0x22: RGB565

0x24: RGB888 (= YUV444)

0x2A: RAW8

0x2B: RAW10

0x2C: RAW12

0x2D: RAW14

0x4A: monochrome 8-bit

0x4B: monochrome 10-bit

0x4C: monochrome 12-bit

0x4D: monochrome 14-bit

0x5A: byte stream (JPEG, compressed video)

Other values: data are captured and output as-is only through the data/dump pipeline (for example JPEG or byte input format).

The monochrome Y input is inserted in the pipe as YUV pixels, with the U and V components set to neutral, to represent a gray color.

Bit 15 Reserved, must be kept at reset value.

Bit 14 ENABLE: Parallel interface enable

0: Parallel interface disabled to lower power consumption

1: Parallel interface enabled

The parallel interface configuration registers must be correctly programmed before enabling this bit.

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.

30.10.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.

30.10.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

ST logo
ST logo

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

30.10.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.

30.10.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.

30.10.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.

30.10.14 DCMIPP common IP HW configuration register (DCMIPP_CMHWCFGR)

Address offset: 0x200

Reset value: 0x0000 0014

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.

30.10.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.Res.Res.Res.CFCRes.Res.Res.Res.
w

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

Bit 7 Reserved, must be kept at reset value.

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

Bit 4 CFC: Clear frame counter

Bit 3 Reserved, must be kept at reset value.

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

Bit 0 Reserved, must be kept at reset value.

30.10.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.

30.10.17 DCMIPP common interrupt enable register (DCMIPP_CMIER)

Address offset: 0x3F0

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
P0
OVR
IE
P0
LIMIT
IE
Res.Res.Res.P0
VSYNC
IE
P0
FRAME
IE
P0
LINE
IE
Res.PR
ERR
IE
ATX
ERR
IE
Res.Res.Res.Res.Res.
rwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value.

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

Bit 27 Reserved, must be kept at reset value.

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

Bit 23 Reserved, must be kept at reset value.

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

Bit 19 Reserved, must be kept at reset value.

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

Bit 15 P0OVRIE: Overrun interrupt enable for Pipe0

0: No interrupt generation

1: An interrupt is generated

Bit 14 P0LIMITIE: Limit interrupt enable for Pipe0

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

Bit 10 P0VSYNCIE: Vertical sync interrupt enable for Pipe0

Bit 9 P0FRAMEIE: Frame capture complete interrupt enable for Pipe0

Bit 8 P0LINEIE: Multi-line capture complete interrupt enable for Pipe0

Bit 7 Reserved, must be kept at reset value.

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.

30.10.18 DCMIPP common status register 1 (DCMIPP_CMSR1)

Address offset: 0x3F4

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
P0CPT
ACT
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRV
SYNC
PRH
SYNC
rrr

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

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

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.

Bits 9: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.

30.10.19 DCMIPP common status register 2 (DCMIPP_CMSR2)

Address offset: 0x3F8

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
P0
OVRF
P0
LIMITF
Res.Res.Res.P0
VSYNC
F
P0
FRAME
F
P0
LINEF
Res.PR
ERRF
ATX
ERRF
Res.Res.Res.Res.Res.
rrrrrrr

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

Bit 27 Reserved, must be kept at reset value.

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

Bit 23 Reserved, must be kept at reset value.

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

Bit 19 Reserved, must be kept at reset value.

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

Bit 15 P0OVRF: Overrun raw interrupt status for Pipe0

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 CP0OVRF bit in the DCMIPP_CMFCR register.

Bit 14 P0LIMITF: Limit raw interrupt status for Pipe0

This bit is set when the data counter DCMIPP_P0DCCNT reaches its maximum value DCMIPP_P0DCLIMIT. It is cleared by writing 1 to the CP0LIMITF bit in the DCMIPP_CMFCR register.

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

Bit 10 P0VSYNCF: VSYNC raw interrupt status for Pipe0

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 CP0VSYNCF bit in the DCMIPP_CMFCR register.

Bit 9 P0FRAMEF: Frame capture completed raw interrupt status for Pipe0

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 CP0FRAMEF bit in the DCMIPP_CMFCR register.

Bit 8 P0LINEF: Multi-line capture completed raw interrupt status for Pipe0

This bit is set when one/more lines have been completed. 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 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 CP0LINEF bit in the DCMIPP_CMFCR register.

Bit 7 Reserved, must be kept at reset value.

Bit 6 PRERRF: Synchronization error raw interrupt status for the parallel interface.

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 CPRERRF bit in the DCMIPP_CMFCR register.

This bit is available only in embedded synchronization mode.

Bit 5 ATXERRF: AXI transfer error interrupt status flag for the IP-Plug.

0: No AXI transfer error detected

1: AXI transfer error occurred on an AXI client. This bit signals an error on a client without any specific hardware action, the software must handle the situation (normally used when debugging software application code).

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

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

30.10.20 DCMIPP common interrupt clear register (DCMIPP_CMFCR)

Address offset: 0x3FC

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
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 Reserved, must be kept at reset value.

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

Bit 27 Reserved, must be kept at reset value.

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

Bit 23 Reserved, must be kept at reset value.

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

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

Bit 15 CP0OVRF: Overrun interrupt status clear

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

Bit 14 CP0LIMITF: limit interrupt status clear

Writing 1 into this bit clears P0LIMITF in the DCMIPP_CMSR2 register

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

Bit 10 CP0VSYNCF: Vertical synchronization interrupt status clear

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

Bit 9 CP0FRAMEF: Frame capture complete interrupt status clear

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

Bit 8 CP0LINEF: Multi-line capture complete interrupt status clear

Writing 1 into this bit clears P0LINEF in the DCMIPP_CMSR2 register

Bit 7 Reserved, must be kept at reset value.

Bit 6 CPRERRF: Synchronization error interrupt status clear

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

This bit is available only in embedded synchronization mode.

Bit 5 CATXERRF: AXI transfer error interrupt status clear

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

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

30.10.21 DCMIPP Pipe0 HW configuration register (DCMIPP_P0HWCFGR)

Address offset: 0x400

Reset value: 0x0000 0008

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

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

30.10.22 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.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bit 31 PIPEN: Activation of PipeN

0: Pipe disabled

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

Note: This bit is not shadowed, differently from all other bits in this register.

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

30.10.23 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)

30.10.24 DCMIPP Pipe0 statistic/crop start register (DCMIPP_P0SCSTR)

Address offset: 0x504

ST logo
ST logo

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

30.10.25 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.

30.10.26 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.

30.10.27 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:

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. The maximum value must not exceed 0x003F FFFF.

30.10.28 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.DBM
rw
1514131211109876543210
LINEMULT[2:0]Res.OELSLSMOEBSBSM[1:0]Res.PADRes.Res.Res.Res.Res.
rwrwrwrwrwrwrwrwrw

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

Bit 16 DBM: Double buffer mode

This bit is set and cleared by software.

0: No double buffer mode activated. Pipe0 always dumps to memory address set by DCMIPP_P0PPM0AR1.

1: Double buffer mode activated. Dump address location switches from DCMIPP_P0PPM0AR1 to DCMIPP_P0PPM0AR2 alternatively on each frame.

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

0x0: Event after one line

0x1: Event after two lines

0x2: Event after four lines

0x3: Event after eight lines

0x4: Event after sixteen lines

0x5: Event after 32 lines

0x6: Event after 64 lines

0x7: Event after 128 lines

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).

0: Interface captures first line after the frame start, second one is dropped

1: Interface captures second line from the frame start, first one is dropped

Bit 10 LSM: Line select mode

0: Interface captures all received lines

1: Interface captures one line out of two

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

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

0: Interface captures the first data (byte or double byte) from the frame/line start, the second one is dropped

1: Interface captures the second data (byte or double byte) from the frame/line start, the first one is dropped

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

00: Interface captures all received data

01: Interface captures 1 data out of 2

10: Interface captures one byte out of four

11: Interface captures two bytes out of four

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

Bit 6 Reserved, must be kept at reset value.

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:0 Reserved, must be kept at reset value.

30.10.29 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.

30.10.30 DCMIPP Pipe0 pixel packer Memory0 address register 2 (DCMIPP_P0PPM0AR2)

Address offset: 0x5C8

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.

30.10.31 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)

30.10.32 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.Res.Res.
r
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.OVR
F
LIMIT
F
Res.Res.Res.VSYNC
F
FRAME
F
LINE
F
rrrrr

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

30.10.33 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.

30.10.34 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
REQ
CPT
MODE
FRATE[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)

30.10.35 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

30.10.36 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.

30.10.37 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.DBM
r
1514131211109876543210
LINEMULT[2:0]Res.OELSLSMOEBSBSM[1:0]Res.PADRes.Res.Res.Res.Res.
rrrrrrrrr

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

Bit 16 DBM: Double buffer mode

0: No double buffer mode activated. Pipe0 is always dump to memory address set by DCMIPP_P0PPM0AR1 register

1: Double buffer mode activated. Dump address location switches from DCMIPP_P0PPM0AR1 register to DCMIPP_P0PPM0AR2 register alternatively on each frame.

30.10.38 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.

30.10.39 DCMIPP Pipe0 current pixel packer Memory0 address register 2
(DCMIPP_P0CPPM0AR2)

Address offset: 0x7C8

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.

30.10.40 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.

30.10.41 DCMIPP hardware configuration register 2 (DCMIPP_HWCFGR2)

Address offset: 0xFEC

Reset value: 0x0000 0010

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

30.10.42 DCMIPP hardware configuration register 1 (DCMIPP_HWCFGR1)

Address offset: 0xFF0

Reset value: 0x0000 0110

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

30.10.43 DCMIPP version register (DCMIPP_VERR)

Address offset: 0xFF4

Reset value: 0x0000 0010

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

30.10.44 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)

30.10.45 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

30.11 DCMIPP register map

Table 262. 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]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 value00
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.IDLE1
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 value1010101000100000110101000
0x020DCMIPP_IPC1R1Res.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.TRAFFIC[2:0]0
Reset value011
0x028DCMIPP_IPC1R3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGEND[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGSTART[5:0]
Reset value1111110000000
0x02C to 0x0FCReservedReserved
0x038DCMIPP_IPC2R3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGEND[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGSTART[5:0]
Reset value1111110000000
0x048DCMIPP_IPC3R3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGEND[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGSTART[5:0]
Reset value1111110000000
0x058DCMIPP_IPC4R3Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGEND[5:0]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DPREGSTART[5:0]
Reset value1111110000000
0x100DCMIPP_PRHWCGRPRHWCGR[31:0]
Reset value00000000000000000000000000000000
0x104DCMIPP_PRCRRes.Res.Res.Res.Res.SWAPBITSSWAPCYCLESRes.FORMAT[7:0]Res.ENABLERes.EDM[2:0]Res.Res.VSPOLHSPOLPCKPOLESSRes.Res.Res.Res.Res.Res.Res.
Reset value00000000000000000000000000
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 0x1F0ReservedReserved

Table 262. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x1F4DCMIPP_PRIERResResResResResResResResResResResResResResResResResResResResResResResResResERRIEResResResResResRes
Reset value0
0x1F8DCMIPP_PRSRResResResResResResResResResResResResResResVSYNCHSYNCResResResResResResResResResERRFResResResResResRes
Reset value110
0x1FCDCMIPP_PRFCRResResResResResResResResResResResResResResResResResResResResResResResResCERRFResResResResResRes
Reset value0
0x200DCMIPP_CMHWCFGRResResResResResResResResResResResResResResResResResResResResResResResResTPGResResResResResRes
Reset value0001001
0x204DCMIPP_CMCRResResResResResResResResResResResResResResResResResResResResResResResResResCFCResResResResRes
Reset value0
0x208DCMIPP_CMFRCRFRMCNT[31:0]
Reset value0000000000000000000000000000000
0x20C-0x3ECReservedReserved
0x3F0DCMIPP_CMIERResResResResResResResResResResResResResResResResP0OVRIEP0LIMITIEResResResResResResResResResResResResRes
Reset value00
0x3F4DCMIPP_CMSR1ResResResResResResResResResResResResResResResResP0CPTACTResResResResResResResResResResResResResRes
Reset value0Res
0x3F8DCMIPP_CMSR2ResResResResResResResResResResResResResResResResP0OVRFP0LIMITFResResResResResResResResResResResResRes
Reset value00
0x3FCDCMIPP_CMFCRResResResResResResResResResResResResResResResResCP0OVRFCP0LIMITFResResResResResResResResResResResResRes
Reset value00
0x400DCMIPP_P0HWCFGRResResResResResResResResResResResResResResResResCROI [3:0]CGM[1:0]CRB[1:0]DBMCDSCPLA[1:0]
Reset value000000010000
0x404DCMIPP_P0FSCRPIPENResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value0
0x408-0x4FCReserved
0x500DCMIPP_P0FCTCRResResResResResResResResResResResResResResResResResResResResResResResResResResCPTREQCPTMODEFRATE [1:0]
Reset value000000

Table 262. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x504DCMIPP_P0SCSTRResResResResVSTART[11:0]ResResResResHSTART[11:0]
Reset value000000000000000000000000
0x508DCMIPP_P0SCSZRENABLEPOSNEGResResVSIZE[11:0]ResResResResHSIZE[11:0]
Reset value0000000000000000000000000
0x50C-0x5ACReservedReserved
0x5B0DCMIPP_P0DCCNTRResResResResResResCNT[25:0]
Reset value0000000000000000000000000
0x5B4DCMIPP_P0DCLMTRENABLEResResResResResResResLIMIT[23:0]
Reset value011111111111111111111111
0x5B8-0x5BCReservedReserved
0x5C0DCMIPP_P0PPCRResResResResResResResResResResResResResResResDBMLINEMULT[2:0]ResResOELSLSMOEBSBSM[1:0]ResPADResResResResResRes
Reset value00000000000
0x5C4DCMIPP_P0PPM0AR1M0A[31:0]
Reset value0000000000000000000000000000000
0x5C8DCMIPP_P0PPM0AR2M0A[31:0]
Reset value0000000000000000000000000000000
0x5CC-0x5F0ReservedReserved
0x5F4DCMIPP_P0IERResResResResResResResResResResResResResResResResResResResResResResResResOVRIELIMITIEResResResResRes
Reset value00
0x5F8DCMIPP_P0SRResResResResResResResResResResResResResResResResResResResResResResResResOVRFLIMITFResResResResRes
Reset value00
0x5FCDCMIPP_P0FCRResResResResResResResResResResResResResResResResResResResResResResResResCOVRFCLIMITFResResResResRes
Reset value00
0x600-0x6FCReservedReserved
0x700DCMIPP_P0CFCTCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRes
Reset value
0x704DCMIPP_P0CSCSTRResResResResVSTART[11:0]ResResResResHSTART[11:0]
Reset value000000000000000000000000
0x708DCMIPP_P0CSCSZRENABLEPOSNEGResResVSIZE[11:0]ResResResResHSIZE[11:0]
Reset value00000000000000000000000000

Table 262. DCMIPP register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x70C-
0x7BC
ReservedReserved
0x7C0DCMIPP_P0CPPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DBMLINEMULT
[2:0]
Res.OELSLSMOEBSBSM[1:0]Res.PADRes.Res.Res.Res.Res.
Reset value0000000000
0x7C4DCMIPP
_P0CPPM0AR1
M0A[31:0]
Reset value00000000000000000000000000000000
0x7C8DCMIPP
_P0CPPM0AR2
M0A[31:0]
Reset value00000000000000000000000000000000
0x7CC -
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.Res.TPGRes.Res.Res.MCURes.Res.DEC2DEC1Res.Res.Res.ADDMODRes.Res.Res.PROCCLKRes.Res.Res.DBMFTRes.VPFT
[2:0]
Reset value00000001000
0xFF0DCMIPP_HWCFGR1ROI2NB
[3:0]
ROI1NB
[3:0]
Res.Res.PLANARTF
[1:0]
Res.Res.Res.RB2RGBRes.DSP2FTDSP1FTRes.Res.Res.Res.IPPLUGCFGRes.Res.PIPENB
[1:0]
Res.Res.Res.CSIFT
Reset value00000000000000010
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 value00010000
0xFF8DCMIPP_IPIDRIDR[31:0]
Reset value00000000000101100010000000100001
0xFFCDCMIPP_SIDRSID[31:0]
Reset value10100011110001011101110100000100

Refer to Section 2.5: Memory organization for the register boundary addresses.