
2–30
The use of PSEL to create multiple VGA windows in a direct-color background can be accomplished by
setting ACR0 = ACR1 = 0 and ACR2 = 1. PSEL is then set to 1 wherever VGA display is desired. This is
illustrated in Figure 2–11. The user can also configure the port select to switch between overlay and direct
color (MCR2 bit 7 = 0 not shown) and also invert the fields (ACR0 = 1).
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
ééééééééééééé
Figure 2–11. Multiple VGA Windows Using Port Select (PSEL)
VGA
PSEL
2.6.2
Both VIPs support color-key switching modes in which color data from the direct-color and overlay or VGA
ports is compared to a set of user-definable color-key registers. Based on the outcome of the comparison,
either direct color, overlay, or VGA is displayed (see the following NOTE). High and low color-key registers
are provided for each color and overlay/VGA so that ranges of colors can be compared as opposed to a
single-color value. The register-bit definitions for the color-key OL/VGA (low, high), color-key red (low, high),
color-key green (low, high), and color-key blue (low, high) range registers are shown in subsection 2.16.13.
The color-key function is controlled by the color-key control register bits 0–4. This register definition is
shown in subsection 2.16.12.
Color-Key Switching Control
Color-key switching is performed according to equation 2:
color key = [(OL + CKC0)
×
(R + CKC1)
×
(G + CKC2)
×
(B + CKC3)]
⊕
CKC4
(2)
where: OL = 1
if color-key OL/VGA low
≤
overlay or VGA (Note 24)
if color-key red low
≤
direct color (RED)
if color-key green low
≤
direct color (GREEN)
if color-key blue low
≤
direct color (BLUE)
≤
color-key OL/VGA high
≤
color-key red high
≤
color-key green high
≤
color-key blue high
R = 1
G = 1
B = 1
then
if color key = 1, overlay or VGA is displayed.
if color key = 0, direct-color is displayed.