![](http://datasheet.mmic.net.cn/370000/TVP3026-135_datasheet_16743199/TVP3026-135_50.png)
2–36
NOTES
CKC0–CKC3 can be used to individually enable or disable certain colors in the
comparison for maximum flexibility. When color-key switching is not desired,
CKC0–CKC3 should be set to 0. CKC4 then sets the default for either direct color
or palette graphics. The default condition at reset is CKC0 = CKC1 = CKC2 = CKC3
= CKC4 = 0. This causes the color-key function to default to direct-color graphics.
The color-key comparison for the overlay data is performed after the read mask and
palette page registers so that an 8-bit comparison can be performed. This also
gives the maximum flexibility to the user in performing the color comparisons. If the
overlay defined for a given mode is less than 8 bits per pixel, the data is shifted to
the LSB locations and the palette-page register (index: 0x1C) fills the remaining
MSB positions.
For those direct-color modes that have less than 8 bits for each pixel of red, green,
and blue direct-color data, the data is internally shifted to the MSB positions for
each color and the remaining LSB bits are filled with zeros before the 8-bit
comparisons are performed.
2.9
The TVP3026 provides the capability to produce a custom screen border using the overscan function. The
overscan function is enabled by the general-control register bit GCR6. The overscan color is user-
programmable by loading the overscan color red, green, and blue registers (see subsection 2.1.4, Cursor
and Overscan Color Registers).
Overscan Border
When the overscan function is enabled (GCR6 = 1), then the overscan color is displayed any time that OVS
is high and BLANK is low (active). The blanking pedestal is imposed on the analog outputs when both OVS
and BLANK are low. When overscan is disabled, then the blanking pedestal occurs whenever BLANK is low.
The OVS terminal is always sampled on LCLK. Therefore, overscan can only be used with the VGA port
in VGA mode 1 (MSC6 = 1 in the multiplex control register). This selects SYSBL, SYSHS, SYSVS, and LCLK
latching of the VGA port.
Figure 2–10 demonstrates the use of OVS to produce a custom overscan screen border.