DocID018909 Rev 11
501/1731
RM0090
LCD-TFT Controller (LTDC)
511
Example:
The LTDC_BPCR register is configured to 0x000E0005(AHBP[11:0] is 0xE) and the
LTDC_AWCR register is configured to 0x028E01E5(AAW[11:0] is 0x28E). To configure the
horizontal position of a window size of 630x460, with horizontal start offset of 5 pixels in the
Active data area.
1.
Layer window first pixel: WHSTPOS[11:0] should be programmed to 0x14 (0xE+1+0x5)
2. Layer window last pixel: WHSPPOS[11:0] should be programmed to 0x28A
16.7.16 LTDC Layerx Window Vertical Position Configuration Register
(LTDC_LxWVPCR) (where x=1..2)
This register defines the vertical position (first and last line) of the layer1 or 2 window.
The first visible line of a frame is the programmed value of
AVBP[10:0] bits + 1
in the
register
LTDC_BPCR
register.
The last visible line of a frame is the programmed value of
AAH[10:0] bits
in the
LTDC_AWCR
register. All values within this range are allowed.
Address offset: 0x8C + 0x80 x (
Layerx
-1),
Layerx
= 1 or 2
Reset value: 0x0000 0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
WHSPPOS[11:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
WHSTPOS[11:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 31:28 Reserved, must be kept at reset value
Bits 27:16
WHSPPOS[11:0]
: Window Horizontal Stop Position
These bits configure the last visible pixel of a line of the layer window.
Bits 15:12 Reserved, must be kept at reset value
Bits 11:0
WHSTPOS[11:0]
: Window Horizontal Start Position
These bits configure the first visible pixel of a line of the layer window.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
WVSPPOS[10:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
WVSTPOS[10:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw