
Genesis Microchip
gm5060 / gm5060-H Data Sheet
February 2002
C5060-DAT-01G
34
4.7.2 Input Data Measurement
The gm5060 provides a number of pixel measurement functions intended to assist in configuring
system parameters such as pixel clock, sample clocks per line, sampling phase, centering the
image, or adjusting the contrast and brightness.
4.7.2.1. Input Boundary Detection
Since there is no DE signal present in the analog source, the data from the ADC must be
examined to determine when the active data starts and ends. The Input Boundary Detection
block (IBD) measures and identifies the vertical and horizontal active region within the input
data stream.
IBD monitors the input data throughout the frame to locate the first and last pixels exceeding a
programmable threshold. The vertical and horizontal locations are latched into corresponding
registers at the conclusion of each frame during the VSYNC interval. Horizontal results are in
terms of pixels while vertical results are in terms of lines. Correct results require the input image
to have at least one pixel of boundary on each edge.
4.7.2.2. Sum of Differences Measurement
The gm5060 contains a feature called Sum of Differences. The Sum of difference feature
compares consecutive pixel values to a programmable threshold, adding the absolute-valued
difference to an accumulator when the difference exceeds the threshold. The process occurs over
the entire active region - the total number of summations equal to (number of horizontal active
pixels – 1) x (number of vertical active pixels). The results are latched during the VSYNC
interval and the accumulator is reset. The sum of difference feature is normally used to
determine the correct ADC sampling phase.
True Active
Region
IBD_HWIDTH
IBD_VLENGTH
IBD_HSTART, IBD_VSTART
(0,0) Reference point is rising edge of HSYNC/VSYNC
SUMDIFF =
∑
|
P
N
– P
N-1
|