61 lines
2.6 KiB
ReStructuredText
Executable File
61 lines
2.6 KiB
ReStructuredText
Executable File
DVP Camera Introduction
|
|
=======================
|
|
|
|
:link_to_translation:`zh_CN:[中文]`
|
|
|
|
1 Introduction to DVP
|
|
--------------------------
|
|
The current DVP camera is based on the CIS interface and only supports 20/24Pin 8bit data output. The internal register model of the sensor is configured
|
|
through the I2C protocol to achieve the required output resolution, frame rate, exposure and other performance adjustments.
|
|
In addition, for the output data of the sensor, it is necessary to use the hardware module for further editing. For example,
|
|
the YUV_BUF module is used to cut and convert the YUV422 data output of the sensor into YUV420, and then the H264 module is
|
|
used for encoding to reduce the use of memory space and perform more functions. Or directly for YUV422 data using JPEG module encoding,
|
|
output is more stable and memory space use smaller image.
|
|
|
|
2 Types and specifications supported by DVP
|
|
-----------------------------------------------
|
|
|
|
Supported peripherals, please refer to `Support Peripherals <../../support_peripherals/index.html>`_
|
|
|
|
3 DVP use process
|
|
------------------------
|
|
|
|
- 1.Power on and clock configure each multimedia hardware module, including YUV_BUF/JPEG/H264 module, and supply power to the sensor;
|
|
- 2.Initialize I2C, because I2C needs to be used to configure the DVP register and specify the write/read address of the DVP
|
|
- 3.configure the DVP GPIO second function, so that the output can be detected in real time
|
|
- 4.Configure the input clock of the sensor. There are two sources of the clock: clock division for YUV_BUF and clock division for AUXS
|
|
- 5.Configure the register value of YUV_BUF/JPEG/H264 according to the specific application, and configure DMA to process the data, and finally enable related modules;
|
|
- 6.Configure the register value of the sensor through I2C to achieve the ideal output data;
|
|
|
|
4 Main applications of DVP working mode
|
|
------------------------------------------
|
|
|
|
DVP cameras can rely on different hardware modules to meet different needs, and several main applications are listed below.
|
|
|
|
1.DVP works in YUV (or GRAY) mode
|
|
|
|
.. figure:: ../../../_static/dvp_work_in_yuv.png
|
|
:align: center
|
|
:alt: dvp_work_in yuv
|
|
:figclass: align-center
|
|
|
|
Figure 1.DVP works in YUV (or GRAY) mode
|
|
|
|
2.DVP works in JPEG(or JPEG&YUV) mode
|
|
|
|
.. figure:: ../../../_static/dvp_work_in_jpeg.png
|
|
:align: center
|
|
:alt: dvp_work_in jpeg
|
|
:figclass: align-center
|
|
|
|
Figure 2.DVP works in JPEG mode
|
|
|
|
3.DVP works in H264(or h264&YUV) mode
|
|
|
|
.. figure:: ../../../_static/dvp_work_in_h264.png
|
|
:align: center
|
|
:alt: dvp_work_in h264
|
|
:figclass: align-center
|
|
|
|
Figure 3.DVP works in H264 mode
|