2–48
2.16.7
The color-key control register definition is listed in Table 2–28.
Color-Key Control Register (Index: 0x38, Access: R/W, Default: 0x00)
Table 2–28. Color-Key Control Register
BIT NAME
VALUES
DESCRIPTION
CKC7 CKC5
CKC7–CKC5
000: 1
×
zoom
001: 2
×
zoom
010: 4
×
zoom
011: 8
×
zoom
100: 16
×
zoom
101: 32
×
zoom
0: True function
(default)
Horizontal zoom factor When other than 1
zoom is selected the internal pixel
Horizontal zoom factor. When other than 1
×
zoom is selected, the internal pixel
multiplier is configured such that it loads pixel data at a reduced rate. Also, the
RCLK frequency must be modified to facilitate the new reduced rate. The new
RCLK frequency should be chosen as the old RCLK frequency divided by the
zoom factor The horizontal zoom function applies only to the pixel port
zoom factor. The horizontal zoom function applies only to the pixel port
(P127–P0) data. VGA data cannot be zoomed.
CKC4
Color-key select. Complementary function bit. See the equation in Section 2.10.
Color key select. Complementary function bit. See the equation in Section 2.10.
1: Complementary
CKC3
0: Disable
compare
(default)
Blue-compare enable. This is used to enable or disable the direct-color blue field
comparison. See the equation in Section 2.10.
1: Enable compare
CKC2
0: Disable
compare
(default)
Green-compare enable. This is used to enable or disable the direct-color green
field comparison. See the equation in Section 2.10.
1: Enable compare
CKC1
0: Disable
compare
(default)
Red-compare enable. This is used to enable or disable the direct-color red field
comparison. See the equation in Section 2.10.
1: Enable compare
CKC0
0: Disable
compare
(default)
Overlay compare enable. This is used to enable or disable the overlay field
comparison. See the equation in Section 2.10.
1: Enable compare
2.16.8
Color-Key (Overlay, Red, Green, Blue) Registers (Index: 0x30–0x37,
Access: R/W, Default: Uninitialized)
These registers are used to specify the color comparison ranges for the four direct-color data fields when
performing color-key switching. A low and a high register are provided for each of the four data fields to
facilitate the range comparison. See Section 2.10 for more details on their usage. There are eight registers
total, two for each color. The formats for both low and high registers are shown below. Values 0 to 0xFF may
be written into the four color key low and four color key high registers.
COLOR-KEY LOW
D4
Data Bit
D7
D6
D5
D3
D2
D1
D0
Low Value
L7
L6
L5
L4
L3
L2
L1
L0
Index = 0x30, 0x32, 0x34, and 0x36