Color Palette; Color Palette Registers H, L000-255 (Cp000Rh, L-Cp255H, L) - Hitachi HD64411 Q2 User Manual

Quick 2d graphics renderer
Table of Contents

Advertisement

5 . 8

Color Palette

The color palette is mapped onto addresses (A10–A1) H'100 to H'2FF. Settings can be made for
256 pixels, with 6 bits each for R, G, and B. The color palette is only valid when the GBM bit in
the rendering mode register (REMR) is 0 (8 bits/pixel). When the GBM bit is set to 1 (16
bits/pixel), the color palette values set when the GBM bit is 0 (8 bits/pixel) are lost.
5 . 8 . 1
Color Palette Registers H, L000–255 (CP000RH, L–CP255H, L)
Bit:
15
14
CP000RH
Initial value:
Read/Write:
Bit:
15
14
CP000RL
G000 (Green: 6 bits)
Initial value:
*
*
Read/Write:
R/W
R/W
Bit:
15
14
CP001RH
Initial value:
Read/Write:
Bit:
15
14
CP001RL
G001 (Green: 6 bits)
Initial value:
*
*
R/W
R/W
Read/Write:
Bit:
15
14
CP255RH
Initial value:
Read/Write:
15
14
Bit:
CP255RL
G255 (Green: 6 bits)
Initial value:
*
*
Read/Write:
R/W
R/W
Note: * Value is retained.
158
13
12
11
10
9
13
12
11
10
9
*
*
*
*
R/W
R/W
R/W
R/W
13
12
11
10
9
13
12
11
10
9
*
*
*
*
R/W
R/W
R/W
R/W
13
12
11
10
9
13
12
11
10
9
*
*
*
*
R/W
R/W
R/W
R/W
8
7
6
5
4
R000 (Red: 6 bits)
*
*
*
*
R/W
R/W
R/W
R/W
8
7
6
5
4
B000 (Blue: 6 bits)
*
*
*
*
R/W
R/W
R/W
R/W
8
7
6
5
4
R001 (Red: 6 bits)
*
*
*
*
R/W
R/W
R/W
R/W
8
7
6
5
4
B001 (Blue: 6 bits)
*
*
*
*
R/W
R/W
R/W
R/W
.
.
.
8
7
6
5
4
R255 (Red: 6 bits)
*
*
*
*
R/W
R/W
R/W
R/W
8
7
6
5
4
B255 (Blue: 6 bits)
*
*
*
*
R/W
R/W
R/W
R/W
3
2
1
0
*
*
R/W
R/W
3
2
1
0
*
*
R/W
R/W
3
2
1
0
*
*
R/W
R/W
3
2
1
0
*
*
R/W
R/W
3
2
1
0
*
*
R/W
R/W
3
2
1
0
*
*
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents