19. LCD-TFT display controller (LTDC)
This section applies to the whole STM32F76xxx and STM32F77xxx devices, unless otherwise specified.
19.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.
19.2 LTDC main features
- • 24-bit RGB parallel pixel output; 8 bits-per-pixel (RGB888)
- • 2 display layers with dedicated FIFO (64x32-bit)
- • Color look-up table (CLUT) up to 256 color (256x24-bit) per layer
- • Programmable timings for different display panels
- • Programmable background color
- • Programmable polarity for HSYNC, VSYNC and data enable
- • Up to 8 input color formats selectable per layer:
- – ARGB8888
- – RGB888
- – RGB565
- – ARGB1555
- – ARGB4444
- – L8 (8-bit luminance or CLUT)
- – AL44 (4-bit alpha + 4-bit luminance)
- – AL88 (8-bit alpha + 8-bit luminance)
- • Pseudo-random dithering output for low bits per channel
- – Dither width 2 bits for red, green, blue
- • Flexible blending between two layers using alpha value (per pixel or constant)
- • Color keying (transparency color)
- • Programmable window position and size
- • Supports thin film transistor (TFT) color displays
- • AHB master interface with burst of 16 words
- • Up to 4 programmable interrupt events
19.3 LTDC functional description
19.3.1 LTDC block diagram
The block diagram of the LTDC is shown in the figure below.
![Figure 119. 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.](/RM0410-STM32F76-77/ff42c979a50a3ca92cbf12bb118db9c9_img.jpg)
Figure 119. LTDC block diagram
MSV19675V2
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 19.4.1 and Section 19.4.2 .
19.3.2 LTDC pins and external signal interface
The table below summarizes the LTDC signal interface.
Table 127. LTDC pins and signal interface
| LCD-TFT signals | I/O | Description |
|---|---|---|
| LCD_CLK | O | Clock output |
| LCD_HSYNC | O | Horizontal synchronization |
| LCD_VSYNC | O | Vertical synchronization |
| LCD_DE | O | Not data enable |
| LCD_R[7:0] | O | Data: 8-bit red data |
| LCD_G[7:0] | O | Data: 8-bit green data |
| LCD_B[7:0] | O | Data: 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].
19.3.3 LTDC reset and clocks
The LCD-TFT controller peripheral uses the following clock domains:
- • AHB clock domain (HCLK)
This domain contains the LCD-TFT AHB master interface for data transfer from the memories to the Layer FIFO and the frame buffer configuration register - • APB2 clock domain (PCLK2):
This domain contains the global configuration registers and the interrupt register. - • Pixel clock domain (LCD_CLK)
This domain contains the pixel data generation, the layer configuration register as well as the LCD-TFT interface signal generator. The LCD_CLK output must be configured following the panel requirements. The LCD_CLK is generated from a specific PLL output (refer to the reset and clock control section).
The table below summarizes the clock domain for each register.
Table 128. Clock domain for each register
| LTDC register | Clock domain |
|---|---|
| LTDC_LxCR | HCLK |
| LTDC_LxCFBAR | |
| LTDC_LxCFBLR | |
| LTDC_LxCFBLNR | |
| LTDC_SRCR | PCLK2 |
| LTDC_IER | |
| LTDC_ISR | |
| LTDC_ICR |
Table 128. Clock domain for each register (continued)
| LTDC register | Clock domain |
|---|---|
| LTDC_SSCR | Pixel 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:
- • 6 PCLK2 periods + 5 LCD_CLK periods (five HCLK periods for register on AHB clock domain) for register write access and update
- • 7 PCLK2 periods + 5 LCD_CLK periods (five HCLK periods for register on AHB clock domain) for register read access
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.
19.4 LTDC programmable parameters
The LCD-TFT controller provides flexible configurable parameters. It can be enabled or disabled through the LTDC_GCR register.
19.4.1 LTDC global configuration parameters
Synchronous timings
Figure 120 presents the configurable timing parameters generated by the synchronous timings generator block presented in the block diagram Figure 119. It generates the
horizontal and vertical synchronization timings panel signals, the pixel clock and the data enable signals.
Figure 120. LCD-TFT synchronous timings

The diagram illustrates the timing parameters for an LCD-TFT display. It shows a sequence of lines representing the active display and synchronization signals. Key parameters are defined as follows:
- Total width: The total duration of one horizontal line, including the active signal, back porch, and front porch.
- Active width: The duration of the active display signal.
- HSYNC width: The duration of the horizontal synchronization signal.
- HBP (Horizontal Back Porch): The duration between the start of the active signal and the start of the front porch.
- HFP (Horizontal Front Porch): The duration of the front porch signal.
- Total height: The total duration of one vertical frame, including the active signal, back porch, and front porch.
- Active height: The duration of the active display signal vertically.
- VSYNC width: The duration of the vertical synchronization signal.
- VBP (Vertical Back Porch): The duration between the start of the active signal and the start of the front porch vertically.
- VFP (Vertical Front Porch): The duration of the front porch signal vertically.
The diagram also shows the 'Active display area' containing 'Data1, Line1' at the top-left and 'Data(n), Line(n)' at the bottom-right. The identifier 'MSv19674V1' is present in the bottom right corner of the diagram area.
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:
- • HSYNC and VSYNC width: horizontal and vertical synchronization width, configured by programming a value of HSYNC width - 1 and VSYNC width - 1 in the LTDC_SSCR register
- • HBP and VBP: horizontal and vertical synchronization back porch width, configured by programming the accumulated value HSYNC width + HBP - 1 and the accumulated value VSYNC width + VBP - 1 in the LTDC_BPCR register.
- • Active width and active height: the active width and active height are configured by programming the accumulated value HSYNC width + HBP + active width - 1 and the accumulated value VSYNC width + VBP + active height - 1 in the LTDC_AWCR register.
- • Total width: the total width is configured by programming the accumulated value HSYNC width + HBP + active width + HFP - 1 in the LTDC_TWCR register. The HFP is the horizontal front porch period.
- • Total height: the total height is configured by programming the accumulated value VSYNC height + VBP + active height + VFP - 1 in the LTDC_TWCR register. The VFP is the vertical front porch period.
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):
- • horizontal and vertical synchronization width: 0xA pixels and 0x2 lines
- • horizontal and vertical back porch: 0x14 pixels and 0x2 lines
- • active width and active height: 0x140 pixels, 0xF0 lines (320x240)
- • horizontal front porch: 0xA pixels
- • vertical front porch: 0x4 lines
The programmed values in the LTDC timings registers are:
- • LTDC_SSCR register to be programmed to 0x00090001
(HSW[11:0] is 0x9 and VSH[10:0] is 0x1) - • LTDC_BPCR register to be programmed to 0x001D0003
(AHBP[11:0] is 0x1D (0xA + 0x13) and AVBP[10:0] is 0x3 (0x2 + 0x1)) - • LTDC_AWCR register to be programmed to 0x015D00F3
(AAW[11:0] is 0x15D (0xA + 0x14 + 0x13F) and AAH[10:0] is 0xF3 (0x2 + 0x2 + 0xEF)) - • LTDC_TWCR register to be programmed to 0x00000167
(TOTALW[11:0] is 0x167 (0xA + 0x14 + 0x140 + 0x9)) - • LTDC_THCR register to be programmed to 0x000000F7
(TOTALH[10:0] is 0xF7 (0x2 + 0x2 + 0xF0 + 3))
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 19.5: LTDC interrupts for the interrupt configuration.
19.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):
- • The first and the last visible pixel in the layer are set by configuring the WHSTPOS[11:0] and WHSPPPOS[11:0] in the LTDC_LxWHPCR register.
- • The first and the last visible lines in the layer are set by configuring the WVSTPOS[10:0] and WVSPPOS[10:0] in the LTDC_LxWVPCR register.
Figure 121. Layer window programmable parameters

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 129. 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 129. 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:
- • In case of L8 and AL88 input pixel format, the CLUT must be loaded by 256 colors. The address of each color is configured in the CLUTADD bits in the LTDC_LxCLUTWR register.
- • In case of AL44 input pixel format, the CLUT must be loaded by only 16 colors. The address of each color must be filled by replicating the 4-bit L channel to 8-bit as follows:
- – L0 (indexed color 0), at address 0x00
- – L1, at address 0x11
- – L2, at address 0x22
- – .....
- – L15, at address 0xFF
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:
- • If it is set to less bytes than required, a FIFO underrun interrupt is generated if it has been previously enabled.
- • If it is set to more bytes than actually required, the useless data read from the FIFO is discarded. The useless data is not displayed.
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 122. Blending two layers with background

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:
- • In RGB565, the mid-yellow color is 0x8400. Set the LTDC_LxCKCR to 0x848200.
- • In ARGB8888, the mid-yellow color is 0x808000. Set LTDC_LxCKCR to 0x808000.
- • In all CLUT-based color modes (L8, AL88, AL44), set one of the palette entry to the mid-yellow color 0x808000 and set the LTDC_LxCKCR to 0x808000.
19.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:
- • Line interrupt: generated when a programmed line is reached. The line interrupt position is programmed in the LTDC_LIPCR register
- • Register reload interrupt: generated when the shadow registers reload is performed during the vertical blanking period
- • FIFO underrun interrupt: generated when a pixel is requested from an empty layer FIFO
- • Transfer error interrupt: generated when an AHB bus error occurs during data transfer
Those interrupts events are connected to the NVIC controller as described in the figure below.
Figure 123. Interrupt events

Table 130. LTDC interrupt requests
| Interrupt event | Event flag | Enable control bit |
|---|---|---|
| Line | LIF | LIE |
| Register reload | RRIF | RRIEN |
| FIFO underrun | FUDERRIF | FUDERRIE |
| Transfer error | TERRIF | TERRIE |
19.6 LTDC programming procedure
The steps listed below are needed to program the LTDC:
- 1. Enable the LTDC clock in the RCC register.
- 2. Configure the required pixel clock following the panel datasheet.
- 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 19.4.1: LTDC global configuration parameters .
- 4. Configure the synchronous signals and clock polarity in the LTDC_GCR register.
- 5. If needed, configure the background color in the LTDC_BCCR register.
- 6. Configure the needed interrupts in the LTDC_IER and LTDC_LIPCR register.
- 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
- 8. Enable layer1/2 and if needed the CLUT in the LTDC_LxCR register.
- 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.
- 10. Reload the shadow registers to active register through the LTDC_SRCR register.
- 11. Enable the LCD-TFT controller in the LTDC_GCR register.
- 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.
19.7 LTDC registers
19.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 120 and Section 19.4 for an example of configuration.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | HSW[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 |
| Res. | Res. | Res. | Res. | Res. | VSH[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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.
19.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 120 and Section 19.4 for an example of configuration.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | AHBP[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 |
| Res. | Res. | Res. | Res. | Res. | AVBP[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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.
19.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 120 and Section 19.4 for an example of configuration.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | AAW[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 |
| Res. | Res. | Res. | Res. | Res. | AAH[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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.
19.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 120 and Section 19.4 for an example of configuration.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | TOTALW[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 |
| Res. | Res. | Res. | Res. | Res. | TOTALH[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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.
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HSPOL | VSPOL | DEPOL | PCPOL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DEN |
| rw | rw | rw | rw | rw | |||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | DRW[2:0] | Res. | DGW[2:0] | Res. | DBW[2:0] | Res. | Res. | Res. | LTDCE N | ||||||
| r | r | r | r | r | r | r | r | r | rw | ||||||
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.
Bits 14:12 DRW[2:0] : dither red width
These bits return the Dither Red Bits.
Bit 11 Reserved, must be kept at reset value.
Bits 10:8 DGW[2:0] : dither green width
These bits return the dither green bits.
Bit 7 Reserved, must be kept at reset value.
Bits 6:4 DBW[2:0] : dither blue width
These bits return the dither blue bits.
Bits 3:1 Reserved, must be kept at reset value.
Bit 0 LTDCEN : LCD-TFT controller enable
This bit is set and cleared by software.
0: LTDC disable
1: LTDC enable
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VBR | IMR |
| rw | rw |
Bits 31:2 Reserved, must be kept at reset value.
Bit 1 VBR : vertical blanking reload
This bit is set by software and cleared only by hardware after reload (it cannot be cleared through register write once it is set).
0: no effect
1: The shadow registers are reloaded during the vertical blanking period (at the beginning of the first line after the active display area).
Bit 0 IMR : immediate reload
This bit is set by software and cleared only by hardware after reload.
0: no effect
1: The shadow registers are reloaded immediately.
Note: The shadow registers read back the active values. Until the reload has been done, the 'old' value is read.
19.7.7 LTDC background color configuration register (LTDC_BCCR)
Address offset: 0x2C
Reset value: 0x0000 0000
This register defines the background color (RGB888).
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BCRED[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 |
| BCGREEN[7:0] | BCBLUE[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
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.
19.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
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RRIE | TERRIE | FUIE | LIE |
| rw | rw | rw | rw |
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
Bit 1 FUIE : FIFO underrun interrupt enable
This bit is set and cleared by software.
0: FIFO underrun interrupt disable
1: FIFO underrun Interrupt enable
Bit 0 LIE : line interrupt enable
This bit is set and cleared by software.
0: line interrupt disable
1: line interrupt enable
19.7.9 LTDC interrupt status register (LTDC_ISR)
Address offset: 0x38
Reset value: 0x0000 0000
This register returns the interrupt status flag.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RRIF | TERRIF | FUIF | LIF |
| r | r | r | r |
Bits 31:4 Reserved, must be kept at reset value.
Bit 3 RRIF : register reload interrupt flag
0: no register reload interrupt generated
1: register reload interrupt generated when a vertical blanking reload occurs (and the first line after the active area is reached)
Bit 2 TERRIF : transfer error interrupt flag
0: no transfer error interrupt generated
1: transfer error interrupt generated when a bus error occurs
Bit 1 FUIF : FIFO underrun interrupt flag
0: no FIFO underrun interrupt generated.
1: FIFO underrun interrupt generated, if one of the layer FIFOs is empty and pixel data is read from the FIFO
Bit 0 LIF : line interrupt flag
0: no line interrupt generated
1: line interrupt generated when a programmed line is reached
19.7.10 LTDC Interrupt clear register (LTDC_ICR)
Address offset: 0x3C
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CRRIF | CTERRIF | CFUIF | CLIF |
| w | w | w | w |
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.
19.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 120 .
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | LIPOS[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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.
19.7.12 LTDC current position status register (LTDC_CPSR)
Address offset: 0x44
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CXPOS[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| CYPOS[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
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.
19.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 VSYNC bit is set (active high). If the current display phase is the horizontal synchronization, the HSYNC bit is active high.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | HSYNC S | VSYNC S | HDES | VDES |
| r | r | r | r |
Bits 31:4 Reserved, must be kept at reset value.
Bit 3 HSYNC : horizontal synchronization display status
0: active low
1: active high
Bit 2 VSYNC : 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.
19.7.14 LTDC layer x control register (LTDC_LxCR)
Address offset: 0x84 + 0x80 * (x - 1), (x = 1 to 2)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CLUTEN | Res. | Res. | COLKEN | LEN |
| rw | rw | rw |
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
19.7.15 LTDC layer x window horizontal position configuration register (LTDC_LxWHPCTR)
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 AHP[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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | 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 |
| Res. | Res. | Res. | Res. | 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.
WHSPPOS[11:0] must be \( \geq \) AHP[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 \) (AHP[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], must be programmed to \( 0x14 \) ( \( 0xE+1+0x5 \) )
- 2. layer window last pixel, WHSPPOS[11:0], must be programmed to \( 0x28A \) .
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | 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 |
| Res. | Res. | Res. | Res. | Res. | WVSTPOS[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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. layer window first line: WVSTPOS[10:0] must be programmed to 0xE (0x5 + 1 + 0x8).
- 2. layer window last line: WVSTPOS[10:0] must be programmed to 0x1DA.
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | 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 | 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
19.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).
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PF[2:0] | ||
| rw | rw | rw | |||||||||||||
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)
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CONSTA[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
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 \) .
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DCALPHA[7:0] | DCRED[7:0] | ||||||||||||||
| rw | rw | rw | rw | 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 |
| DCGREEN[7:0] | DCBLUE[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
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.
19.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 \)
- • BC = blended color
- • BF1 = blend factor 1
- • C = current layer color
- • BF2 = blend factor 2
- • Cs = subjacent layers blended color
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | BF1[2:0] | Res. | Res. | Res. | Res. | Res. | BF2[2:0] | ||||
| rw | rw | rw | rw | rw | rw | ||||||||||
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 \) .
19.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.

| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| CFBADD[31:16] | |||||||||||||||
| rw | rw | rw | rw | 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 |
| CFBADD[15:0] | |||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:0 CFBADD[31:0] : color frame buffer start address
These bits define the color frame buffer start address.
19.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.

| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | CFBP[12:0] | ||||||||||||
| rw | 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 |
| Res. | Res. | Res. | CFBLL[12:0] | ||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||
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:
\( \text{active high width} * \text{number of bytes per pixel} + 3 \) .
Example:
- • A frame buffer having the format RGB565 (2 bytes per pixel) and a width of 256 pixels (total number of bytes per line is \( 256 * 2 = 512 \) ), where pitch = line length requires a value of 0x02000203 to be written into this register.
- • A frame buffer having the format RGB888 (3 bytes per pixel) and a width of 320 pixels (total number of bytes per line is \( 320 \times 3 = 960 \) ), where pitch = line length requires a value of 0x03C003C3 to be written into this register.
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | CFBLNBR[10:0] | ||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
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.
19.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.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CLUTADD[7:0] | RED[7:0] | ||||||||||||||
| w | w | w | w | w | w | w | w | w | w | w | w | w | w | w | w |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| GREEN[7:0] | BLUE[7:0] | ||||||||||||||
| w | w | w | w | w | w | w | w | w | w | w | w | w | w | w | w |
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.
19.7.26 LTDC register map
Table 131. LTDC register map and reset values
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x008 | LTDC_SSCR | Res. | Res. | Res. | Res. | HSW[11:0] | Res. | Res. | Res. | Res. | Res. | VSH[10:0] | |||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||
| 0x00C | LTDC_BPCR | Res. | Res. | Res. | Res. | AHBP[11:0] | Res. | Res. | Res. | Res. | Res. | AVBP[10:0] | |||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||
| 0x010 | LTDC_AWCR | Res. | Res. | Res. | Res. | AAW[11:0] | Res. | Res. | Res. | Res. | Res. | AAH[10:0] | |||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||
| 0x014 | LTDC_TWCR | Res. | Res. | Res. | Res. | TOTALW[11:0] | Res. | Res. | Res. | Res. | Res. | TOTALH[10:0] | |||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||
| 0x018 | LTDC_GCR | HSPOL | VSPOL | DEPOL | PCPOL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DEN | Res. | DRW[2:0] | Res. | DGW[2:0] | Res. | DBW[2:0] | Res. | Res. | Res. | LTDCEN | ||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | ||||||||||||||||||
| 0x024 | LTDC_SRCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VBR | IMR |
| Reset value | 0 | 0 | |||||||||||||||||||||||||||||||
| 0x02C | LTDC_BCCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BCRED[7:0] | BCGREEN[7:0] | BCBLUE[7:0] | |||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
| 0x030 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x034 | LTDC_IER | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RRIE | TERRIE | FUIE | LIE |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x038 | LTDC_ISR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RRIF | TERRIF | FUIF | LIF |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x03C | LTDC_ICR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CRRIF | CTERRIF | CFUIF | CLIF |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x040 | LTDC_LIPCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LIPOS[10:0] | ||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
| 0x044 | LTDC_CPSR | CXPOS[15:0] | CYPOS[15:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x048 | LTDC_CDSR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | HSYNCS | VSYNCS | HDES | VDES |
| Reset value | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||||
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x04C-0x080 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x084 | LTDC_L1CR | Res. | CLUTEN | Res. | COLKEN | LEN | |||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x088 | LTDC_L1WHPCR | Res. | WHSPPOS[11:0] | Res. | WHSTPOS[11:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
| 0x08C | LTDC_L1WVPCR | Res. | WVSPPOS[10:0] | Res. | WVSTPOS[10:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x090 | LTDC_L1CKCR | Res. | CKRED[7:0] | CKGREEN[7:0] | CKBLUE[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
| 0x094 | LTDC_L1PFCR | Res. | PF[2:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x098 | LTDC_L1CACR | Res. | CONSTA[7:0] | ||||||||||||||||||||||||||||||
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
| 0x09C | LTDC_L1DCCR | DCALPHA[7:0] | DCRED[7:0] | DCGREEN[7:0] | DCBLUE[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x0A0 | LTDC_L1BFCR | Res. | BF1[2:0] | Res. | BF2[2:0] | ||||||||||||||||||||||||||||
| Reset value | 1 | 1 | 0 | 1 | 1 | 1 | |||||||||||||||||||||||||||
| 0x0A4-0x0A8 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x0AC | LTDC_L1CFBAR | CFBADD[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x0B0 | LTDC_L1CFBLR | Res. | CFBP[12:0] | Res. | CFBLL[12:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||
| 0x0B4 | LTDC_L1CFBLNR | Res. | CFBLNBR[10:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
| 0x0B8-0x0C0 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x0C4 | LTDC_L1CLUTWR | CLUTADD[7:0] | RED[7:0] | GREEN[7:0] | BLUE[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x0C8-0x100 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x104 | LTDC_L2CR | Res. | CLUTEN | Res. | COLKEN | LEN | |||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x108 | LTDC_L2WHPCR | Res. | WHSPPOS[11:0] | Res. | WHSTPOS[11:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
| 0x10C | LTDC_L2WVPCR | Res. | WVSPPOS[10:0] | Res. | WVSTPOS[10:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||
| 0x110 | LTDC_L2CKCR | Res. | CKRED[7:0] | CKGREEN[7:0] | CKBLUE[7:0] | ||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
| 0x114 | LTDC_L2PFCR | Res. | PF[2:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x118 | LTDC_L2CACR | Res. | CONSTA[7:0] | ||||||||||||||||||||||||||||||
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||
Table 131. LTDC register map and reset values (continued)
| Offset | Register name | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x11C | LTDC_L2DCCR | DCALPHA[7:0] | DCRED[7:0] | DCGREEN[7:0] | DCBLUE[7:0] | ||||||||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||
| 0x120 | LTDC_L2BFCR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | BF1[2:0] | BF2[2:0] | ||||||||||||||||||
| Reset value | 1 | 1 | 0 | 1 | 1 | 1 | |||||||||||||||||||||||||||||||||||
| 0x124- 0x128 | Reserved | Reserved | |||||||||||||||||||||||||||||||||||||||
| 0x12C | LTDC_L2CFBAR | CFBADD[31:0] | |||||||||||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
| 0x130 | LTDC_L2CFBLR | Res | Res | Res | CFBP[12:0] | ||||||||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||
| 0x134 | LTDC_L2CFBLNR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | CFBLNBR[10:0] | |||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x144 | LTDC_L2CLUTWR | CLUTADD[7:0] | RED[7:0] | GREEN[7:0] | BLUE[7:0] | ||||||||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
Refer to Section 2.2 for the register boundary addresses.