Datasheet
SAM9G45 [DATASHEET]
Atmel-6438O-ATARM-SAM9G45-Datasheet_08-Dec-15
1100
44.6.2.5 Palette
This block is used to generate the pixel gray or color information in palettized configurations. The different modes
with the palettized/non-palettized configuration can be found in Table 44-9. In these modes, 1, 2, 4 or 8 input bits
index an entry in the lookup table. The corresponding entry in the lookup table contains the color or gray shade
information for the pixel.
The lookup table can be accessed by the host in R/W mode to allow the host to program and check the values
stored in the palette. It is mapped in the LCD controller configuration memory map. The LUT is mapped as 16-bit
half-words aligned at word boundaries, only word write access is allowed (the 16 MSB of the bus are not used).
For the detailed memory map, see Table 44-16 on page 1118.
The lookup table contains 256 16-bit wide entries. The 256 entries are chosen by the programmer from the 2
16
possible combinations.
Table 44-8. WinCE Pixel Memory Organization
Mem Addr 0x3 0x2 0x1 0x0
Bit313029282726252423222120191817161514131211109876543210
Pixel 1bpp 24 25 26 27 28 29 30 31 16 17 18 19 20 21 22 23 8 9 10 11 12 13 14 15 01234567
Pixel 2bpp 12 13 14 15 8 9 10 11 4 5 6 70133
Pixel 4bpp 6 7 4 5 2 3 0 1
Pixel 8bpp 3210
Pixel
16bpp
10
Pixel
24bpp
packed
10
Pixel
24bpp
packed
21
Pixel
24bpp
packed
32
Pixel
24bpp
unpacked
not used 0
Table 44-9. Palette Configurations
Configuration
PaletteDISTYPE PIXELSIZE
TFT 1, 2, 4, 8 Palettized
TFT 16, 24 Non-palettized
STN Mono 1, 2 Palettized
STN Mono 4 Non-palettized
STN Color 1, 2, 4, 8 Palettized
STN Color 16 Non-palettized