
LCD-TFT Controller (LTDC)
RM0090
502/1731
DocID018909 Rev 11
Example:
The LTDC_BPCR register is configured to 0x000E0005 (AVBP[10:0] is 0x5) and the
LTDC_AWCR register is configured to 0x028E01E5 (AAH[10:0] is 0x1E5). To configure the
vertical position of a window size of 630x460, with vertical start offset of 8 lines in the Active
data area:
1.
Layer window first line: WVSTPOS[10:0] should be programmed to 0xE (0x5 + 1 + 0x8)
2. Layer window last line: WVSPPOS[10:0] should be programmed to 0x1DA
16.7.17 LTDC Layerx Color Keying Configuration Register (LTDC_LxCKCR)
(where x=1..2)
This register defines the color key value (RGB), which is used by the Color Keying.
Address offset: 0x90 + 0x80 x (
Layerx
-1),
Layerx
= 1 or 2
Reset value: 0x0000 0000
Bits 31:27 Reserved, must be kept at reset value
Bits 26:16
WVSPPOS[10:0]
: Window Vertical Stop Position
These bits configures the last visible line of the layer window.
Bits 15:11 Reserved, must be kept at reset value
Bits 10:0
WVSTPOS[10:0]
: Window Vertical Start Position
These bits configure the first visible line of the layer window.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
CKRED[7:0]
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CKGREEN[7:0]
CKBLUE[7:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 31:24 Reserved, must be kept at reset value
Bits 23:16
CKRED[7:0]
: Color Key Red value
Bits 15:8
CKGREEN[7:0]
: Color Key Green value
Bits 7:0
CKBLUE[7:0]
: Color Key Blue value