![](http://datasheet.mmic.net.cn/390000/TVP3010C_datasheet_16839161/TVP3010C_47.png)
2–31
NOTE:
When the VGA port is activated (MCR2 bit 7 = 1), the OL/VGA register (low,high)
color comparison is performed on VGA data and the VGA port is color-key-
switched. When the VGA port is not activated (MCR2 bit 7 = 0) the comparison is
performed on overlay data and overlay is color-key switched.
Color-key switching is supported for all direct-color multiplexing modes that have
overlay capability when doing overlay switching. When doing VGA switching, all
direct-color modes are supported as long as the multiplex ratio is 1:1. The
direct-color multiplex mode is set in multiplexer control registers 1 and 2.
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 is then used to set the default for either
direct color or palette graphics. The default condition at reset is CKC0 = CKC1 =
CKC2 = CKC3 = 0 and CKC4 = 1. This causes the function to default to palette
graphics as required for VGA pass-through mode.
The color-key comparison for the overlay and VGA 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. When 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 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 windowing and color-key functions are integrated so that when either switch
= 1 (windowing case, see subsection 2.6.1) or color key = 1, palette graphics are
displayed (overlay or VGA depending on multiplexer control register 2 bit 7) instead
of direct-color data. Both functions must be correctly set for proper operation.
Overscan
The TVP3010C and TVP3010M VIPs provide the capability to produce a custom-overscan screen border
using the overscan function. The overscan function is controlled by general control register (GCR)-bits 6
and 7. GCR bit 6 is used to enable overscan, and GCR bit 7 specifies whether the overscan area is defined
by the 8/6 [OVS] terminal or by internal circuitry. The overscan color is user programmable by writing to the
overscan color red, green, and blue registers in the indirect register map. For the 8/6 [OVS] terminal to
control overscan, it needs to be configured as the OVS input by setting configuration register-bit 1 (CR1)
to 1. When OVS is configured the 8/6 [OVS] function is controlled by configuration register-bit 0 (CR0), which
defaults to a 6-bit operation.
When the overscan function is enabled (GCR6 = 1) and the 8/6 [OVS] terminal is used to control the area
of overscan (GCR7 = 0), then overscan color is displayed any time that OVS is high and Blank
is low
(active). Note that Blank is the internal blank signal and can either be generated from VGABL or SYSBL
depending on the mode selected. When the VIP internal circuitry is chosen to generate overscan
(GCR7 = 1), then internal vertical and horizontal sync and blanking signals define the overscan display area.
Whenever Blank is active and vertical and horizontal sync are inactive, overscan is displayed. Internally
generated timing may not work with some CRT monitors.
When overscan is enabled, then the blanking pedestal is imposed on the analog outputs when OVS is high
and Blank is low. If overscan is disabled, then the blanking pedestal occurs when Blank is low. Blank can
be either SYSBL or VGABL depending on the state of multiplexer control register 2 bit 7.
2.7
The Blank and Blank references are internal signals.