![ARTERY AT32F435 Series Reference Manual Download Page 650](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592650.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 650
Rev 2.03
Figure 27-13
PCDC/PCDS and line structure
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 0
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 1, PCDS = 0
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 1, PCDS = 1
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 2, PCDS = 0
PCDES = 0
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 2, PCDS = 0
PCDES = 1
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 2, PCDS = 1
PCDES = 0
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 2, PCDS = 1
PCDES = 1
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 3, PCDS = 0
...
...
N -4
N -3
N -2
N -1
0
1
2
3
4
5
6
7
PCDC = 3, PCDS = 1
Captured pixel data
Dropped pixel data
Note: The output format of the CMOS video camera must be determined while configuring PCDC and
PCDS bits. Some configurations may cause the change in data formats. Refer to Section 27.7.3 for
more information.
Enhanced image reduction feature
The advanced image reduction feature can be used to obtain a fine image scaling. To enable this
feature,
EFDM=1 must be set, and the EFDF must be programmed based on the output formats of
the CMOS video camera. Refer to Section 27.7.3 for more information. When the enhanced image
reduction feature is used,
PCDC=0 and LCDC=0 must be configured, and the
EISRE bit must be set
in the DVP_ACTRL register. The DVP adjusts the size of the horizontal axis of an image through the
HSRSF and HSRTF bits in the DVP_HSCF register, and modifies the size of the vertical axis of an
image through the VSRSF and VSRTF bits in the DVP_VSCF register, based on the following
formula:
𝑇
𝑎𝑟𝑔𝑒𝑡 ℎ𝑜𝑟𝑖𝑧𝑜𝑛𝑡𝑎𝑙 𝑎𝑥𝑖𝑠 𝑠𝑖𝑧𝑒 =
𝐻𝑆𝑅𝑇𝐹
𝐻𝑆𝑅𝑆𝐹
× 𝑂𝑟𝑖𝑔𝑖𝑛𝑎𝑙 ℎ𝑜𝑟𝑖𝑧𝑜𝑛𝑡𝑎𝑙 𝑎𝑥𝑖𝑠 𝑠𝑖𝑧𝑒
𝑇𝑎𝑟𝑔𝑒𝑡 𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 𝑎𝑥𝑖𝑠 𝑠𝑖𝑧𝑒
=
𝑉𝑆𝑅𝑇𝐹
𝑉𝑆𝑅𝑆𝐹
× 𝑂𝑟𝑖𝑔𝑖𝑛𝑎𝑙 𝑣𝑒𝑟𝑡𝑖𝑐𝑎𝑙 𝑎𝑥𝑖𝑠 𝑠𝑖𝑧𝑒
Note: When using the enhanced image reduction feature, the HSRSF, HSRTF, VSRSF and VSRTF bits
must not be set to 0, the HSRTF bit must not be greater than that of the HSRSF bit, and the VSRTF bit
must not be higher than that of the VSRSF bit. Additionally, the calculated target horizontal size and
target vertical size must be integers, and the target horizontal size must be a multiple of 4, otherwise,
unpredictable results may be generated.