LCD-TFT controller (LTDC) RM0090
488/1749 RM0090 Rev 18
Color Look-Up Table (CLUT)
The CLUT can be enabled at run-time for every layer through the LTDC_LxCR register and
it is only useful in case of indexed color when using the L8, AL44 and AL88 input pixel
format.
First, the CLUT has to be loaded with the R, G and B values that will replace the original R,
G, B values of that pixel (indexed color). Each color (RGB value) has its own address which
is the position within the CLUT.
@+7
R
x+3
[4:0] G
x+3
[5:3]
@+6
G
x+3
[2:0] B
x+3
[4:0]
@+5
R
x+2
[4:0] G
x+2
[5:3]
@+4
G
x+2
[2:0] B
x+2
[4:0]
ARGB1555
@+3
A
x+1
[0]R
x+1
[4:0]
G
x+1
[4:3]
@+2
G
x+1
[2:0] B
x+1
[4:0]
@+1
A
x
[0] R
x
[4:0] G
x
[4:3]
@
G
x
[2:0] B
x
[4:0]
@+7
A
x+3
[0]R
x+3
[4:0]
G
x+3
[4:3]
@+6
G
x+3
[2:0] B
x+3
[4:0]
@+5
A
x+2
[0]R
x+2
[4:0]G
x+2
[4:
3]
@+4
G
x+2
[2:0] B
x+2
[4:0]
ARGB4444
@+3
A
x+1
[3:0]R
x+1
[3:0]
@+2
G
x+1
[3:0] B
x+1
[3:0]
@+1
A
x
[3:0] R
x
[3:0]
@
G
x
[3:0] B
x
[3:0]
@+7
A
x+3
[3:0]R
x+3
[3:0]
@+6
G
x+3
[3:0] B
x+3
[3:0]
@+5
A
x+2
[3:0]R
x+2
[3:0]
@+4
G
x+2
[3:0] B
x+2
[3:0]
L8
@+3
L
x+3
[7:0]
@+2
L
x+2
[7:0]
@+1
L
x+1
[7:0]
@
L
x
[7:0]
@+7
L
x+7
[7:0]
@+6
L
x+6
[7:0]
@+5
L
x+5
[7:0]
@+4
L
x+4
[7:0]
AL44
@+3
A
x+3
[3:0] L
x+3
[3:0]
@+2
A
x+2
[3:0] L
x+2
[3:0]
@+1
A
x+1
[3:0] L
x+1
[3:0]
@
A
x
[3:0] L
x
[3:0]
@+7
A
x+7
[3:0] L
x+7
[3:0]
@+6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