Table 89. Pixel Data Mapping Versus Color Format - STMicroelectronics STM32F405 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

LCD-TFT Controller (LTDC)
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.
A
B
G
R
[4:0] G
x+1
R
[4:0] G
x+3
A
x+1
G
A
x+3
G
A
[3:0]R
x+1
486/1731

Table 89. Pixel Data mapping versus Color Format

@+3
A
[7:0]
x
@+7
[7:0]
x+1
@+3
[7:0]
x+1
@+7
[7:0]
x+2
@+3
[5:3]
G
x+1
x+1
@+7
[5:3]
G
x+3
x+3
@+3
[0]R
[4:0]
x+1
G
x+1
[4:3]
x+1
@+7
[0]R
[4:0]
x+3
G
x+3
[4:3]
x+3
@+3
[3:0]
G
x+1
x+1
DocID018909 Rev 11
ARGB8888
@+2
R
[7:0]
x
@+6
R
[7:0]
x+1
RGB888
@+2
R
[7:0]
x
@+6
B
[7:0]
x+2
RGB565
@+2
[2:0] B
[4:0]
R
x+1
@+6
[2:0] B
[4:0]
R
x+3
x+2
ARGB1555
@+2
[2:0] B
[4:0]
A
[0] R
x+1
x
@+6
A
[0]R
x+2
[2:0] B
[4:0]
x+3
ARGB4444
@+2
[3:0] B
[3:0]
A
x+1
@+1
G
[7:0]
x
@+5
G
[7:0]
x+1
@+1
G
[7:0]
x
@+5
R
[7:0]
x+1
@+1
[4:0] G
[5:3]
G
x
x
@+5
[4:0] G
[5:3]
G
x+2
x+2
@+1
[4:0] G
[4:3]
G
x
x
@+5
[4:0]G
[4:
x+2
x+2
G
x+2
3]
@+1
[3:0] R
[3:0]
G
x
x
RM0090
@
B
[7:0]
x
@+4
B
[7:0]
x+1
@
B
[7:0]
x
@+4
G
[7:0]
x+1
@
[2:0] B
[4:0]
x
x
@+4
[2:0] B
[4:0]
x+2
@
[2:0] B
[4:0]
x
x
@+4
[2:0] B
[4:0]
x+2
@
[3:0] B
[3:0]
x
x

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F405 and is the answer not in the manual?

Table of Contents

Save PDF