17. LCD-TFT display controller (LTDC)

17.1 Introduction

The LCD-TFT (liquid crystal display - thin film transistor) display controller provides a parallel digital RGB (red, green, blue) and signals for horizontal, vertical synchronization, pixel clock and data enable as output to interface directly to a variety of LCD and TFT panels.

17.2 LTDC main features

17.3 LTDC functional description

17.3.1 LTDC block diagram

The block diagram of the LTDC is shown in the figure below.

Figure 114. LTDC block diagram. The diagram shows the internal architecture of the LTDC. It is divided into three main clock domains: AHB clock domain, APB2 clock domain, and Pixel clock domain. The AHB interface connects to the AHB clock domain. The APB2 clock domain contains Configuration and status registers and a Timing generator. The Pixel clock domain contains Layer1 FIFO, Layer2 FIFO, PFC (Pixel Format Converter), Blending unit, and Dithering unit. The output signals are LCD_HSYNC, LCD_VSYNC, LCD_DE, LCD_CLK, LCD_R[7:0], LCD_G[7:0], and LCD_B[7:0], which are connected to an LCD-TFT panel. Interrupts are also shown.

Figure 114. LTDC block diagram

MSV19675V2

Figure 114. LTDC block diagram. The diagram shows the internal architecture of the LTDC. It is divided into three main clock domains: AHB clock domain, APB2 clock domain, and Pixel clock domain. The AHB interface connects to the AHB clock domain. The APB2 clock domain contains Configuration and status registers and a Timing generator. The Pixel clock domain contains Layer1 FIFO, Layer2 FIFO, PFC (Pixel Format Converter), Blending unit, and Dithering unit. The output signals are LCD_HSYNC, LCD_VSYNC, LCD_DE, LCD_CLK, LCD_R[7:0], LCD_G[7:0], and LCD_B[7:0], which are connected to an LCD-TFT panel. Interrupts are also shown.

Layer FIFO: One FIFO 64x32-bit per layer.

PFC: pixel format converter, performing the pixel format conversion from the selected input pixel format of a layer to words.

AHB interface: for data transfer from memories to the FIFO.

Blending, dithering unit and timings generator: Refer to Section 17.4.1 and Section 17.4.2 .

17.3.2 LTDC pins and external signal interface

The table below summarizes the LTDC signal interface.

Table 118. LTDC pins and signal interface

LCD-TFT signalsI/ODescription
LCD_CLKOClock output
LCD_HSYNCOHorizontal synchronization
LCD_VSYNCOVertical synchronization
LCD_DEONot data enable
LCD_R[7:0]OData: 8-bit red data
LCD_G[7:0]OData: 8-bit green data
LCD_B[7:0]OData: 8-bit blue data

The LTDC-TFT controller pins must be configured by the user application. The unused pins can be used for other purposes.

For LTDC outputs up to 24 bits (RGB888), if less than 8 bpp are used to output for example RGB565 or RGB666 to interface on 16- or 18-bit displays, the RGB display data lines must be connected to the MSB of the LCD-TFT controller RGB data lines. As an example, in the case of an LCD-TFT controller interfacing with a RGB565 16-bit display, the LCD display R[4:0], G[5:0] and B[4:0] data lines pins must be connected to LCD-TFT controller LCD_R[7:3], LCD_G[7:2] and LCD_B[7:3].

17.3.3 LTDC reset and clocks

The LCD-TFT controller peripheral uses the following clock domains:

The table below summarizes the clock domain for each register.

Table 119. Clock domain for each register

LTDC registerClock domain
LTDC_LxCRHCLK
LTDC_LxCFBAR
LTDC_LxCFBLR
LTDC_LxCFBLNR
LTDC_SRCRPCLK2
LTDC_IER
LTDC_ISR
LTDC_ICR

Table 119. Clock domain for each register (continued)

LTDC registerClock domain
LTDC_SSCRPixel clock (LCD_CLK)
LTDC_BPCR
LTDC_AWCR
LTDC_TWCR
LTDC_GCR
LTDC_BCCR
LTDC_LIPCR
LTDC_CPSR
LTDC_CDSR
LTDC_LxWHPCR
LTDC_LxWVPCR
LTDC_LxCKCR
LTDC_LxPFCR
LTDC_LxCACR
LTDC_LxDCCR
LTDC_LxBFCR
LTDC_LxCLUTWR

Care must be taken while accessing the LTDC registers, the APB2 bus is stalled during:

For registers on PCLK2 clock domain, APB2 bus is stalled for six PCLK2 periods during the register write accesses, and for seven PCLK2 periods during read accesses.

The LCD controller can be reset by setting the corresponding bit in the RCC_APB2RSTR register. It resets the three clock domains.

17.4 LTDC programmable parameters

The LCD-TFT controller provides flexible configurable parameters. It can be enabled or disabled through the LTDC_GCR register.

17.4.1 LTDC global configuration parameters

Synchronous timings

Figure 115 presents the configurable timing parameters generated by the synchronous timings generator block presented in the block diagram Figure 114. It generates the

horizontal and vertical synchronization timings panel signals, the pixel clock and the data enable signals.

Figure 115. LCD-TFT synchronous timings

Figure 115. LCD-TFT synchronous timings diagram showing horizontal and vertical timing parameters for a display. The diagram illustrates the timing of horizontal and vertical synchronization signals (HSYNC, VSYNC), back porch (HBP, VBP), front porch (HFP, VFP), and active display area (Active width, Active height) within the total frame dimensions (Total width, Total height).

The diagram illustrates the timing parameters for an LCD-TFT display. It shows a rectangular frame representing the total display area. The horizontal dimensions are labeled as 'Total width' (the full width of the frame) and 'Active width' (the width of the active display area). The vertical dimensions are labeled as 'Total height' (the full height of the frame) and 'Active height' (the height of the active display area). The active display area is shown as a shaded rectangle. The timing parameters are defined as follows:

The active display area starts at the beginning of the first active line ('Data1, Line1') and ends at the end of the last active line ('Data(n), Line(n)'). The diagram is labeled with 'MSv19674V1' in the bottom right corner.

Figure 115. LCD-TFT synchronous timings diagram showing horizontal and vertical timing parameters for a display. The diagram illustrates the timing of horizontal and vertical synchronization signals (HSYNC, VSYNC), back porch (HBP, VBP), front porch (HFP, VFP), and active display area (Active width, Active height) within the total frame dimensions (Total width, Total height).

Note: The HBP and HFP are respectively the horizontal back porch and front porch period. The VBP and the VFP are respectively the vertical back porch and front porch period.

The LCD-TFT programmable synchronous timings are the following:

Note: When the LTDC is enabled, the timings generated start with X/Y=0/0 position as the first horizontal synchronization pixel in the vertical synchronization area and following the back

porch, active data display area and the front porch.

When the LTDC is disabled, the timing generator block is reset to \( X = \text{total width} - 1 \) , \( Y = \text{total height} - 1 \) and held the last pixel before the vertical synchronization phase and the FIFO are flushed. Therefore only blanking data is output continuously.

Example of synchronous timings configuration

LCD-TFT timings (must be extracted from panel datasheet):

The programmed values in the LTDC timings registers are:

Programmable polarity

The horizontal and vertical synchronization, data enable and pixel clock output signals polarity can be programmed to active high or active low through the LTDC_GCR register.

Background color

A constant background color (RGB888) can be programmed through the LTDC_BCCR register. It is used for blending with the bottom layer.

Dithering

The dithering pseudo-random technique using an LFSR is used to add a small random value (threshold) to each pixel color channel (R, G or B) value, thus rounding up the MSB in some cases when displaying a 24-bit data on 18-bit display. Thus the dithering technique is used to round data which is different from one frame to the other.

The dithering pseudo-random technique is the same as comparing LSBs against a threshold value and adding a 1 to the MSB part only, if the LSB part is \( \geq \) the threshold. The LSBs are typically dropped once dithering was applied.

The width of the added pseudo-random value is two bits for each color channel: two bits for red, two bits for green and two bits for blue.

Once the LCD-TFT controller is enabled, the LFSR starts running with the first active pixel and it is kept running even during blanking periods and when dithering is switched off. If the LTDC is disabled, the LFSR is reset.

The dithering can be switched on and off on the fly through the LTDC_GCR register.

Reload shadow registers

Some configuration registers are shadowed. The shadow registers values can be reloaded immediately to the active registers when writing to these registers or at the beginning of the vertical blanking period following the configuration in the LTDC_SRCR register. If the immediate reload configuration is selected, the reload must be activated only when all new registers have been written.

The shadow registers must not be modified again before the reload is done. Reading from the shadow registers returns the actual active value. The new written value can only be read after the reload has taken place.

A register reload interrupt can be generated if enabled in the LTDC_IER register.

The shadowed registers are all layer1 and layer2 registers except LTDC_LxCLUTWR.

Interrupt generation event

Refer to Section 17.5: LTDC interrupts for the interrupt configuration.

17.4.2 Layer programmable parameters

Up to two layers can be enabled, disabled and configured separately. The layer display order is fixed and it is bottom up. If two layers are enabled, the layer2 is the top displayed window.

Windowing

Every layer can be positioned and resized and it must be inside the active display area.

The window position and size are configured through the top-left and bottom-right X/Y positions and the internal timing generator that includes the synchronous, back porch size and the active data area. Refer to LTDC_LxWHPCR and LTDC_WVPCR registers.

The programmable layer position and size defines the first/last visible pixel of a line and the first/last visible line in the window. It allows to display either the full image frame or only a part of the image frame (see the figure below):

Figure 116. Layer window programmable parameters

Diagram illustrating the layer window programmable parameters. A yellow rectangle labeled 'Window' is shown within a larger grey area labeled 'Active data area'. The window's top edge is defined by WVSTPOS bits in LTDC_LxWVPCR. The window's bottom edge is defined by WVSPPOS bits in LTDC_LxWVPCR. The window's left edge is defined by WHSTPOS bits in LTDC_LxWHPCR. The window's right edge is defined by WHSPPOS bits in LTDC_LxWHPCR. The diagram is labeled MSv19676V3.
Diagram illustrating the layer window programmable parameters. A yellow rectangle labeled 'Window' is shown within a larger grey area labeled 'Active data area'. The window's top edge is defined by WVSTPOS bits in LTDC_LxWVPCR. The window's bottom edge is defined by WVSPPOS bits in LTDC_LxWVPCR. The window's left edge is defined by WHSTPOS bits in LTDC_LxWHPCR. The window's right edge is defined by WHSPPOS bits in LTDC_LxWHPCR. The diagram is labeled MSv19676V3.

Pixel input format

The programmable pixel format is used for the data stored in the frame buffer of a layer.

Up to eight 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 having 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 three LSBs are filled with the three MSBs of the five bits)

The table below describes the pixel data mapping depending on the selected format.

Table 120. 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]

Table 120. Pixel data mapping versus color format (continued)

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]
@+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]
ARG1555
@+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]
ARG4444
@+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
A x+6 [3:0] L x+6 [3:0]
@+5
A x+5 [3:0] L x+5 [3:0]
@+4
A x+4 [3:0] L x+4 [3:0]
AL88
@+3
A x+1 [7:0]
@+2
L x+1 [7:0]
@+1
A x [7:0]
@
L x [7:0]
@+7
A x+3 [7:0]
@+6
L x+3 [7:0]
@+5
A x+2 [7:0]
@+4
L x+2 [7:0]

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 must be loaded with the R, G and B values that replace the original R, G, B values of that pixel (indexed color). Each color (RGB value) has its own address that is the position within the CLUT.

The R, G and B values and their own respective address are programmed through the LTDC_LxCLUTWR register:

Color frame buffer address

Every layer has a start address for the color frame buffer configured through the LTDC_LxCFBAR register.

When a layer is enabled, the data is fetched from the color frame buffer.

Color frame buffer length

Every layer has a total line length setting for the color frame buffer in bytes and a number of lines in the frame buffer configurable in the LTDC_LxCFBLR and LTDC_LxCFBLNR register respectively.

The line length and the number of lines settings are used to stop the prefetching of data to the layer FIFO at the end of the frame buffer:

Color frame buffer pitch

Every layer has a configurable pitch for the color frame buffer, that is the distance between the start of one line and the beginning of the next line in bytes. It is configured through the LTDC_LxCFBLR register.

Layer blending

The blending is always active and the two layers can be blended following the blending factors configured through the LTDC_LxBFCR register.

The blending order is fixed and it is bottom up. If two layers are enabled, first the Layer1 is blended with the Background color, then the layer2 is blended with the result of blended color of layer1 and the background. Refer to the figure below.

Figure 117. Blending two layers with background

Diagram illustrating the layer blending process. It shows three stages: 1) Three separate layers: Layer2, Layer1, and BG (Background). 2) Layer1 is blended with BG to produce a combined layer 'Layer1 + BG'. 3) Layer2 is then blended with the 'Layer1 + BG' result to produce the final output 'Layer2 + Layer1 + BG'. Brackets indicate the sequence of blending from bottom to top. A small label 'MSV48123V1' is in the bottom right corner of the diagram area.
Diagram illustrating the layer blending process. It shows three stages: 1) Three separate layers: Layer2, Layer1, and BG (Background). 2) Layer1 is blended with BG to produce a combined layer 'Layer1 + BG'. 3) Layer2 is then blended with the 'Layer1 + BG' result to produce the final output 'Layer2 + Layer1 + BG'. Brackets indicate the sequence of blending from bottom to top. A small label 'MSV48123V1' is in the bottom right corner of the diagram area.

Default color

Every layer can have a default color in the format ARGB which is used outside the defined layer window or when a layer is disabled.

The default color is configured through the LTDC_LxDCCR register.

The blending is always performed between the two layers even when a layer is disabled. To avoid displaying the default color when a layer is disabled, keep the blending factors of this layer in the LTDC_LxBFCR register to their reset value.

Color keying

A color key (RGB) can be configured to be representative for a transparent pixel.

If the color keying is enabled, the current pixels (after format conversion and before CLUT respectively blending) are compared to the color key. If they match for the programmed RGB value, all channels (ARGB) of that pixel are set to 0.

The color key value can be configured and used at run-time to replace the pixel RGB value.

The color keying is enabled through the LTDC_LxCKCR register.

The color keying is configured through the LTDC_LxCKCR register. The programmed value depends on the pixel format as it is compared to current pixel after pixel format conversion to ARGB888.

Example: if the a mid-yellow color (50 % red + 50 % green) is used as the transparent color key:

17.5 LTDC interrupts

The LTDC provides four maskable interrupts logically ORed to two interrupt vectors.

The interrupt sources can be enabled or disabled separately through the LTDC_IER register. Setting the appropriate mask bit to 1 enables the corresponding interrupt.

The two interrupts are generated on the following events:

Those interrupts events are connected to the NVIC controller as described in the figure below.

Figure 118. Interrupt events

Figure 118. Interrupt events diagram showing two OR gates. The top OR gate takes 'Line' and 'Register reload' as inputs and outputs to 'LTDC global interrupt'. The bottom OR gate takes 'FIFO underrun' and 'Transfer error' as inputs and outputs to 'LTDC global error interrupt'. The diagram is labeled MS19678V1.
Figure 118. Interrupt events diagram showing two OR gates. The top OR gate takes 'Line' and 'Register reload' as inputs and outputs to 'LTDC global interrupt'. The bottom OR gate takes 'FIFO underrun' and 'Transfer error' as inputs and outputs to 'LTDC global error interrupt'. The diagram is labeled MS19678V1.

Table 121. LTDC interrupt requests

Interrupt eventEvent flagEnable control bit
LineLIFLIE
Register reloadRRIFRRIEN
FIFO underrunFUDERRIFFUDERRIE
Transfer errorTERRIFTERRIE

17.6 LTDC programming procedure

The steps listed below are needed to program the LTDC:

  1. 1. Enable the LTDC clock in the RCC register.
  2. 2. Configure the required pixel clock following the panel datasheet.
  3. 3. Configure the synchronous timings: VSYNC, HSYNC, vertical and horizontal back porch, active data area and the front porch timings following the panel datasheet as described in the Section 17.4.1: LTDC global configuration parameters .
  4. 4. Configure the synchronous signals and clock polarity in the LTDC_GCR register.
  5. 5. If needed, configure the background color in the LTDC_BCCR register.
  6. 6. Configure the needed interrupts in the LTDC_IER and LTDC_LIPCR register.
  1. 7. Configure the layer1/2 parameters by:
    • – programming the layer window horizontal and vertical position in the LTDC_LxWHPCTR and LTDC_WVPCR registers. The layer window must be in the active data area.
    • – programming the pixel input format in the LTDC_LxPFCR register
    • – programming the color frame buffer start address in the LTDC_LxCFBAR register
    • – programming the line length and pitch of the color frame buffer in the LTDC_LxCFBLR register
    • – programming the number of lines of the color frame buffer in the LTDC_LxCFBLNR register
    • – if needed, loading the CLUT with the RGB values and its address in the LTDC_LxCLUTWR register
    • – If needed, configuring the default color and the blending factors respectively in the LTDC_LxDCCR and LTDC_LxBFCR registers
  2. 8. Enable layer1/2 and if needed the CLUT in the LTDC_LxCR register.
  3. 9. If needed, enable dithering and color keying respectively in the LTDC_GCR and LTDC_LxCKCR registers. They can be also enabled on the fly.
  4. 10. Reload the shadow registers to active register through the LTDC_SRCR register.
  5. 11. Enable the LCD-TFT controller in the LTDC_GCR register.
  6. 12. All layer parameters can be modified on the fly except the CLUT. The new configuration must be either reloaded immediately or during vertical blanking period by configuring the LTDC_SRCR register.

Note: All layer's registers are shadowed. Once a register is written, it must not be modified again before the reload has been done. Thus, a new write to the same register overrides the previous configuration if not yet reloaded.

17.7 LTDC registers

17.7.1 LTDC synchronization size configuration register (LTDC_SSCR)

Address offset: 0x08

Reset value: 0x0000 0000

This register defines the number of horizontal synchronization pixels minus 1 and the number of vertical synchronization lines minus 1. Refer to Figure 115 and Section 17.4 for an example of configuration.

31302928272625242322212019181716
Res.Res.Res.Res.HSW[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.VSH[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 HSW[11:0] : horizontal synchronization width (in units of pixel clock period)

These bits define the number of Horizontal Synchronization pixel minus 1.

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 VSH[10:0] : vertical synchronization height (in units of horizontal scan line)

These bits define the vertical Synchronization height minus 1. It represents the number of horizontal synchronization lines.

17.7.2 LTDC back porch configuration register (LTDC_BPCR)

Address offset: 0x0C

Reset value: 0x0000 0000

This register defines the accumulated number of horizontal synchronization and back porch pixels minus 1 (HSYNC width + HBP - 1) and the accumulated number of vertical synchronization and back porch lines minus 1 (VSYNC height + VBP - 1).

Refer to Figure 115 and Section 17.4 for an example of configuration.

31302928272625242322212019181716
Res.Res.Res.Res.AHBP[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.AVBP[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 AHBP[11:0] : accumulated horizontal back porch (in units of pixel clock period)

These bits define the accumulated horizontal back porch width that includes the horizontal synchronization and horizontal back porch pixels minus 1.

The horizontal back porch is the period between horizontal synchronization going inactive and the start of the active display part of the next scan line.

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 AVBP[10:0] : accumulated Vertical back porch (in units of horizontal scan line)

These bits define the accumulated vertical back porch width that includes the vertical synchronization and vertical back porch lines minus 1.

The vertical back porch is the number of horizontal scan lines at a start of frame to the start of the first active scan line of the next frame.

17.7.3 LTDC active width configuration register (LTDC_AWCR)

Address offset: 0x10

Reset value: 0x0000 0000

This register defines the accumulated number of horizontal synchronization, back porch and active pixels minus 1 (HSYNC width + HBP + active width - 1) and the accumulated number of vertical synchronization, back porch lines and active lines minus 1 (VSYNC height + BVBP + active height - 1). Refer to Figure 115 and Section 17.4 for an example of configuration.

31302928272625242322212019181716
Res.Res.Res.Res.AAW[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.AAH[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 AAW[11:0] : accumulated active width (in units of pixel clock period)

These bits define the accumulated active width which includes the horizontal synchronization, horizontal back porch and active pixels minus 1.

The active width is the number of pixels in active display area of the panel scan line.

Refer to device datasheet for maximum active width supported following maximum pixel clock.

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 AAH[10:0] : accumulated active height (in units of horizontal scan line)

These bits define the accumulated height which includes the vertical synchronization, vertical back porch and the active height lines minus 1. The active height is the number of active lines in the panel.

Refer to device datasheet for maximum active height supported following maximum pixel clock.

17.7.4 LTDC total width configuration register (LTDC_TWCR)

Address offset: 0x14

Reset value: 0x0000 0000

This register defines the accumulated number of horizontal synchronization, back porch, active and front porch pixels minus 1 (HSYNC width + HBP + active width + HFP - 1) and the accumulated number of vertical synchronization, back porch lines, active and front lines minus 1 (VSYNC height + BVBP + active height + VFP - 1). Refer to Figure 115 and Section 17.4 for an example of configuration.

31302928272625242322212019181716
Res.Res.Res.Res.TOTALW[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.TOTALH[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 TOTALW[11:0] : total width (in units of pixel clock period)

These bits defines the accumulated total width which includes the horizontal synchronization, horizontal back porch, active width and horizontal front porch pixels minus 1.

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 TOTALH[10:0] : total height (in units of horizontal scan line)

These bits defines the accumulated height which includes the vertical synchronization, vertical back porch, the active height and vertical front porch height lines minus 1.

17.7.5 LTDC global control register (LTDC_GCR)

Address offset: 0x18

Reset value: 0x0000 2220

This register defines the global configuration of the LCD-TFT controller.

31302928272625242322212019181716
HSPOLVSPOLDEPOLPCPOLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DEN
rwrwrwrwrw
1514131211109876543210
Res.DRW[2:0]Res.DGW[2:0]Res.DBW[2:0]Res.Res.Res.LTDCEN
rrrrrrrrrrw

Bit 31 HSPOL : horizontal synchronization polarity

This bit is set and cleared by software.

0: horizontal synchronization polarity is active low.

1: horizontal synchronization polarity is active high.

Bit 30 VSPOL : vertical synchronization polarity

This bit is set and cleared by software.

0: vertical synchronization is active low.

1: vertical synchronization is active high.

Bit 29 DEPOL : not data enable polarity

This bit is set and cleared by software.

0: not data enable polarity is active low.

1: not data enable polarity is active high.

Bit 28 PCPOL : pixel clock polarity

This bit is set and cleared by software.

0: pixel clock polarity is active low.

1: pixel clock is active high.

Bits 27:17 Reserved, must be kept at reset value.

Bit 16 DEN : dither enable

This bit is set and cleared by software.

0: dither disable

1: dither enable

Bit 15 Reserved, must be kept at reset value.

17.7.6 LTDC shadow reload configuration register (LTDC_SRCR)

Address offset: 0x24

Reset value: 0x0000 0000

This register allows to reload either immediately or during the vertical blanking period, the shadow registers values to the active registers. The shadow registers are all Layer1 and Layer2 registers except the LTDC_L1CLUTWR and the LTDC_L2CLUTWR.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.VBRIMR
rwrw

Note: The shadow registers read back the active values. Until the reload has been done, the 'old' value is read.

17.7.7 LTDC background color configuration register (LTDC_BCCR)

Address offset: 0x2C

Reset value: 0x0000 0000

This register defines the background color (RGB888).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.BCRED[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
BCGREEN[7:0]BCBLUE[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:16 BCRED[7:0] : background color red value

These bits configure the background red value.

Bits 15:8 BCGREEN[7:0] : background color green value

These bits configure the background green value.

Bits 7:0 BCBLUE[7:0] : background color blue value

These bits configure the background blue value.

17.7.8 LTDC interrupt enable register (LTDC_IER)

This register determines which status flags generate an interrupt request by setting the corresponding bit to 1.

Address offset: 0x34

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RRIETERRIEFUIELIE
rwrwrwrw

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 RRIE : register reload interrupt enable

This bit is set and cleared by software.

0: register reload interrupt disable

1: register reload interrupt enable

Bit 2 TERRIE : transfer error interrupt enable

This bit is set and cleared by software.

0: transfer error interrupt disable

1: transfer error interrupt enable

17.7.9 LTDC interrupt status register (LTDC_ISR)

Address offset: 0x38

Reset value: 0x0000 0000

This register returns the interrupt status flag.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RRIFTERRIFFUIFLIF
rrrr

Bits 31:4 Reserved, must be kept at reset value.

17.7.10 LTDC Interrupt clear register (LTDC_ICR)

Address offset: 0x3C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CRRIFCTERRIFCFUIFCLIF
wwww

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 CRRIF : clears register reload interrupt flag

0: no effect

1: clears the RRIF flag in the LTDC_ISR register

Bit 2 CTERRIF : clears the transfer error interrupt flag

0: no effect

1: clears the TERRIF flag in the LTDC_ISR register.

Bit 1 CFUIF : clears the FIFO underrun interrupt flag

0: no effect

1: clears the FUDERRIF flag in the LTDC_ISR register.

Bit 0 CLIF : clears the line interrupt flag

0: no effect

1: clears the LIF flag in the LTDC_ISR register.

17.7.11 LTDC line interrupt position configuration register (LTDC_LIPCR)

Address offset: 0x40

Reset value: 0x0000 0000

This register defines the position of the line interrupt. The line value to be programmed depends on the timings parameters. Refer to Figure 115 .

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.LIPOS[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:0 LIPOS[10:0] : line interrupt position

These bits configure the line interrupt position.

17.7.12 LTDC current position status register (LTDC_CPSR)

Address offset: 0x44

Reset value: 0x0000 0000

31302928272625242322212019181716
CXPOS[15:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
CYPOS[15:0]
rrrrrrrrrrrrrrrr

Bits 31:16 CXPOS[15:0] : current X position

These bits return the current X position.

Bits 15:0 CYPOS[15:0] : current Y position

These bits return the current Y position.

17.7.13 LTDC current display status register (LTDC_CDSR)

Address offset: 0x48

Reset value: 0x0000 000F

This register returns the status of the current display phase which is controlled by the HSYNC, VSYNC, and horizontal/vertical DE signals.

Example: if the current display phase is the vertical synchronization, the VSYNCS bit is set (active high). If the current display phase is the horizontal synchronization, the HSYNCS bit is active high.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HSYNC
S
VSYNC
S
HDESVDES
rrrr

Bits 31:4 Reserved, must be kept at reset value.

Bit 3 HSYNCS : horizontal synchronization display status

0: active low

1: active high

Bit 2 VSYNCS : vertical synchronization display status

0: active low

1: active high

Bit 1 HDES : horizontal data enable display status

0: active low

1: active high

Bit 0 VDES : vertical data enable display status

0: active low

1: active high

Note: The returned status does not depend on the configured polarity in the LTDC_GCR register, instead it returns the current active display phase.

17.7.14 LTDC layer x control register (LTDC_LxCR)

Address offset: 0x84 + 0x80 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CLUTENRes.Res.COLKENLEN
rwrwrw

Bits 31:5 Reserved, must be kept at reset value.

Bit 4 CLUTEN : color look-up table enable

This bit is set and cleared by software.

0: color look-up table disable

1: color look-up table enable

The CLUT is only meaningful for L8, AL44 and AL88 pixel format. Refer to Color look-up table (CLUT)

Bits 3:2 Reserved, must be kept at reset value.

Bit 1 COLKEN : color keying enable

This bit is set and cleared by software.

0: color keying disable

1: color keying enable

Bit 0 LEN : layer enable

This bit is set and cleared by software.

0: layer disable

1: layer enable

17.7.15 LTDC layer x window horizontal position configuration register (LTDC_LxWHPCR)

Address offset: \( 0x88 + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: \( 0x0000\ 0000 \)

This register defines the horizontal position (first and last pixel) of the layer 1 or 2 window.

The first visible pixel of a line is the programmed value of AHBP[11:0] bits + 1 in the LTDC_BPCR register.

The last visible pixel of a line is the programmed value of AAW[11:0] bits in the LTDC_AWCR register.

31302928272625242322212019181716
Res.Res.Res.Res.WHSPPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.WHSTPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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.

WHSPPOS[11:0] must be \( \geq \) AHBP[11:0] bits + 1 (programmed in LTDC_BPCR register).

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.

WHSTPOS[11:0] must be \( \leq \) AAW[11:0] bits (programmed in LTDC_AWCR register).

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. 1. layer window first pixel, WHSTPOS[11:0], must be programmed to \( 0x14 \) ( \( 0xE+1+0x5 \) )
  2. 2. layer window last pixel, WHSPPOS[11:0], must be programmed to \( 0x28A \) .

17.7.16 LTDC layer x window vertical position configuration register (LTDC_LxWVPCR)

Address offset: \( 0x8C + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.WVSPPOS[10:0]
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.WVSTPOS[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:27 Reserved, must be kept at reset value.

Bits 26:16 WVSPPOS[10:0] : window vertical stop position

These bits configure the last visible line of the layer window.

WVSPPOS[10:0] must be \( \geq \) AVBP[10:0] bits + 1 (programmed in LTDC_BPCR register).

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.

WVSTPOS[10:0] must be \( \leq \) AAH[10:0] bits (programmed in LTDC_AWCR register).

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. 1. layer window first line: WVSTPOS[10:0] must be programmed to 0xE (0x5 + 1 + 0x8).
  2. 2. layer window last line: WVSTPOS[10:0] must be programmed to 0x1DA.

17.7.17 LTDC layer x color keying configuration register (LTDC_LxCKCR)

Address offset: \( 0x90 + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the color key value (RGB), that is used by the color keying.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.CKRED[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
CKGREEN[7:0]CKBLUE[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

17.7.18 LTDC layer x pixel format configuration register (LTDC_LxPFCR)

Address offset: \( 0x94 + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the pixel format that is used for the stored data in the frame buffer of a layer. The pixel data is read from the frame buffer and then transformed to the internal format 8888 (ARGB).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PF[2:0]
rwrwrw

Bits 31:3 Reserved, must be kept at reset value.

Bits 2:0 PF[2:0] : pixel format

These bits configure the pixel format

000: ARGB8888

001: RGB888

010: RGB565

011: ARGB1555

100: ARGB4444

101: L8 (8-bit luminance)

110: AL44 (4-bit alpha, 4-bit luminance)

111: AL88 (8-bit alpha, 8-bit luminance)

17.7.19 LTDC layer x constant alpha configuration register (LTDC_LxCACR)

Address offset: \( 0x98 + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 00FF

This register defines the constant alpha value (divided by 255 by hardware), that is used in the alpha blending. Refer to LTDC_LxBFCR register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.CONSTA[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 CONSTA[7:0] : constant alpha

These bits configure the constant alpha used for blending. The constant alpha is divided by 255 by hardware.

Example: if the programmed constant alpha is 0xFF, the constant alpha value is \( 255 / 255 = 1 \) .

17.7.20 LTDC layer x default color configuration register (LTDC_LxDCCR)

Address offset: \( 0x9C + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the default color of a layer in the format ARGB. The default color is used outside the defined layer window or when a layer is disabled. The reset value of 0x00000000 defines a transparent black color.

31302928272625242322212019181716
DCALPHA[7:0]DCRED[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DCGREEN[7:0]DCBLUE[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:24 DCALPHA[7:0] : default color alpha

These bits configure the default alpha value.

Bits 23:16 DCRED[7:0] : default color red

These bits configure the default red value.

Bits 15:8 DCGREEN[7:0] : default color green

These bits configure the default green value.

Bits 7:0 DCBLUE[7:0] : default color blue

These bits configure the default blue value.

17.7.21 LTDC layer x blending factors configuration register (LTDC_LxBFCR)

Address offset: \( 0xA0 + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0607

This register defines the blending factors F1 and F2.

The general blending formula is: \( BC = BF1 \times C + BF2 \times Cs \)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.BF1[2:0]Res.Res.Res.Res.Res.BF2[2:0]
rwrwrwrwrwrw

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:8 BF1[2:0] : blending factor 1

These bits select the blending factor F1.

100: constant alpha

110: pixel alpha x constant alpha

Others: reserved

Bits 7:3 Reserved, must be kept at reset value.

Bits 2:0 BF2[2:0] : blending factor 2

These bits select the blending factor F2

101: 1 - constant alpha

111: 1 - (pixel alpha x constant alpha)

Others: reserved

Note: The constant alpha value, is the programmed value in the LxCACR register divided by 255 by hardware.

Example: Only layer1 is enabled, BF1 configured to constant alpha. BF2 configured to 1 - constant alpha. The constant alpha programmed in the LxCACR register is 240 (0xF0).

Thus, the constant alpha value is \( 240/255 = 0.94 \) . C: current layer color is 128.

Cs: background color is 48. Layer1 is blended with the background color.

\( BC = \text{constant alpha} \times C + (1 - \text{Constant Alpha}) \times Cs = 0.94 \times 128 + (1 - 0.94) \times 48 = 123 \) .

17.7.22 LTDC layer x color frame buffer address register (LTDC_LxCFBAR)

Address offset: \( 0xAC + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the color frame buffer start address which has to point to the address where the pixel data of the top left pixel of a layer is stored in the frame buffer.

31302928272625242322212019181716
CFBADD[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
CFBADD[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 CFBADD[31:0] : color frame buffer start address

These bits define the color frame buffer start address.

17.7.23 LTDC layer x color frame buffer length register (LTDC_LxCFBLR)

Address offset: \( 0xB0 + 0x80 * (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the color frame buffer line length and pitch.

31302928272625242322212019181716
Res.Res.Res.CFBP[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.CFBLL[12:0]
rwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:29 Reserved, must be kept at reset value.

Bits 28:16 CFBP[12:0] : color frame buffer pitch in bytes

These bits define the pitch that is the increment from the start of one line of pixels to the start of the next line in bytes.

Bits 15:13 Reserved, must be kept at reset value.

Bits 12:0 CFBLL[12:0] : color frame buffer line length

These bits define the length of one line of pixels in bytes + 3.

The line length is computed as follows:

active high width * number of bytes per pixel + 3.

Example:

17.7.24 LTDC layer x color frame buffer line number register (LTDC_LxCFBLNR)

Address offset: \( 0xB4 + 0x80 \times (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the number of lines in the color frame buffer.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.CFBLNBR[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:11 Reserved, must be kept at reset value.

Bits 10:0 CFBLNBR[10:0] : frame buffer line number

These bits define the number of lines in the frame buffer that corresponds to the active high width.

Note: The number of lines and line length settings define how much data is fetched per frame for every layer. If it is configured to less bytes than required, a FIFO underrun interrupt is generated if enabled.

The start address and pitch settings on the other hand define the correct start of every line in memory.

17.7.25 LTDC layer x CLUT write register (LTDC_LxCLUTWR)

Address offset: \( 0xC4 + 0x80 \times (x - 1) \) , ( \( x = 1 \) to \( 2 \) )

Reset value: 0x0000 0000

This register defines the CLUT address and the RGB value.

31302928272625242322212019181716
CLUTADD[7:0]RED[7:0]
wwwwwwwwwwwwwwww
1514131211109876543210
GREEN[7:0]BLUE[7:0]
wwwwwwwwwwwwwwww

Bits 31:24 CLUTADD[7:0] : CLUT address

These bits configure the CLUT address (color position within the CLUT) of each RGB value.

Bits 23:16 RED[7:0] : red value

These bits configure the red value.

Bits 15:8 GREEN[7:0] : green value

These bits configure the green value.

Bits 7:0 BLUE[7:0] : blue value

These bits configure the blue value.

Note: The CLUT write register must be configured only during blanking period or if the layer is disabled. The CLUT can be enabled or disabled in the LTDC_LxCR register.

The CLUT is only meaningful for L8, AL44 and AL88 pixel format.

17.7.26 LTDC register map

Table 122. LTDC register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x008LTDC_SSCRResResResResHSW[11:0]ResResResResResVSH[10:0]
Reset value000000000000000000000000
0x00CLTDC_BPCRResResResResAHBP[11:0]ResResResResResAVBP[10:0]
Reset value000000000000000000000000
0x010LTDC_AWCRResResResResAAW[11:0]ResResResResResAAH[10:0]
Reset value000000000000000000000000
0x014LTDC_TWCRResResResResTOTALW[11:0]ResResResResResTOTALH[10:0]
Reset value000000000000000000000000
0x018LTDC_GCRHSPOLVSPOLDEPOLPCPOLResResResResResResResResResResResDENDRW[2:0]ResDGW[2:0]ResDBW[2:0]ResResResResResLTDCEN
Reset value000000100100100
0x024LTDC_SRCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResVBRIMR
Reset value0
0x02CLTDC_BCCRResResResResResResResResBCRED[7:0]BCGREEN[7:0]BCBLUE[7:0]
Reset value00000000000000000000000
0x030ReservedReserved
0x034LTDC_IERResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRRIERRIEFUIELIE
Reset value0000
0x038LTDC_ISRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResRRIFTERRIFFUIFLIF
Reset value0000
0x03CLTDC_ICRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResCRIFCTERRIFCFUIFCLIF
Reset value0000
0x040LTDC_LIPCRResResResResResResResResResResResResResResResResResResResResLIPOS[10:0]
Reset value00000000000
0x044LTDC_CPSRCXPOS[15:0]CYPOS[15:0]
Reset value0000000000000000000000000000000
0x048LTDC_CDSRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResHSYNSVSYNSHDESVDES
Reset value1111

Table 122. LTDC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x04C-0x080ReservedReserved
0x084LTDC_L1CRRes.CLUTENRes.COLKENLEN
Reset value000
0x088LTDC_L1WHPCRRes.WHSPPOS[11:0]Res.WHSTPOS[11:0]
Reset value000000000000000000000000
0x08CLTDC_L1WVPCRRes.WVSPPOS[10:0]Res.WVSTPOS[10:0]
Reset value0000000000000000000000
0x090LTDC_L1CKCRRes.CKRED[7:0]CKGREEN[7:0]CKBLUE[7:0]
Reset value000000000000000000000000
0x094LTDC_L1PFCRRes.PF[2:0]
Reset value000
0x098LTDC_L1CACRRes.CONSTA[7:0]
Reset value11111111
0x09CLTDC_L1DCCRDCALPHA[7:0]DCRED[7:0]DCGREEN[7:0]DCBLUE[7:0]
Reset value00000000000000000000000000000000
0x0A0LTDC_L1BFCRRes.BF1[2:0]Res.BF2[2:0]
Reset value110111
0x0A4-0x0A8ReservedReserved
0x0ACLTDC_L1CFBARCFBADD[31:0]
Reset value00000000000000000000000000000000
0x0B0LTDC_L1CFBLRRes.CFBP[12:0]Res.CFBLL[12:0]
Reset value00000000000000000000000000
0x0B4LTDC_L1CFBLNRRes.CFBLNBR[10:0]
Reset value00000000000
0x0B8-0x0C0ReservedReserved
0x0C4LTDC_L1CLUTWRCLUTADD[7:0]RED[7:0]GREEN[7:0]BLUE[7:0]
Reset value00000000000000000000000000000000
0x0C8-0x100ReservedReserved
0x104LTDC_L2CRRes.CLUTENRes.COLKENLEN
Reset value000
0x108LTDC_L2WHPCRRes.WHSPPOS[11:0]Res.WHSTPOS[11:0]
Reset value000000000000000000000000
0x10CLTDC_L2WVPCRRes.WVSPPOS[10:0]Res.WVSTPOS[10:0]
Reset value0000000000000000000000
0x110LTDC_L2CKCRRes.CKRED[7:0]CKGREEN[7:0]CKBLUE[7:0]
Reset value000000000000000000000000
0x114LTDC_L2PFCRRes.PF[2:0]
Reset value000
0x118LTDC_L2CACRRes.CONSTA[7:0]
Reset value11111111

Table 122. LTDC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x11CLTDC_L2DCCRDCALPHA[7:0]DCRED[7:0]DCGREEN[7:0]DCBLUE[7:0]
Reset value000000000000000000000000000000000
0x120LTDC_L2BFCRResResResResResResResResResResResResResResResResResResResResBF1[2:0]BF2[2:0]
Reset value110111
0x124-
0x128
ReservedReserved
0x12CLTDC_L2CFBARCFBADD[31:0]
Reset value00000000000000000000000000000000
0x130LTDC_L2CFBLRResResResCFBP[12:0]
Reset value00000000000000000000000000000
0x134LTDC_L2CFBLNRResResResCFBLNBR[10:0]
Reset value0000000000
0x144LTDC_L2CLUTWRCLUTADD[7:0]RED[7:0]GREEN[7:0]BLUE[7:0]
Reset value00000000000000000000000000000000
Refer to Section 2.2 for the register boundary addresses.