![ARTERY AT32F435 Series Reference Manual Download Page 646](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592646.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 646
Rev 2.03
packs two captured data into a word data. The word data is made up of two half words. The first captured
data is placed in the 12 least significant bits of the least significant half word, and the last captured data
is placed in the 12 least significant bits of the most significant half word, and the remaining are cleared
to zero.
14-bit parallel data (PDL=3)
When the PDL bit is programmed to 3, the DVP captures a 14-bit data every DVP_PCLK clock, and
packs two captured data into a word data. The word data is made up of two half words. The first captured
data is placed in the 14 least significant bits of the least significant half word, and the last captured data
is placed in the 14 least significant bits of the most significant half word, and the remaining are cleared
to zero.
Figure 27-8 PDL configuration and data output packing
15
8 7
0
31
24 23
16
D0
D1
D2
D3
8-bit (PDL=0)
15
10 9
0
31
26 25
16
D0
6'b0
D1
6'b0
10-bit (PDL=1)
15
12 11
0
31
28 27
16
D0
4'b0
D1
4'b0
12-bit (PDL=2)
1514
13
0
3130
29
16
D0
2'b0
D1
2'b0
14-bit (PDL=3)
27.5 Interrupts and interrupt control
There are four registers available to control the interrupts of the DVP interface. The read-only
DVP_ESTS register is used to describe the synchronization status of error events occurred over the
course of sampling. The DVP_IENA is used to control interrupt signals, and it can be programmed to
enable the synchronization status or error interrupts of the corresponding bits, and send them to CPU.
The interrupts, after enabled, are stored in the read-only DVP_ISTS register, which is used to check the
event sources. The status in the DVP_ESTS and DVP_ISTS can be cleared by setting the corresponding
bit in the DVP_ICLR register. The DVP_ICLR is a write-only register and does not need to be cleared.
DVP supports three synchronization status interrupts:
Capture frame done
When the CFDES and CFDIS bits are set (CAP enabled), it indicates the completion of the current frame
capture. Based on the synchronization logic, the frame capture completed interrupt occurs when the
frame end signal is detected. If the Crop feature is enabled, the frame capture completed interrupt occurs
before the end of the crop window. If the Crop feature is not enabled, both CFDES and CFDIS bits have
no effect.
Vertical synchronization
The VSES and VSIS bits indicate that vertical synchronization has been obtained. Vertical
synchronization can be defined as the start or end of a frame, depending on the VSEID bit in the
DVP_ACTRL register.
Horizontal synchronization
The HSES and HSIS bits indicate that horizontal synchronization has been obtained. The horizontal
synchronization can be defined as the start or end of a line, depending on the HSEID bit in the
DVP_ACTRL register.
The DVP supports two types of error interrupts:
Output data FIFO overrun
The OVRES and OVRIS bits (CAP enabled) indicate the error status of output data FIFO overrun. If