beautypg.com

Samsung S3C2440A User Manual

Page 378

background image

LCD CONTROLLER

S3C2440A RISC MICROPROCESSOR

15-10

MEMORY DATA FORMAT ( STN, BSWP=0 ) (CONTINUED)

In 4-level gray mode, 2 bits of video data correspond to 1 pixel.

In 16-level gray mode, 4 bits of video data correspond to 1 pixel.

In 256 level color mode, 8 bits (3 bits of red, 3 bits of green, and 2 bits of blue) of video data correspond to 1
pixel. The color data format in a byte is as follows:

Bit [ 7:5 ]

Bit [ 4:2 ]

Bit[1:0]

Red Green

Blue

In 4096 level color mode :

Packed 12 BPP Color mode

12 bits (4 bits of red, 4 bits of green, 4 bits of blue) of video data correspond to 1 pixel. The following table shows
color data format in words: (Video data must reside at 3 word boundaries (8 pixel), as follows)

RGB order

DATA [31:28] [27:24] [23:20] [19:16] [15:12] [11:8] [7:4] [3:0]

Word #1

Red( 1)

Green(1)

Blue( 1)

Red( 2)

Green( 2)

Blue( 2)

Red(3)

Green(3)

Word

#2 Blue(3) Red(4) Green(4)

Blue(4) Red(5) Green(5)

Blue(5) Red(6)

Word

#3 Green(6) Blue(6) Red(7) Green(7)

Blue(7) Red(8) Green(8) Blue(8)

Unpacked 12 BPP Color mode

12 bits (4 bits of red, 4 bits of green, 4 bits of blue) of video data correspond to 1 pixel. The following table shows
color data format in words:

RGB order

DATA [31:28] [27:24] [23:20] [19:16] [15:12] [11:8] [7:4] [3:0]

Word #1

-

Red( 1)

Green(1)

Blue( 1)

-

Red( 2)

Green( 2)

Blue( 2)

Word #2

-

Red( 3)

Green(3)

Blue( 3)

-

Red( 4)

Green( 4)

Blue( 4)

Word #3

-

Red( 5)

Green(5)

Blue( 5)

-

Red( 6)

Green( 6)

Blue( 6)