2–39
The color-key function is controlled by the color-key-control register bits CKC0–CKC4 according to the
following equation.
COLOR–KEY = [(OL + CKC0)
×
(R + CKC1)
×
(G + CKC2)
×
(B + CKC3)]
⊕
CKC4
where: OL = 1
if
if
if
if
color-key OL low
color-key red low
color-key green low
color-key blue low
≤
overlay (see Note)
≤
direct color (RED)
≤
direct color (GREEN)
≤
direct color (BLUE)
≤
color-key OL high
≤
color-key red high
≤
color-key green high
≤
color-key blue high
R = 1
G = 1
B = 1
then
if
if
COLOR–KEY = 1, overlay or true-color is displayed.
COLOR–KEY = 0, direct-color is displayed.
NOTE:
CKC0–CKC3 can be used to individually enable or disable colors in the
comparison for maximum flexibility. If color-key switching is not desired,
CKC0–CKC3 should be set to logic 0. CKC4 is then used to set the default for either
direct color or palette graphics. The default condition at reset is CKC0 = CKC1 =
CKC2 = CKC3 = CKC4 = logic 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 per 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 0s before the 8-bit comparisons are
performed.
The palette bypass bit (MSC5) and the color-key switching function are integrated
like a logical OR function. If either selects palette graphics (true-color or overlay
through the palette RAM), palette graphics will be displayed instead of direct-color.
2.11 Overscan Border
The TVP3030 provides the capability to produce a custom screen border using the overscan function. The
overscan function is enabled by general-control register bit GCR6 (index: 0x1D). The overscan color is user-
programmable by loading the overscan color red, green, and blue registers (see Section 2.3).
If the overscan function is enabled (GCR6 = logic 1), then the overscan color is displayed any time that OVS
is high and BLANK is low (active). The blanking pedestal will be imposed on the analog outputs when both
OVS and BLANK are low. If 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.