English
Language : 

RM0385 Datasheet, PDF (483/1644 Pages) STMicroelectronics – This reference manual targets application developers
RM0385
Digital camera interface (DCMI)
Figure 104.Timing diagram
Beginning of JPEG stream
JPEG packet size
programmable
Padding data at the
end of the JPEG stream
JPEG data
HSYNC
End of JPEG stream
VSYNC
JPEG packet data
Packet dispatching depends on the image content.
This results in a variable blanking duration.
ai15944
Hardware synchronization mode
In hardware synchronization mode, the two synchronization signals (HSYNC/VSYNC) are
used.
Depending on the camera module/mode, data may be transmitted during horizontal/vertical
synchronization periods. The HSYNC/VSYNC signals act like blanking signals since all the
data received during HSYNC/VSYNC active periods are ignored.
In order to correctly transfer images into the DMA/RAM buffer, data transfer is synchronized
with the VSYNC signal. When the hardware synchronisation mode is selected, and capture
is enabled (CAPTURE bit set in DCMI_CR), data transfer is synchronized with the
deactivation of the VSYNC signal (next start of frame).
Transfer can then be continuous, with successive frames transferred by DMA to successive
buffers or the same/circular buffer. To allow the DMA management of successive frames, a
VSIF (Vertical synchronization interrupt flag) is activated at the end of each frame.
Embedded data synchronization mode
In this synchronisation mode, the data flow is synchronised using 32-bit codes embedded in
the data flow. These codes use the 0x00/0xFF values that are not used in data anymore.
There are 4 types of codes, all with a 0xFF0000XY format. The embedded synchronization
codes are supported only in 8-bit parallel data width capture (in the DCMI_CR register, the
EDM[1:0] bits should be programmed to “00”). For other data widths, this mode generates
unpredictable results and must not be used.
DocID026670 Rev 1
483/1644
502