1999 Aug 25
44
Philips Semiconductors
Preliminary specification
XGA RGB to TFT graphics engine
SAA6712E
8.3.3
G
AIN CORRECTION PULSE GENERATION
The GAINC signal is the delayed horizontal sync pulse (VHS). It is delayed with respect to half the dot clock. The first
edge of VHS is delayed by gainc_on_delay and the second edge by gainc_off_delay (see Fig.11). The polarity is
programmed by gainc_pol.
Fig.11 Gain adjustment and clamp pulse generation.
handbook, full pagewidth
MHB254
RGB data
GAINC
CLAMP
gainc_off_delay
gainc_on_delay
clamp_on
clamp_off
8.4
Video mode and synchronization signal
detection
TheSAA6712Ecanbeusedtobuildupauto-scansystems
using an external microcontroller. Therefore information
about the input resolution and timing are provided
(see Tables 5 and 6).Theflagspos_vsyncandpos_hsync
show the polarity of the synchronization signals at VVS
and VHS. If they are set to logic 1 they are active HIGH,
and their active edge is the falling edge. If these flags are
set to logic 0, they are active LOW.
For detecting Video Electronic Standard Association
(VESA) Power-down modes or a not connected input, the
presence of the synchronization signals will be detected:
it can be read via no_vsync, and no_hsync. These flags
areactiveHIGH.ThetimingoftheappliedRGBvideoinput
can be taken from v_lines reporting the number of lines of
a full frame. The horizontal timing can be calculated from
h_clocks. This register shows the length of a line in
numbersofreferenceclockperiods.Thereferenceclockis
equal to the panel clock PCLK in double pixel output mode
(48 bits in parallel), or it is half the panel clock PCLK in
single pixel output mode (24 bits in parallel).
If one of the above mentioned flags or counters changes
its value, it can be assumed that a new graphics mode has
been applied. In this case an interrupt at pin INT will be
generated. This port is active LOW.
The reset can be cleared by writing a logic 1 to intr_clear
at address 24.
For adjusting the RGB input interface to a new graphics
mode, the registers of the section RGB auto adjustment
are to be used. With this auto adjustment support it is
possible to measure the number of blanking pixels and
lines between the end of the synchronization pulses and
the active video. The horizontal and vertical back porch
blanking can be read out at black_pixels and black_lines.
The number of active pixels or lines will be reported from
non_black_pixels and non_black_lines. The first value
should be used for tuning the sample clocks PLL so that
this value corresponds to the number of pixels to be
sampled horizontally in this specific graphics mode.
To distinguish between blanking and active video
ref_colour is used. If the sample values of all three colour
components are below this value the pixel is treated as a
blanking pixel, otherwise it is treated as active video.
Additionally a reference pixel can be defined with ref_line
andref_pixel.TheR,G,andBcomponentsofthispixelare
sampled and available at ref_pixel_red, ref_pixel_green,
and ref_pixel_blue. They can be used for fine tuning the
external PLL in frequency and phase and for colour gain
adjustment.