Palette
32 bytes
Palette
512 bytes
x bytes
Pixel Data
x bytes
Pixel Data
1, 2, 4, 12, 16 BPP Modes
8 BPP Mode
Architecture
1038
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Liquid Crystal Display Controller (LCDC)
23.2.5.2 Frame Buffer
A frame buffer is a contiguous memory block, storing enough data to fill a full LCD screen. For this device,
external memory needs to be used for the frame buffer. For specific details on which external memory
interface (EMIF) controller can be accessed by the LCD controller, see your device-specific data manual.
The data in the frame buffer consists of pixel values as well as a look-up palette.
shows the
frame buffer structure.
Figure 23-4. Frame Buffer Structure
NOTE:
•
8-BPP mode uses the first 512 bytes in the frame buffer as the palette while the other
modes use 32 bytes.
•
12- and 16-BPP modes do not need a palette; i.e., the pixel data is the desired RGB
value. However, the first 32 bytes are still considered a palette. The first entry should be
4000h (bit 14 is 1) while the remaining entries must be filled with 0. (For details, see
.)
•
Each entry in a palette occupies 2 bytes. As a result, 8-BPP mode palette has 256 color
entries while the other palettes have up to 16 color entries.
•
4-BPP mode uses up the all the 16 entries in a palette.
•
1-BPP mode uses the first 2 entries in a palette while 2-BPP mode uses the first 4
entries. The remaining entries are not used and must be filled with 0.
•
In 12- and 16-BPP modes, pixel data is RGB data. For all the other modes, pixel data is
actually an index of the palette entry.
(1)
Eight 1-bit pixels, four 2-bit pixels, and two 4-bit pixels are packed into each byte, and 12-bit pixels are right justified on (16-bit)
word boundaries (in the same format as palette entry).
(2)
For STN565, see the 16 BPP STN mode bit (
Table 23-5. Bits-Per-Pixel Encoding for Palette Entry 0 Buffer
Bit
Name
Value
Description
(1) (2)
14-12
BPP
Bits-per-pixel.
000
1 BPP
001
2 BPP
010
4 BPP
011
8 BPP
1xx
12 BPP in passive mode (TFT_STN = 0 and STN_565 = 0 in RASTER_CTRL)
16 BPP in passive mode (TFT_STN = 0 and STN_565 = 1 in RASTER_CTRL)
16 BPP in active mode (TFT_STN = 1 in RASTER_CTRL)