Data Measurement (DMEAS)
ADE3700
2.9.7
DE Size
The DE Size measures the number of INCLKS clock cycles per data enable. It is useful for DVI
inputs to exactly measure the input image horizontal size.
At the end of the measurement (DE falling edge), the measured value is compared to a
programmed expected value ± a programmed threshold. If the expected value is within the
threshold, the DE_size_mismatch flag is not set. If the measured size is outside of the threshold,
the DE_size_mismatch flag is set.
In Free-running mode, the results are updated every line. The DE_size_mismatch flag is set at DE
falling edge and reset at DE rising edge.
In One-shot mode, the results are updated once and stay that way until they are cleared by
software. The DE_size_mismatch flag can only be cleared when the reset flag bit is set by software.
Table 13: DMEAS Output Register Mapping
DMEAS_DATA_0
DMEAS_DATA_1
DMEAS_DATA_2
DMEAS_DATA_3
DMEAS_DATA_4
DMEAS_DATA_5
DMEAS_DATA_6
DMEAS_DATA_7
ALG_SEL = 00
EDGE_OUT [7:0]
EDGE_OUT [15:8]
EDGE_OUT [23:16]
EDGE_OUT [31:24]
PSUM_OUT [7:0]
PSUM_OUT [15:8]
PSUM_OUT [23:16]
PSUM_OUT [31:24]
ALG_SEL = 01
MIN_OUT [7:0]
MAX_OUT [7:0]
PCD_OUT [7:0]
PCD_OUT [15:8]
PCD_OUT [23:16]
8’h00
8’h00
8’h00
ALG_SEL = 10
HPOS_MIN [7:0]
HPOS_MIN [11:8]
HPOS_MAX [7:0]
HPOS_MAX [11:8]
VPOS_MIN [7:0]
VPOS_MIN [11:8]
VPOS_MAX [7:0]
VPOS_MAX [11:8]
ALG_SEL = 11
DE_SIZE_OUT [7:0]
DE_SIZE_OUT [15:8]
DE_MISMATCH_FLAG
8’h00
8’h00
8’h00
8’h00
8’h00
Register Name
DMEAS_AEC_CTRL
Table 14: Data Measurement Registers (Sheet 1 of 3)
Addr
0x0900
Mode Bits
[7:6]
R/W
[5]
R/W
[4]
R/W
[3]
R/W
[2]
R/W
[1:0]
Default
Description
0x0
color select
00: all
01: red
10: green
11: blue
0x0
vsync edge select
0: rising edge
1: falling edge
0x0
hsync edge select
0: rising edge
1: falling edge
0x0
interlace mode enable
0x0
0: use data valid (tv mode only)
1: use data enable for data valid
0x0
algorithm select
00 = Edge Intensity & Pixel Sum
01 = Min / Max & PCD
10 = H position and V position
11 = DE size
40/89