Palette Usage - Samsung S3C2416 User Manual

16/32-bit risc
Table of Contents

Advertisement

LCD CONTROLLER

2.6 PALETTE USAGE

2.6.1 Palette Configuration and Format Control
The LCD controller can support the 256 colors palette for various selection of color mapping.
The user can select 256 colors from the 24-bit colors through these four formats.
256 colors palette consist of the 256(depth) × 25-bit DPSRAM. Palette supports 8:8:8, 6:6:6, 5:6:5(R:G:B), and etc
format.
For example of A:5:5:5 format, write palette like Table 21-3 and then connect VD pin to LCD
panel( R(5)=VD[23:19], G(5)=VD[15:11], and B(5)=VD[7:3] ). Select Alpha value in Window 1 Alpha Value
Register. At the last, Set Window Palette Control(W0PAL, case window0) register to 0'b101.
INDEX\
24
23
22
Bit Pos.
00H
AEN
R7
R6
01H
AEN
R7
R6
.......
...
...
...
FFH
AEN
R7
R6
-
23
22
Number
of VD
21-20
Table 21-1. 25BPP(A:8:8:8) Palette Data Format
21
20
19
18
17
16
R5
R4
R3
R2
R1
R0
R5
R4
R3
R2
R1
R0
...
...
...
...
...
...
R5
R4
R3
R2
R1
R0
21
20
19
18
17
16
15
14
13
12
11
10
G7
G6
G5
G4
G3
G2
G7
G6
G5
G4
G3
G2
...
...
...
...
...
...
G7
G6
G5
G4
G3
G2
15
14
13
12
11
10
S3C2416X RISC MICROPROCESSOR
9
8
7
6
5
4
G1
G0
B7
B6
B5
B4
G1
G0
B7
B6
B5
B4
...
...
...
...
...
...
G1
G0
B7
B6
B5
B4
9
8
7
6
5
4
3
2
1
0
B3
B2
B1
B0
B3
B2
B1
B0
...
...
...
...
B3
B2
B1
B0
3
2
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents