![ARTERY AT32F435 Series Скачать руководство пользователя страница 643](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592643.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 643
Rev 2.03
SAV/EAV type
In this mode, the CMOS camera also uses four embedded synchronization codes to deliver
synchronization information. The line within a frame uses the
active SAV code to indicate the end of
blanking area and the start of a valid pixel. At the end of the last valid pixel data of each line, the
active SAV code is embedded signaling that the data following this are vertical blanking. The vertical
blanking area is used to separate frames. In a vertical blanking area, the embedded synchronization
code is still based on the line level. The blanking SAV code indicates the start of the line, while the
blanking EAV indicates the end of the line. Figure 27-5 shows the relationship between blanking area,
valid pixel and synchronization code.
To enable
SAV/EAV
reception, the corresponding bits in the DVP_SCR register are configured as follows:
FMSC: Set as 0xff (embedded synchronization mode without frame start synchronization mode)
LNSC: The 4
th
captured data of Active SAV is placed in the 8 most significant bits
LNEC: The 4
th
captured data of Active EAV is placed in the 8 most significant bits
FMEC: Set as 0xff (embedded synchronization mode of arbitrary frame end synchronization mode)
Figure 27-5
SAV/EAV frame composition
Vertical blanking
Vertical blanking
Blanking
SAV
Active
SAV
Active
EAV
Horizontal blanking
DataLine 0
DataLine N-1
Blanking
SAV
Blanking
EAV
Blanking
EAV
Horizontal blanking
DataLine 1
Some of the CMOS cameras use some bits of the forth codes in one or several synchronization
codes to pass on additional information. The DVP_SUR register can be used to mask the comparison
behavior of decoder for the misappropriated bits of the synchronization code. The reset value 0x00
and 0xff configuration both can indicate the complete synchronization code comparison.
Table 27-2 gives the physical signals used in DVP in embedded synchronization mode. The use of
the DVP_D depends on the configurations of parallel data bits and alignment. Refer to
Section 27.3.3
for more information. The unused signals must not be configured with the multiplexed functions.
Table 27-2 DVP pin use in em bedded synchronization m ode
Signal name
Signal direction
Signal description
DVP_D[m:n]
Input
DVP pixel parallel data
DVP_PCLK
Input
DVP pixel clock
27.3.3 Data alignment
The parallel data bits and data alignment of the CMOS camera vary from supplier to supplier, and from
model to model. To ensure the greatest degree of flexibility, the IDUS and IDUN bits in the DVP_ACTRL
register can be used for the management of data alignment. Table 27-3 lists the CMOS camera parallel
pin count, parallel data bits and alignment, and corresponding DVP register configuration and the use of
DVP_D pin.