RM0090 Rev 18 487/1749
RM0090 LCD-TFT controller (LTDC)
514
Figure 83. Layer window programmable parameters:
Pixel input Format
The programmable pixel format is used for the data stored in the frame buffer of a layer.
Up to 8 input pixel formats can be configured for every layer through the LTDC_LxPFCR
register
The pixel data is read from the frame buffer and then transformed to the internal 8888
(ARGB) format as follows:
• Components which have a width of less than 8 bits get expanded to 8 bits by bit
replication. The selected bit range is concatenated multiple times until it is longer than
8 bits. Of the resulting vector, the 8 MSB bits are chosen. Example: 5 bits of an
RGB565 red channel become (bit positions): 43210432 (the 3 LSBs are filled with the 3
MSBs of the 5 bits)
The figure below describes the pixel data mapping depending on the selected format.
Table 90. Pixel Data mapping versus Color Format
ARGB8888
@+3
A
x
[7:0]
@+2
R
x
[7:0]
@+1
G
x
[7:0]
@
B
x
[7:0]
@+7
A
x+1
[7:0]
@+6
R
x+1
[7:0]
@+5
G
x+1
[7:0]
@+4
B
x+1
[7:0]
RGB888
@+3
B
x+1
[7:0]
@+2
R
x
[7:0]
@+1
G
x
[7:0]
@
B
x
[7:0]
@+7
G
x+2
[7:0]
@+6
B
x+2
[7:0]
@+5
R
x+1
[7:0]
@+4
G
x+1
[7:0]
RGB565
@+3
R
x+1
[4:0] G
x+1
[5:3]
@+2
G
x+1
[2:0] B
x+1
[4:0]
@+1
R
x
[4:0] G
x
[5:3]
@
G
x
[2:0] B
x
[4:0]
MSv19676V3
Active data area
WVSPPOS bits in
LTDC_LxWVPCR
Window
WHSPPOS bits in
LTDC_LxWHPCR
WHSTPOS bits in
LTDC_LxWHPCR
WVSTPOS bits in
LTDC_LxWVPCR