53. LCD-TFT display controller (LTDC)

53.1 LTDC introduction

The LTDC (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-TFT panels.

53.2 LTDC main features

Note: The above mentioned FourCC pixel formats are described at www.fourcc.org.

53.3 LTDC implementation

The LTDC has been implemented with the following settings:

These settings depend on the configured frequencies of the AXI and pixel clocks.

53.4 LTDC functional description

53.4.1 LTDC block diagram

Figure 471. LTDC block diagram

Figure 471. LTDC block diagram. This block diagram illustrates the internal architecture of the LTDC. It features three parallel pixel pipe layers (Layer 1, Layer 2, and Layer 3) that receive data via AXI read interfaces and FIFOs. Each layer undergoes input and crop, pixel format conversion, and color look-up table (CLUT) processing. Layers 1 and 2 also include YUV planar and YUV-to-RGB conversion, trans. keying, and a downscaler. The layers are combined in a window composition and alpha blend block, which also receives a background color input. A rotation domain, containing a rotation engine and rotation grouping, is integrated into the pipeline. The final output passes through gamma correction, RGB-to-YUV 422 conversion, and dithering before reaching the output sync and POL block. The output is then sent to the LCD interface (LCD_R[7:0], LCD_G[7:0], LCD_B[7:0]). A CRC hash block is also present. The system is controlled by a 32-bit APB bus interface to config and status registers, and an output timing generator provides LCD_CLK, LCD_VSYNC, LCD_HSYNC, and LCD_DE signals. Control signals include ltdc_ker_ck, ltdc_aclk, ltdc_pclk, ltdc_it_1, and ltdc_it_2. A 64-bit AXI bus is used for data transfer.
Figure 471. LTDC block diagram. This block diagram illustrates the internal architecture of the LTDC. It features three parallel pixel pipe layers (Layer 1, Layer 2, and Layer 3) that receive data via AXI read interfaces and FIFOs. Each layer undergoes input and crop, pixel format conversion, and color look-up table (CLUT) processing. Layers 1 and 2 also include YUV planar and YUV-to-RGB conversion, trans. keying, and a downscaler. The layers are combined in a window composition and alpha blend block, which also receives a background color input. A rotation domain, containing a rotation engine and rotation grouping, is integrated into the pipeline. The final output passes through gamma correction, RGB-to-YUV 422 conversion, and dithering before reaching the output sync and POL block. The output is then sent to the LCD interface (LCD_R[7:0], LCD_G[7:0], LCD_B[7:0]). A CRC hash block is also present. The system is controlled by a 32-bit APB bus interface to config and status registers, and an output timing generator provides LCD_CLK, LCD_VSYNC, LCD_HSYNC, and LCD_DE signals. Control signals include ltdc_ker_ck, ltdc_aclk, ltdc_pclk, ltdc_it_1, and ltdc_it_2. A 64-bit AXI bus is used for data transfer.

Blocks shown in the above figure are the following:

These operators and their configuration are described from Section 53.5.1 to Section 53.5.22.

53.4.2 LTDC pins and internal signals

Table 497. LTDC pins

Pin namePin typeDescription
FRAME_TRIGGERInputFrame trigger input, from the DSI wrapper
LCD_CLKOutputClock output
LCD_HSYNCHorizontal synchronization
LCD_VSYNCVertical synchronization
LCD_DENot data enable
LCD_R[7:0]8-bit Red data (or U/V component, if output is YUV422)
LCD_G[7:0]8-bit Green data (or Y component if output is YUV422)
LCD_B[7:0]8-bit Blue data

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

Using less pins than the default 24 bpp

The LTDC outputs the pixels on 24 pins by default (RGB888). The user can however connect the display panel using less wires, for instance 16 wires (if RGB565) or 18 wires (RGB666). If so, R (resp. G, B) wires must be connected to the MSB of the LTDC R (resp. G, B) output pins (see Section 53.4.2).

Example: LTDC interfacing with a RGB565 16-bit display panel. Display panel R[4:0], G[5:0] and B[4:0] wires and input pins must be connected to LTDC_R[7:3], LCD_G[7:2], and LCD_B[7:3] output pins.

53.4.3 LTDC reset and clocks

The LTDC uses the following clock domains:

Note: For normal operation, all clocks must be provided to allow clock domain crossing for read and write operations.

The following table lists the clock domains used to store the register values.

Table 498. Clock domain for each register

LTDC registerClock domain
LTDC_IDRAPB clock
LTDC_LCR
LTDC_SSCRPixel clock
LTDC_BPCRAXI + pixel clock
LTDC_AWCR
LTDC_TWCR
LTDC_GCR
LTDC_GC1RAPB clock
LTDC_GC2R
LTDC_SRCR
LTDC_GCCRPixel clock
LTDC_BCCR
LTDC_IERAPB clock
LTDC_ISR
LTDC_ICR
LTDC_LIPCRPixel clock
LTDC_CPSR
LTDC_CDSR
LTDC_EDCR
LTDC_IER2APB clock
LTDC_ISR2
LTDC_ICR2
LTDC_LIPCR2Pixel clock
LTDC_ECRCR
LTDC_CCRCR
LTDC_RB0ARAXI clock
LTDC_RB1AR
LTDC_RBPR
LTDC_RIFCR
LTDC_FUTRPixel clock
LTDC_LxC0RAPB clock
LTDC_LxC1R
LTDC_LxRCR

Table 498. Clock domain for each register (continued)

LTDC registerClock domain
LTDC_LxCRAXI + pixel clock
LTDC_LxWHPCRPixel clock
LTDC_LxWVPCR
LTDC_LxCKCR
LTDC_LxPFCR
LTDC_LxCACR
LTDC_LxDCCR
LTDC_LxBFCR
LTDC_LxBLCRAXI clock
LTDC_LxPCRAXI + pixel clock
LTDC_LxCFBAR
LTDC_LxCFBLR
LTDC_LxCFBLNR
LTDC_LxAFBA0R
LTDC_LxAFBA1R
LTDC_LxAFBLR
LTDC_LxAFBLNR
LTDC_LxCLUTWRPixel clock
LTDC_LxSISR
LTDC_LxSOSR
LTDC_LxSVSFR
LTDC_LxSVSPR
LTDC_LxSHSFR
LTDC_LxSHSPR
LTDC_LxCYR0R
LTDC_LxCYR1R
LTDC_LxFPF0R
LTDC_LxFPR1R

While accessing LTDC registers, the APB bus is stalled during the access for a given time period detailed in the following table.

Table 499. LTDC register access and updated durations

Access typeAXI register clock domainAPB register clock domainPixel register clock domain
Read7 x ltdc_pclk + 5 x ltdc_aclk7 x ltdc_pclk7 x ltdc_pclk + 5 x ltdc_ker_clk
Write6 x ltdc_pclk + 5 x ltdc_aclk6 x ltdc_pclk6 x ltdc_pclk + 5 x ltdc_ker_clk

The LTDC can be reset by setting the corresponding bit in the RCC, that resets the three clock domains.

53.5 LTDC configuration parameters

The LTDC configuration parameters are sequenced following the pixel flow as shown in Figure 471, starting at the input (AXI master that reads pixels) and ending at the pixel output.

Common controls (such as interrupts) are listed at the end.

53.5.1 AXI master

The AXI master busses perform the accesses to the memory and are driven by the internal logic. FIFOs allocated in the LTDC for the different streams (3 layers, rotation write and read) are fairly large to cope with reasonably long external memory latencies.

The LTDC generates long burst (128-byte) for higher external memory efficiency. For more granularity, it is possible to decrease the max burst size to 64 bytes, but it is not recommended.

Parameter in LTDC_LxBLCR

BL: burst length, in 64-bit words, with a default 0 for max size

Default configuration

The default AXI burst length is set at its maximum value after reset, with BL = 0.

53.5.2 Input layer definition and cropping

The LTDC supports three layers. Each layer is defined by:

Note: The pitch and number of bytes per line can be different if a sub-part of a frame is cropped to be displayed. If the full frame is displayed, the pitch and number of lines are the same.

Parameters

Specifically for multi-planar-capable layers, the following additional registers have to be configured (only required for YUV420 semi-planar and full-planar pixel formats):

Configuration examples

53.5.3 Input pixel format

The LTDC reads the pixel data from memory buffers and maps it onto the internal LTDC format that is based on the definition of the input pixel format, defined per layer.

The pixel formats are grouped as follows:

Note: The LTDC hardware pipeline uses 8 bits per component: when reading and mapping a pixel format, with less than 8 bits per component. That component is extended to 8 bits by stuffing the LSB, that are recopied from its MSB. This applies mostly on RGB565.

For instance, a component on 5 bits (named: 43210) results in the following 8 bits mapped into the pipe: 43210432. A 3-bit input (named 210) results in 21021021.

Parameter when using the predefined ARGB formats

Parameters when using the flexible ARGB formats

Examples:

An RGB565 pixel format is defined as follows:

The BGRA8888 32 bpp pixel format is set as follows (default reset values of LTDC_LxFPF0R and LTDC_LxFPF1R):

Parameters when using the YUV formats

The YUV pixel format is defined and detailed in Section 53.5.4: YUV planar and supersedes any setting here.

The following table describes the memory mapping of the predefined ARGB pixel format.

Table 500. Pixel data mapping versus color format

ARGB8888 (PF = 000)
@+3
Ax[7:0]
@+2
Rx[7:0]
@+1
Gx[7:0]
@
Bx[7:0]
@+7
Ax+1[7:0]
@+6
Rx+1[7:0]
@+5
Gx+1[7:0]
@+4
Bx+1[7:0]
ABGR8888 (PF = 001)
@+3
Ax[7:0]
@+2
Bx[7:0]
@+1
Gx[7:0]
@
Rx[7:0]
@+7
Ax+1[7:0]
@+6
Bx+1[7:0]
@+5
Gx+1[7:0]
@+4
Rx+1[7:0]
RGBA8888 (PF = 010)
@+3
Rx[7:0]
@+2
Gx[7:0]
@+1
Bx[7:0]
@
Ax[7:0]
@+7
Rx+1[7:0]
@+6
Gx+1[7:0]
@+5
Bx+1[7:0]
@+4
Ax+1[7:0]
BGRA8888 (PF = 011)
@+3
Bx[7:0]
@+2
Gx[7:0]
@+1
Rx[7:0]
@
Ax[7:0]
@+7
Bx+1[7:0]
@+6
Gx+1[7:0]
@+5
Rx+1[7:0]
@+4
Ax+1[7:0]
RGB565 (PF = 100)
@+3
Rx+1[4:0] Gx+1[5:3]
@+2
Gx+1[2:0] Bx+1[4:0]
@+1
Rx[4:0] Gx[5:3]
@
Gx[2:0] Bx[4:0]
@+7
Rx+3[4:0] Gx+3[5:3]
@+6
Gx+3[2:0] Bx+3[4:0]
@+5
Rx+2[4:0] Gx+2[5:3]
@+4
Gx+2[2:0] Bx+2[4:0]
BGR565 (PF = 101)
@+3
Bx+1[4:0] Gx+1[5:3]
@+2
Gx+1[2:0] Rx+1[4:0]
@+1
Bx[4:0] Gx[5:3]
@
Gx[2:0] Rx[4:0]
@+7
Bx+3[4:0] Gx+3[5:3]
@+6
Gx+3[2:0] Rx+3[4:0]
@+5
Bx+2[4:0] Gx+2[5:3]
@+4
Gx+2[2:0] Rx+2[4:0]
RGB888 (PF = 110)
@+3
Bx+1[7:0]
@+2
Rx[7:0]
@+1
Gx[7:0]
@
Bx[7:0]
@+7
Gx+2[7:0]
@+6
Bx+2[7:0]
@+5
Rx+1[7:0]
@+4
Gx+1[7:0]
The flexible format (PF = 111), not represented here, allows any above mapping.

53.5.4 YUV planar

This operator handles the YUV planar formats, reading data from potentially several distinct buffers (Y versus Cb versus Cr) into a single pixel information. The feature is available for layer 1 and layer 2. It is not available for layer 3.

The LTDC supports the following planar formats:

Following its configuration, the LTDC reads the relevant luminance and chrominance buffers, upscales the chrominance components required to reach YUV444 pixels, and converts the color from YUV to RGB as described in Section 53.5.5.

The LTDC allows swapping the memory locations of the Y and Cb/Cr data and of the Cb and Cr data. It also allows inverting the endianness of the Y data. This extends the amount of supported pixel format variants.

Parameters

Pixel format parameters are stored in LTDC_LxPCR:

When using a semi-planar or full-planar buffer, some additional base-address must be configured for auxiliary (chrominance) buffers, as well as the pitch of these buffers (see Section 53.5.2).

Configuration examples

Settings of OF, CBF, YF bits for a YCbCr 422 pixel format:

These settings are also valid for YCbCr 420 pixel formats.

53.5.5 YUV-to-RGB color conversion

This operator handles the YUV-to-RGB color conversion of the YUV planar pixels. Like the above operator, it is only available for layer 1 and layer 2. The color conversion is activated automatically, simultaneously with the YUV planar handling.

The color conversion is based on a semi-flexible 3x3 matrix multiplication:

Parameters

The full matrix computation, to convert from YCbCr to RGB, is defined as the following:

\[ \begin{pmatrix} R \\ G \\ B \end{pmatrix} = \begin{pmatrix} CR2R & 256 & 0 \\ -CR2G & 256 & -CB2G \\ 0 & 256 & CB2B \end{pmatrix} \times \begin{pmatrix} Cr - 128 \\ Y \\ Cb - 128 \end{pmatrix} \]

The CR2R, CB2B, CR2G, and CB2G coefficients are defined on 10 bits unsigned: as the operator works with 8-bit components, the coefficients are thus equivalent, in fixed-point, to 2-bit integer and 8-bit decimals.

The CR2G and CB2G coefficients are configured as unsigned positive, but are set negative in the hardware computation, as shown in the above matrix where a “-” is mentioned.

When the luminance scaling is active (YREN = 1, thus where the YCbCr input is assumed in the range of 16 to 235/240, and RGB in 0 to 255), then the Y input value is first scaled in hardware to \(Y' = 255/219 * (Y - 16)\). That first result is then inserted as input to the above matrix multiplication.

Configuration examples

To read an ITU-R BT.601 layer and to convert its YCbCr (assuming a default reduced dynamic in 16 to 235/240) to RGB (with full dynamic in 0 to 255), the recommended coefficients are:

To read an ITU-R BT.709 layer and to convert its YCbCr (assuming a default reduced dynamic in 16 to 235/240) to RGB (with full dynamic in 0 to 255), the recommended values to configure coefficients are:

53.5.6 Horizontal or vertical mirroring

The LTDC can mirror horizontally or vertically its input layers, thus to read them from right to left, and/or from bottom to top.

It applies on both coplanar (ARGB, YUV422) and multi-planar (YUV420) pixel formats.

Parameters for horizontal mirroring

To mirror a layer horizontally, the LTDC must be configured to extract the pixels from right to left (backward), and to set the layer base-address at the right-end of the line.

The configuration bitfields are the following:

Parameters for vertical mirroring

To mirror a layer vertically, the LTDC must be configured to start reading this layer from the bottom, and line per line, to come upward. The layer base-address must be set to the start of the bottom line, and a negative line-per-line pitch must be provided.

The configuration bitfields for the base-address are (all to be set at bottom line start):

The configuration bitfields for the pitch are (all to be set with a negative pitch):

53.5.7 Default layer color

Every layer has a default color in the format ARGB8888, that is used outside the defined layer window or when a layer is disabled. This default color can be configured as active or absent.

Parameters

The default layer color parameters are:

Default configuration

By default, and after reset, the default layer color is inactive (DCBEN = 0 and DCALPHA = 0).

Note: The blending of a layer is always performed even when a layer is disabled. To avoid displaying the default color when a layer is disabled, the default Alpha must be set to null (DCALPHA = 0), or the whole default color must be disabled (with DCBEN).

53.5.8 Color look-up table (CLUT)

The LTDC supports frame buffers with each pixel defined as an index to a color table, allowing a display with a set of 256 colors, but stored in memory with only 8 bpp.

The CLUT defines 256 colors and must be indexed with a maximum 8-bit pixel format (typically L8 or AL44). Such format can be extracted using the flexible RGB approach described in Section 53.5.3.

The CLUT table is differentiated for each layer. It must be initialized with one RGB888 value per color index, with the color index corresponding to the CLUT address:

Parameters

The RGB888 values and color indices are configured through the following bitfields in LTDC_LxCLUTWR:

53.5.9 Transparency color keying

Pixels can be defined as transparent using a color key. If the pixel RGB components equals the defined RGB color key, that pixel is considered transparent and its Alpha channel is forced null.

A pixel forced to transparent is transparent when proceeding to the later blending phase, and shows the pixel of the underlying layer.

The color key is defined as an RGB888 value, that is compared with the flowing pixel after some processing in the input format operator (where LSBs are stuffed by replication) and CLUT processing. The constant color keying parameters must take these previous processing into account.

Parameters

The color keying parameters are the following:

Configuration example

A mid-yellow color (50 % Red + 50 % Green) is used as the transparent color key. The color keying parameters take it into account as follows:

53.5.10 Upscaler

Layer 1 and layer 2 can be upscaled using a bilinear filter with decimal ratios. Vertical and horizontal ratios can be differentiated.

The filter is based on a bilinear filter, that provides very good results for upscale ratios from 1x to 2x, but may provide aliasing artifacts for higher ratios.

Parameters

The upscaler parameters are the following:

The ratio is given as the input size/output size with a 16-bit fixed-point decimal. The phase is given as the start proportion of the first pixel, with a 12-bit fixed-point decimal.

Example:

To upscale from a 720p frame (1280x720 pixels) to a 1080p frame (1920x1080 pixels), the following configuration is needed:

Phase can be kept by default at 0, to start the upscaled layer with the left-most top-most as a native pixel (recopy from the input)

53.5.11 Display composition - windowing

When performing the display composition, every layer (after a potential upscale) can be cropped and positioned into the active display area. The window position and size are configured by defining its top-left and bottom-right corners.

Note: The locations are defined versus the internal timing generator that must take into account the potential synchronization header, the back porch size and the chosen active pixel area (as shown in Figure 472).

The mapping between the input layer and the visible window is performed as follows:

Parameters:

The following parameters are defined versus the top-left of the synchronization:

Figure 472. Layer window programmable parameters

Diagram showing a window within an active data area. The window is defined by horizontal and vertical start and end positions. Labels include: WVSTPOS bits in LTDC_LxWVPCR, WHSTPOS bits in LTDC_LxWHPCR, WVSPOS bits in LTDC_LxWVPCR, WHSPOS bits in LTDC_LxWHPCR, Window, Active data area, and MSv19676V4.

The diagram illustrates a yellow rectangular 'Window' positioned within a larger gray 'Active data area'. Four dimension lines with arrows indicate the window's position and size relative to the active area:

The reference code 'MSv19676V4' is located in the bottom right corner of the diagram area.

Diagram showing a window within an active data area. The window is defined by horizontal and vertical start and end positions. Labels include: WVSTPOS bits in LTDC_LxWVPCR, WHSTPOS bits in LTDC_LxWHPCR, WVSPOS bits in LTDC_LxWVPCR, WHSPOS bits in LTDC_LxWHPCR, Window, Active data area, and MSv19676V4.

Configuration examples

53.5.12 Display composition - blending

The Alpha blending stage is used to blend together the 3 input layers, on top of a background color.

It is possible to select the sequence of the layers (foreground, middle, and background), to apply a global multiplicative Alpha per-layer, and to define an underlying background color.

The blending computation is performed from back to front, sequentially, as shown the following figure, with only two layers for the example instead of three.

Figure 473. Blending two layers

Diagram showing the sequential blending of layers. It shows three stages: 1. Layer2, Layer1, and BG as separate layers. 2. Layer2 and Layer1 + BG combined. 3. Layer2 + Layer1 + BG as the final result. Reference code MSv48123V1 is in the bottom right.

The diagram shows the process of blending two layers and a background. It is divided into three stages from left to right:

  1. Initial state: Three separate layers are shown as overlapping rectangles labeled 'Layer2' (top), 'Layer1' (middle), and 'BG' (bottom).
  2. Intermediate state: A bracket groups 'Layer2' and 'Layer1 + BG', indicating that Layer1 and the background have been combined.
  3. Final state: A bracket groups the entire result as 'Layer2 + Layer1 + BG', showing the final blended image.
The reference code 'MSv48123V1' is located in the bottom right corner of the diagram area.

Diagram showing the sequential blending of layers. It shows three stages: 1. Layer2, Layer1, and BG as separate layers. 2. Layer2 and Layer1 + BG combined. 3. Layer2 + Layer1 + BG as the final result. Reference code MSv48123V1 is in the bottom right.

The general formula for a 2-to-1 blending is CR = (BF1 × C1)+(BF2 × C2) where:

Both blending factor, BF1 and BF2, can be defined as one of the following:

Parameters

The background color is defined by the following bitfields in LTDC_BCCR:

Note: For secure purposes, in case of an inconsistent configuration, the blending order falls back to a fixed order, with the layer 3 on the foreground, the layer 2 in middle, and layer 1 in background, followed by the underlying background color.

The inconsistent fallback is setup to protect a potential secure layer: If a secure software configures the secure layer3 to be on the foreground, and a malware tries to place that another layer on the foreground, the inconsistency is detected, and the secure layer is automatically forced on the foreground, guaranteeing that it is visible.

Configuration example

Only layer 1 is enabled, BF1 configured to constant alpha. BF2 configured to 1 - constant alpha. The constant alpha programmed in LTDC_LxCACR is 240 (0xF0). Thus, the constant alpha value is 240/255 = 0.94. C: current layer color is 128. Cs: background color is 48. Layer 1 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\).

Default configuration

All active layers can be made visible and blended by keeping the following configuration values after reset:

53.5.13 Rotation

The LTDC can rotate the blended result, by writing the full-blended frame in the external memory, reading it back and displaying it. The write-out occurs with virtual horizontal raster-scan lines, while the read-back-in occurs with virtual vertical raster-scan lines. An internal complex logic optimizes the burst length and external memory page opening.

The LTDC temporarily reads the input layers, blends them, and stores the blended result into the rotation buffer in the external memory. In parallel, the LTDC reads the previously blended and rotated buffer from the external memory, and sends it to the display panel, with the following consequences:

The size to allocate for each of the two rotation buffers can be simply computed from width and height of the composed display, storing RGB888 pixels.

Note: The composed display width becomes, after rotation, the height of the display panel. The composed display height becomes, after rotation, the width of the display panel.

Due to some implementation constrain, the composed width must be rounded up, per 10 pixel, and added an overhead of \(1/15^{\text{th}}\). The hardware also works internally with a double-line concept. It results in the following computations, used for the configuration: (with width and height being defined before rotation, at the composition level):

Activating the rotation performs an axial symmetry across the diagonal going to the bottom-right. To perform a clean rotation, this rotation must be combined with either an horizontal mirroring (for a clockwise rotation), or a vertical mirroring (for an anti-clockwise rotation).

Parameters

The pure rotation parameters are the following:

Example 1 - Clockwise 90° rotation

Assuming a portrait buffer (with horizontal raster-scan) to display on a display panel (initially landscape with a horizontal raster) that has been turned in a portrait orientation, after a clockwise rotation, thus with its first raster-scan line starting on top-right, going down.

The configuration requires a rotation and a horizontal mirroring:

Example 2 - Anti-clockwise 90° rotation

Assuming a portrait buffer (with horizontal raster scan) to display on a display panel (initially landscape with a horizontal raster) that has been turned in a portrait orientation, after an anti-clockwise rotation, thus with its first raster scan line starting on bottom-left, going up.

The configuration requires a rotation and a vertical mirroring:

Example 3 - Anti-clockwise 180° rotation

A rotation of 180 degrees if performed by combining a horizontal mirror and a vertical mirror, but without activating the here-described rotation feature. More details about mirroring can be found in Section 53.5.6.

Example 4 - Rotation-pitch configuration

Assume a typical 1080p60 panel, with a horizontal raster-scan when oriented in landscape (like a usual TV), and specifically hanged vertically (in portrait orientation), with thus a vertical raster:

The intermediate color must be selected to be an average of colors used in the display, so that the user does not notice presence of that frame during the typical 16 ms of its display duration.

Default configuration

The rotation is disabled with the default configuration after reset, with REN = 0.

53.5.14 Gamma correction

The gamma correction is a non-linear operator that adapts the pixel to the non-linear display, using a compensating pre-distortion. The R, G, B components can be independently adapted, using a configurable non-linear transformation.

The non-linear transformation is implemented in the LTDC as eight independent linearly-interpolated segments: the desired non-linear transformation must thus be mapped onto the eight segments, and the shape of the eight segments configured in LTDC registers.

Parameters

Note: As the gamma correction works with eight interpolated segments. The only table indices to write-in are located at index: 0, 32, 64, 96,...,224, 255. The value to provide for index 255 contains the value for the pseudo-index 256.

Example configuration

The gamma correction is recommended to be set to pre-compensate the pixels with a gamma exponent of 2.2: Red, Green, and Blue components are compensated the same way by the Gamma. The configuration of Red, Green, and Blue tables is then usually the same.

Default configuration

The gamma correction is disabled with the default configuration after reset, with GAMEN = 0.

53.5.15 YUV output conversion

The default RGB888 24 bpp output can be converted to a YUV422 16 bpp output (coplanar), in order to reduce the bitrate or the interface width, if necessary.

The operator can convert the RGB to YUV with either ITU-R BT.601 versus BT.709 reference, and filter down the chrominance, to output the pixels as a YUV422 interface.

When the conversion is enabled, the Y is output on the LCD_G (green bits) and the Cb/Cr are output on the LCD_R (red bits).

Parameters in LTDC_EDCR

The configuration must follow what is expected by the external display panel.

Default configuration

The YUV output conversion is disabled with the default configuration after reset, with OCYEN = 0, allowing a default RGB888 to be output.

53.5.16 Dithering

The dithering operator allows a clean conversion of the RGB888 output into a reduced pixel format, like RGB565 or RGB666, and so avoiding the usual artifact of flat area that occurs when no dithering is available.

The dithering is based on a LFSR (polynomial generating random) and adds pseudo-random noise on the LSB of each of the displayed component (bit 2 in case of an RGB666), and makes that the average of the local pixels represents the information content of the full 8-component value.

Parameters in LTDC_GCR

Example

To dither from RGB888 to RGB565 (assuming a RGB565 display panel):

Similarly, a dithering to RGB666 requires DRW = DGW = DBW = 2.

Default configuration

The dithering is disabled with the default configuration after reset, with DEN = 0, allowing a default RGB888 to be output.

53.5.17 CRC hashing

The CRC operator allows a 16-bit signature to be extracted for each frame, by hashing the R,G,B components of all the frame pixels.

The computed CRC can be read in LTDC_CCRCR.

An expected CRC value can be configured: if the computed CRC does not match the expected CRC, the CRC interrupt is triggered. It allows a system test, letting the LTDC run for hours, and be warned only if a failed frame occurs.

Parameters

Default configuration

The CRC hashing is disabled with the default configuration after reset, with CRCEN = 0.

53.5.18 Display timing

This section describes the configuration of the display timings, so that the LTDC matches what is expected by the external display panel.

The configuration defines the horizontal and vertical duration of each of the following items:

These timings are described in the following figure.

Figure 474. LTDC synchronous timings

Figure 474: LTDC synchronous timings diagram showing the relationships between Total width, HSYNC width, HBP (Horizontal Back Porch), Active width, HFP (Horizontal Front Porch), Total height, VSYNC width, VBP (Vertical Back Porch), Active height, Active display area (from Data1, Line1 to Data(n), Line(n)), and VFP (Vertical Front Porch). Below the diagram are notes explaining HBP, HFP, VBP, and VFP, and reference code MSv19674V2.
Figure 474: LTDC synchronous timings diagram showing the relationships between Total width, HSYNC width, HBP (Horizontal Back Porch), Active width, HFP (Horizontal Front Porch), Total height, VSYNC width, VBP (Vertical Back Porch), Active height, Active display area (from Data1, Line1 to Data(n), Line(n)), and VFP (Vertical Front Porch). Below the diagram are notes explaining HBP, HFP, VBP, and VFP, and reference code MSv19674V2.

As a result of these timings, the LTDC samples in pixels during the active display duration, and generates the output synchronization signals (HSYNC, VSYNC), the pixel data, and the data-enable signal.

Parameters

All the timings configured next are absolute timings, computed from the display start position, and not the relative increment (or width or height) of each area.

All these bitfields indicate the last pixel of each area, and hence are subtracted 1.

Note: When the LTDC is enabled, timings generated start at the position (X, Y) = (0,0), and generate immediately the first horizontal synchronization pixel in the vertical synchronization, followed by the back porch, then the active display area, and finally the front porch.

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

Example of synchronous timing configuration

Assume the following display panel timings (to be extracted from panel datasheet):

Bitfield values to configure become:

Default configuration

There is no default configuration to propose. As display timings depend on the specific display panel and its own required timings, all these parameters must be extracted from the display panel specification.

Note: The configuration of all the above is mandatory to have the LTDC driving correctly the external display panel.

53.5.19 Output interface polarity

The polarity of the control signals of the output interface includes the clock polarity, the vertical/horizontal synchronization, and the data-enable signal.

Parameters in LTDC_GCR

Default configuration

There is not default configuration, as the configuration of the polarity depends on the display panel specifications.

The following configuration can be used to have all items working with a positive polarity:

53.5.20 Shadow registers

When activated, the LTDC is expected to display continuously data, frame after frame.

The user may want to modify some settings: for example, add a new layer, modify the layer window location, or update the displayed content by updating the pointer to the buffer that is displayed.

The LTDC provides shadow registers for most of its configuration registers to allow transitions to occur cleanly synchronized during the short vertical synchronization, when nothing is displayed: while the LTDC is busy working with a copy of its configuration registers to control the ongoing display (the active set), a new version of the registers can be progressively updated by software (the shadow set). When ready, and at the exact VSync event, the shadow set is copied into the active set, ready for the next frame.

Once the shadow set is fully updated, there are two ways to transfer it in the active set:

Note: In case of delayed copy, shadow registers must not be modified again before the reload has been done.

Reading from shadow registers returns the current active value. The new written value can only be read after the reload has taken place.

The impossibility to read a temporary value in a shadow register makes impossible to perform a read-modify-write to set/reset a single bit inside a shadow register.

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

Shadowed registers

Non-layer registers

The non-layer registers (not prefixed with LTDC_Lx) are all non-shadowed. They contain static configurations dependent mostly on the attached display panel. They do not require update during an ongoing display.

Layer registers

The layer registers are prefixed with LTDC_Lx. Most are shadowed to support a clean frame-to-frame update. The following are not shadowed, either because their shadowing would be too costly or because they are not expected to require frequent or synchronized updates:

Parameters

The centralized reload of the shadow register is controlled with bitfields in LTDC_SRCR:

A per-layer reload control is available with bitfields in LTDC_LxRCR:

Default configuration

For the initial LTDC configuration, when the display is inactive, the IMR mode must be used to copy the initial configuration to the active set.

When the display is active, it is recommended to use VBR to update any parameters: the parameter transition occurs then from frame-to-frame, and not inside an ongoing frame. Applying an immediate change of the LTDC configuration within a frame results in an unpredictable behavior.

53.5.21 General control

The final and mandatory step, after all the above configurations, is to trigger the display. The LTDC has two working mode:

Parameters in LTDC_GCR

53.5.22 Provision for a secure layer

The LTDC allows a secure layer support, with the addition of a wrapper around the LTDC that secures the access to its registers (register-per-register), and secures the access of its AXI master to the layer and rotation framebuffers.

The layer 3 can be secured thanks to the measures described in the following sub-sections.

Configuration registers

The granularity between secure versus non-secure items is at register level:

It allows all registers to be segregated between secure ones (with an access only by secure software) and open ones (with an access by any non-secure software).

Interruptions

The interruption logic has been duplicated, with one secure interrupt logic (register and pin) reserved for secure software, and another open interrupt logic (second register set and second output pin) for non-secure software.

Blending

The blending order (foreground to background) is defined in per-layer register, so that the blending order of the secure layer3 can be securely defined as foreground. If some non-secure software defines an other layer (layer 1 or layer 2) in foreground, the integrated hardware consistency check reverses the blending order to a fixed one, forcing the secure layer to be in the foreground.

Rotation

The rotation configuration (activation, base-address of buffers) is located in specific registers, that can be secured too, if needed, by the LTDC wrapper.

CRC

The CRC that computes a signature of the displayed frame has its configuration located in specific registers that can be defined as secure, too.

53.6 LTDC interrupts

The LTDC provides various maskable interrupts, that are grouped into two global interrupt pins: one working interrupt pin, and one error interrupt pin.

These maskable interrupts and two global output pins are duplicated for the secure software usage, resulting in a duplicated set of registers (for masking) and a duplicated set of output pin. Hence a total of four interrupt output pins: global working, global error, secure global, secure global error.

The following working interrupts on which to synchronize software are ORed together as a global working interrupt:

The following error interrupts warn about some internal processing errors, and are ORed together as a global error interrupt:

The LTDC also provides an observation mean, to retrieve X and Y positions of the currently displayed pixel.

Parameters

The following non-secure registers are used to handle the interrupts:

The duplicated secure registers are used to handle the interrupts (with same respective content as the non-secure ones): LTDC_LIPCR2, LTDC_IER2, LTDC_ISR2, LTDC_ICR2.

The following table lists the bitfields of the available interrupts, and shows the four pins on which these bitfields are directed:

Table 501. LTDC interrupt requests

RegistersInterrupt eventEvent bitEnable control bitInterrupt signal
Non-secure registers
(IER, ISR, ICR)
Line numberLIFLIEltdc_lo_li
Register reloadRRIFRRIEltdc_lo_li
FIFO underrun warningFUWIFFUWIEltdc_lo_li
FIFO underrun errorFUIFFUIEltdc_lo_err_it
FIFO underrun rotation errorFURIFFURIEltdc_lo_err_it
Bus transfer errorTERRIFTERRIEltdc_lo_err_it
CRC errorCRCIFCRCIEltdc_lo_err_it
Secure registers
(IER2, ISR2, ICR2)
Line numberLIFLIEltdc_up_li
Register reloadRRIFRRIEltdc_up_li
FIFO underrun warningFUWIFFUWIEltdc_up_li
FIFO underrun errorFUIFFUIEltdc_up_err_it
FIFO underrun rotation errorFURIFFURIEltdc_up_err_it
Bus transfer errorTERRIFTERRIEltdc_up_err_it
CRC errorCRCIFCRCIEltdc_up_err_it

53.7 LTDC programming procedure

The LTDC programming procedure consists to activate the clocks, to follow all the operator sequence (as listed in Section 53.5) from the beginning (AXI master) to the end (output interface polarity), and to configure the needed operators as described.

The minimum configuration that must be performed is the following:

  1. 1. Enable the LTDC clock in the RCC register:
    • – APB slave: ck_icn_p_ltdc in the RCC
    • – AXI master: ck_icn_m_ltdc in the RCC
    • – Pixel clock that fits display panel requirements (resolution, blanking, frame rate)
  2. 2. Define the buffer of at least one input layer (see Section 53.5.2, with for example, layer base-address, size, or buffer pitch).
  3. 3. Define this layer pixel format (see Section 53.5.3). ARGB8888 can simply be used, depending on the stored buffer.
  4. 4. Define where this layer is inserted in the final display (see Section 53.5.11): typically the top-left and bottom-right corners of the display.
  1. 5. Define how this layer is blended in the final display (see Section 53.5.12).
  2. 6. Define timings of the display panel to drive (see Section 53.5.18).
  3. 7. Define polarity of the output signals (see Section 53.5.19).
  4. 8. Copy all above settings, once, using the immediate global reload (see Section 53.5.20).
  5. 9. Start the display by activating the main enable (see Section 53.5.20).

Note: Most layer registers are shadowed. Once a register is written, it must not be modified again before the reload has been done. A new write to the same register overrides the previous configuration if not yet reloaded. It is also not possible to read the temporary value of a shadowed register, which makes impossible to perform read-modify-write to set/reset a single bit inside a register.

53.8 LTDC registers

53.8.1 LTDC identification register (LTDC_IDR)

Address offset: 0x000

Reset value: 0x0004 0100

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.MAJVER[7:0]
rrrrrrrr
1514131211109876543210
MINVER[7:0]REV[7:0]
rrrrrrrrrrrrrrrr

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

Bits 23:16 MAJVER[7:0]: LTDC major version

Bits 15:8 MINVER[7:0]: LTDC minor version

Bits 7:0 REV[7:0]: Revision

53.8.2 LTDC layer count register (LTDC_LCR)

Address offset: 0x004

Reset value: 0x0000 0003

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.LNBR[7:0]
rrrrrrrr

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

Bits 7:0 LNBR[7:0]: Number of layers

53.8.3 LTDC synchronization size configuration register (LTDC_SSCR)

Address offset: 0x008

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 474 and Section 53.5 for a configuration example.

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

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)
This bitfield defines the number of horizontal synchronization pixel minus 1.

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

Bits 11:0 VSH[11:0]: Vertical synchronization height (in units of horizontal scan line)
This bitfield defines the vertical synchronization height minus 1. It represents the number of horizontal synchronization lines.

53.8.4 LTDC back porch configuration register (LTDC_BPCR)

Address offset: 0x00C

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 474 and Section 53.5 for a configuration example.

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

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)
This bitfield defines 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:12 Reserved, must be kept at reset value.

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

This bitfield defines 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.

53.8.5 LTDC active width configuration register (LTDC_AWCR)

Address offset: 0x010

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 474 and Section 53.5 for a configuration example.

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

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)

This bitfield defines the accumulated active width that 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 the maximum active width supported following the maximum pixel clock.

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

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

This bitfield defines the accumulated height that 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 the maximum active height supported following the maximum pixel clock.

53.8.6 LTDC total width configuration register (LTDC_TWCR)

Address offset: 0x014

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 474 and Section 53.5 for a configuration example.

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

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

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

This bitfield defines the accumulated total width that includes the horizontal synchronization, horizontal back porch, active width and horizontal front porch pixels minus 1.

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

Bits 11:0 TOTALH[11:0]: Total height (in units of horizontal scan line)

This bitfield defines the accumulated height that includes the vertical synchronization, vertical back porch, the active height and vertical front porch height lines minus 1.

53.8.7 LTDC global control register (LTDC_GCR)

Address offset: 0x018

Reset value: 0x0000 2220

This register defines the LTDC global configuration.

31302928272625242322212019181716
HSPOLVSPOLDEPOLPCPOLRes.SFEXENSFSWTRSFENRes.Res.Res.Res.CRCE NRes.Res.DEN
rwrwrwrwrwwrwrwrw
1514131211109876543210
Res.DRW[2:0]Res.DGW[2:0]Res.DBW[2:0]Res.ROTE NGAME NLTDCE N
rrrrrrrrrrwrwrw

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: Blanking (no data/pixel) polarity

This bit is set and cleared by software.

0: Blanking (no data/pixel) polarity is active low.

1: Blanking (no data/pixel) polarity is active high.

Bit 28 PCPOL: Pixel clock polarity

This bit is set and cleared by software.

0: The pixel and sync data are generated at the rising-edge of the output LCD_CLK clock.

1: The pixel and sync data are generated at the falling-edge of the output LCD_CLK clock.

Bit 0 LTDCEN: LTDC global enable
This bit is set and cleared by software.
0: LTDC disabled
1: LTDC enabled

53.8.8 LTDC global configuration 1 register (LTDC_GC1R)

Address offset: 0x01C

Reset value: 0x6BE4 D888

31302928272625242322212019181716
BMACRMASTRADWPSPPRes.TPLNIPBBABCPSHRARes.GCT[2:0]Res.
rrrrrrrrrrrrr
1514131211109876543210
DT[1:0]Res.PRBAWRCH[3:0]WGCH[3:0]WBCH[3:0]
rrrrrrrrrrrrrrr
ST logo
ST logo

Bits 7:4 WGCH[3:0]: Width of green channel output

Bits 3:0 WBCH[3:0]: Width of blue channel output

53.8.9 LTDC global configuration 2 register (LTDC_GC2R)

Address offset: 0x020

Reset value: 0x0000 BF30

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
BOARes.CRCASFASISAROTAAXIIDAOCAEDCABW[2:0]DPADVASTSABLA
rrrrrrrrrrrrrrr

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

Bit 15 BOA: Blending order ability

0: Blending order fixed

1: Blending order configurable

Bit 14 Reserved, must be kept at reset value.

Bit 13 CRCA: CRC ability

0: CRC no computation available

1: CRC computation available

Bit 12 SFA: Single frame mode ability

0: Single frame not available

1: Single frame available

Bit 11 SISA: Second interrupt set ability

0: Second interrupt set not available

1: Second interrupt set available

Bit 10 ROTA: Rotation support ability

Bit 9 AXIIDA: AXIID ability

Bit 8 OCA: Output conversion ability (RGB to YCbCr)

Bit 7 EDCA: External display control ability

Bits 6:4 BW[2:0]: Bus width (log2 of number of bytes)

010: 32-bit bus

011: 64-bit bus

100: 128-bit bus

Others: Reserved

Bit 3 DPA: Secondary RGB output port ability

Bit 2 DVA: Dual-view ability

Bit 1 STSA: Slave timings synchronization ability

Bit 0 BLA: Background layer ability (pixels of background layer are read from memory)

53.8.10 LTDC shadow reload configuration register (LTDC_SRCR)

Address offset: 0x024

Reset value: 0x0000 0000

This register allows the reload, either immediately or during the vertical blanking period, of shadow register values to the active registers. Shadow registers are all layer x ones, except LTDC_L1CLUTWR and 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

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

Bit 1 VBR: Vertical blanking reload request

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 trigger

This bit is set by software and cleared only by hardware after reload.

0: No effect

1: The shadow registers are reloaded immediately.

53.8.11 LTDC gamma correction configuration register (LTDC_GCCR)

Address offset: 0x028

Reset value: 0x0000 0000

This register performs indirect access to the gamma correction R,G,B tables.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RENGENBEN
www
1514131211109876543210
COMP[7:0]ADDR[7:0]
wwwwwwwwwwwwwwww

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

Bit 18 REN: Write trigger to the red table

0: No action

1: COMP is written at ADDR in the red table.

Bit 17 GEN: Write trigger to the green table

0: No action

1: COMP is written at ADDR in the green table.

Bit 16 BEN: Write trigger to the blue table

0: No action

1: COMP is written at ADDR in the blue table.

Bits 15:8 COMP[7:0]: Color component to be written, in either (or all) the R,G,B tables

Bits 7:0 ADDR[7:0]: Address of the R,G,B table where the COMP component is written

When LTDC_GC1R.GCT=2, the gamma is implemented with eight interpolated segment. In that case, the valid ADDR addresses are: 0, 32, 64, 96, 128, 160, 192, 224, 255.

Note: For ADDR = 255, the gamma interpolation hardware considers that the address is 256.

53.8.12 LTDC background color configuration register (LTDC_BCCR)

Address offset: 0x02C

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

This bitfield configures the background red value.

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

This bitfield configures the background green value.

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

This bitfield configures the background blue value.

53.8.13 LTDC interrupt enable register (LTDC_IER)

Address offset: 0x034

Reset value: 0x0000 0000

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

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.FURIECRCIEFUIERes.Res.RRIETERRIEFUWIELIE
rwrwrwrwrwrwrw

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

Bit 8 FURIE: FIFO underrun at rotation interrupt enable
This bit is set and cleared by software.
0: FIFO underrun at rotation interrupt disabled
1: FIFO underrun at rotation interrupt enabled

Bit 7 CRCIE: CRC error interrupt enable
This bit is set and cleared by software.
0: CRC error disabled
1: CRC error interrupt enabled

Bit 6 FUIE: FIFO underrun interrupt enable
This bit is set and cleared by software.
0: FIFO underrun interrupt disabled
1: FIFO underrun Interrupt enabled

Bits 5: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 disabled
1: Register reload interrupt enabled

Bit 2 TERRIE: Transfer error interrupt enable
This bit is set and cleared by software.
0: Transfer error interrupt disabled
1: Transfer error interrupt enabled

Bit 1 FUWIE: FIFO underrun warning interrupt enable
This bit is set and cleared by software.
0: FIFO underrun interrupt disabled
1: FIFO underrun Interrupt enabled

Bit 0 LIE: Line interrupt enable
This bit is set and cleared by software.
0: line interrupt disabled
1: line interrupt enabled

53.8.14 LTDC interrupt status register (LTDC_ISR)

Address offset: 0x038

Reset value: 0x0000 0000

This register returns the interrupt status flag.

column_1column_2Bit 8 Bit 7 Bit 6 Bit 3 Bit 2 Bit 1FURIE CRCIE FUIE RRIE TERRIE FUWIEcolumn_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
Bit 0LIE: Line interrupt enable
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.FURIF CRCIF FUIFRes.Res.RRIFTERRI
FFUWIFLIF
rrrrrrr

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

53.8.15 LTDC interrupt clear register (LTDC_ICR)

Address offset: 0x03C

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.CFURIFCCRCIFCFUIFRes.Res.CRRIFCTERRIFCFUWIFCLIF
wwwwwww

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

Bit 6 CFUIF: FIFO underrun interrupt flag clear
0: No effect
1: Clear FUIF flag in LTDC_ISR.

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

Bit 3 CRRIF: Register reload interrupt flag clear
0: No effect
1: Clear RRIF flag in LTDC_ISR.

Bit 2 CTERRIF: Transfer error interrupt flag clear
0: No effect
1: Clear TERRIF flag in LTDC_ISR.

Bit 1 CFUWIF: FIFO underrun warning interrupt flag clear
0: No effect
1: Clear FUWIF flag in LTDC_ISR.

Bit 0 CLIF: Line-interrupt flag clear
0: No effect
1: Clear LIF flag in LTDC_ISR.

53.8.16 LTDC line interrupt position configuration register (LTDC_LIPCR)

Address offset: 0x040

Reset value: 0x0000 0000

This register defines the line interrupt position. The line value to be programmed depends on timing parameters (see Figure 474).

column_1column_2Bit 6 Bit 3 Bit 2 Bit 1 Bit 0CFUIF CRRIF CTERRIF CFUWIF CLIF0: No effect 0: No effect 0: No effect 0: No effect 0: No effectcolumn_6column_7Figure 474).column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.LIPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
Bits 11:0LIPOS[11:0]: Line interrupt position

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

Bits 11:0 LIPOS[11:0]: Line interrupt position
This bitfield configures the line interrupt position.

53.8.17 LTDC current position status register (LTDC_CPSR)

Address offset: 0x044

Reset value: 0x0000 0000

This register returns the X,Y position of the currently displayed pixel.

31302928272625242322212019181716
Res.Res.Res.Res.CXPOS[11:0]
rrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.Res.CYPOS[11:0]
rrrrrrrrrrrr

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

Bits 27:16 CXPOS[11:0]: Current X position

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

Bits 11:0 CYPOS[11:0]: Current Y position

53.8.18 LTDC current display status register (LTDC_CDSR)

Address offset: 0x048

Reset value: 0x0000 0003

This register returns the status of the current display phase that is controlled by HSYNC, VSYNC, and horizontal/vertical data-enable signals.

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

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

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

53.8.19 LTDC external display control register (LTDC_EDCR)

Address offset: 0x060

Reset value: 0x0000 0000

This register controls the external display interface.

31302928272625242322212019181716
Res.Res.Res.Res.OCYC
O
OCYSE
L
OCYE
N
Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

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

Bit 27 OCYCO: Output conversion to YCbCr 422
This bit defines the chrominance order (whether Cb or Cr is output first).
0: Cb is output first (Y0Cb, then Y1Cr, Y2Cb and so on).
1: Cr is output first (Y0Cr, then Y1Cb, Y2Cr and so on).

Bit 26 OCYSEL: Output conversion to YCbCr 422
This bit selects the set of CCIR hard-wired coefficients (ITU-R BT.601 or 709).
0: Use ITU-R BT.601 set (for typically SDTV analog-like displays).
1: Use ITU-R BT.709 set (for typically HDTV digital-like displays).

Bit 25 OCYEN: Output conversion to YCbCr 422 enable
0: Conversion disabled
1: Conversion enabled

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

53.8.20 LTDC interrupt enable register 2 (LTDC_IER2)

Address offset: 0x064

Reset value: 0x0000 0000

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

ST logo
ST logo
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.FURIECRCIEFUIERes.Res.RRIETERRIEFUWIELIE
rwrwrwrwrwrwrw

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

Bit 8 FURIE: FIFO underrun at rotation interrupt enable

This bit is set and cleared by software.

0: FIFO underrun at rotation interrupt disabled

1: FIFO underrun at rotation interrupt enabled

Bit 7 CRCIE: CRC error interrupt enable

This bit is set and cleared by software.

0: CRC error disabled

1: CRC error interrupt enabled

Bit 6 FUIE: FIFO underrun interrupt enable

This bit is set and cleared by software.

0: FIFO underrun interrupt disabled

1: FIFO underrun Interrupt enabled

Bits 5: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 disabled

1: Register reload interrupt enabled

Bit 2 TERRIE: Transfer error interrupt enable

This bit is set and cleared by software.

0: Transfer error interrupt disabled

1: Transfer error interrupt enabled

Bit 1 FUWIE: FIFO underrun warning interrupt enable

This bit is set and cleared by software.

0: FIFO underrun interrupt disabled

1: FIFO underrun Interrupt enabled

Bit 0 LIE: Line interrupt enable

This bit is set and cleared by software.

0: Line interrupt disabled

1: Line interrupt enabled

53.8.21 LTDC interrupt status register 2 (LTDC_ISR2)

Address offset: 0x068

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.FURIFCRCIFFUIFRes.Res.RRIFTERRIFFUWIFLIF
rrrrrrr

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

Bit 8 FURIF: FIFO underrun at rotation interrupt flag

Bit 7 CRCIF: CRC Error interrupt flag

Bit 6 FUIF: FIFO underrun interrupt flag

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

Bit 3 RRIF: Register reload interrupt flag

Bit 2 TERRIF: Transfer error interrupt flag

Bit 1 FUWIF: FIFO underrun warning interrupt flag

Bit 0 LIF: Line interrupt flag

53.8.22 LTDC interrupt clear register 2 (LTDC_ICR2)

Address offset: 0x06C

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.CFURIFCCRCIFCFUIFRes.Res.CRRIFCTERRIFCFUWIFCLIF
wwwwwww

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

Bit 8 CFURIF: Clear FIFO underrun at rotation interrupt flag

0: No effect

1: Clear the FURIF flag in LTDC_ISR2.

Bit 7 CCRCIF: Clear the CRC error interrupt flag

0: No effect

1: Clear the CRCIF flag in LTDC_ISR2.

Bit 6 CFUIF: Clear the FIFO underrun interrupt flag

0: No effect

1: Clear the FUIF flag in LTDC_ISR2.

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

Bit 3 CRRIF: Clear register reload interrupt flag

0: No effect

1: Clear the RRRIF flag in LTDC_ISR2.

Bit 2 CTERRIF: Clear the transfer error interrupt flag

0: No effect

1: Clear the TERRIF flag in LTDC_ISR2.

Bit 1 CFUWIF: Clear the FIFO underrun warning interrupt flag

0: No effect

1: Clear the FUWIF flag in LTDC_ISR2.

Bit 0 CLIF: Clear the line interrupt flag

0: No effect

1: Clear the LIF flag in LTDC_ISR2.

53.8.23 LTDC line interrupt position configuration register 2 (LTDC_LIPCR2)

Address offset: 0x070

Reset value: 0x0000 0000

This register defines the line interrupt position. The line value to be programmed depends on timing parameters (see Figure 474).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.LIPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 11:0 LIPOS[11:0]: Line interrupt position

53.8.24 LTDC expected CRC register (LTDC_ECRCR)

Address offset: 0x078

Reset value: 0x0000 0000

ST logo
ST logo

This register is used to configure the expected CRC of a frame. If the computed CRC is not as expected, an interrupt CRCIF is generated.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
ECRC[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 ECRC[15:0]: Expected CRC of frame

53.8.25 LTDC computed CRC register (LTDC_CCRCR)

Address offset: 0x07C

Reset value: 0x0000 0000

This register returns the computed CRC of a frame.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
CCRC[15:0]
rrrrrrrrrrrrrrrr

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

Bits 15:0 CCRC[15:0]: Computed CRC of frame

53.8.26 LTDC rotation buffer 0 address register (LTDC_RB0AR)

Address offset: 0x080

Reset value: 0x0000 0000

This register defines the base address in the external memory of the buffer used to store the data after composition and before the rotation and output. There are two buffers used (0 and 1), used alternatively (in ping-pong). This register defines the buffer 0.

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

Bits 31:0 ADDR[31:0]: Address of the rotation buffer 0

53.8.27 LTDC rotation buffer 1 address register (LTDC_RB1AR)

Address offset: 0x084

Reset value: 0x0000 0000

This register defines the base address in the external memory of the buffer used to store the data after composition and before the rotation and output. There are two buffers used (0 and 1), used alternatively (in ping-pong). This register defines the buffer 1.

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

Bits 31:0 ADDR[31:0]: Address of the rotation buffer 1

53.8.28 LTDC rotation buffer pitch register (LTDC_RBPR)

Address offset: 0x088

Reset value: 0x0000 0000

This register defines the pitch (line-to-line address increment) of the stored rotation buffer. The pitch is proportional to the composed display width (before rotation) and, (after rotation) proportional to the non-raster dimension of the display panel.

Example: A display panel with a composed width (before rotation) of 263 pixels requires a PITCH[11:0] value of [(263+9)/10]*32 = 27*32 = 864 bytes.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.PITCH[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 11:0 PITCH[11:0]: Pitch in bytes of the rotation buffers 0 and 1

The pitch is configured with 32 bytes per 10 started pixels, of the width of the composed buffer. PITCH = (width+9)/10*32 bytes.

53.8.29 LTDC rotation intermediate frame color register (LTDC_RIFCR)

Address offset: 0x08C

Reset value: 0x0000 0000

This register defines the color that is displayed full-screen during one frame, when switching from normal to rotation mode (as there is a one-frame delay inserted, that must be filled)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.RIFRED[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
RIFGREEN[7:0]RIFBLUE[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 23:16 RIFRED[7:0]: Red component of the rotation intermediate frame

Bits 15:8 RIFGREEN[7:0]: Green component of the rotation intermediate frame

Bits 7:0 RIFBLUE[7:0]: Blue component of the rotation intermediate frame

53.8.30 LTDC FIFO underrun threshold register (LTDC_FUTR)

Address offset: 0x090

Reset value: 0x0000 0010

A default value for THRE[15:0] is 0x80, that represents 128 words of 64 bits, thus 256 pixels 32bpp or 1024 luminance of a YUV420 pixel.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
THRE[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 THRE[15:0]: Threshold to trigger a FIFO underrun interrupt (per FIFO word, 64 bits)
Threshold above which a FIFO underrun warning becomes a FIFO underrun error.

53.8.31 LTDC layer x configuration 0 register (LTDC_LxC0R)

Address offset: 0x100 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0xFF50 A075

31302928272625242322212019181716
ARGB8888ABGR8888RGBA8888BGRA8888RGB565BGR565RGB888FFF11PCF1PCF11CF1CF11PF1PF10F11
rrrrrrrrrrrrrrrr
1514131211109876543210
F21PCF2PCF21CF2CF21PF2PF20F21CKRACLUTAWINADCPAPACFBPACFBDACKTA
rrrrrrrrrrrrrrrr

53.8.32 LTDC layer x configuration 1 register (LTDC_LxC1R)

Address offset: 0x104 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0x8000 0007, 0x8000 0007, 0x0000 0000

column_1column_2Bit 4 Bit 3 Bit 2 Bit 1 Bit 0DCP APA CFBPA CFBDA CKTAcolumn_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
SCA rRes.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.YFPA YSPAYIA
rrr
Bit 31SCA : Scaling ability for this layer
Bit 2YFPA : YCbCr 420 full-planar ability for this layer
Bit 1YSPA : YCbCr 420 semi-planar ability for this layer
Bit 0YIA : YCbCr 422 interleaved ability for this layer
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.GRMS
KVBRIMR
rwrww

Bit 31 SCA: Scaling ability for this layer
0: Scaling not available
1: Scaling available

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

Bit 2 YFPA: YCbCr 420 full-planar ability for this layer
0: Full planar not available
1: Full planar available

Bit 1 YSPA: YCbCr 420 semi-planar ability for this layer
0: Semi-planar not available
1: Semi-planar available

Bit 0 YIA: YCbCr 422 interleaved ability for this layer
0: Interleaved not available
1: Interleaved available

53.8.33 LTDC layer x reload control register (LTDC_LxRCR)

Address offset: 0x108 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0x0000 0004

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

ST logo
ST logo

Bit 2 GRMSK: Shadow reload control, global (centralized) reload masked

This bit is set and cleared by software.

0: Global reload masked for this layer (control from LTDC_SRCR disabled)

1: Global reload active for this layer (control from LTDC_SRCR enabled)

Bit 1 VBR: Vertical blanking reload request

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: 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 trigger

This bit is set by software and cleared only by hardware after reload.

0: No effect

1: Shadow registers are reloaded immediately.

53.8.34 LTDC layer x control register (LTDC_LxCR)

Address offset: 0x10C+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

RM0457Bits 5:3 Bits 2:0column_3POSTDIV2[2:0] POSTDIV1[2:0]column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.SCEN DCBEN HMENRes.Res.Res.CLUTE
NRes.Res.CKENLEN
rwrwrwrwrwrw
Bit 10SCEN : Scaler enable
Bit 9DCBEN1: Scaler enabled : Default color blending enable
Bit 8HMEN : Horizontal mirroring enable
RM0457 Rev 52901/5881

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

Bit 10 SCEN: Scaler enable

This bit is set and cleared by software.

0: Scaler disabled

1: Scaler enabled

Bit 9 DCBEN: Default color blending enable

This bit is set and cleared by software.

0: Blending disabled

1: Blending enabled

Bit 8 HMEN: Horizontal mirroring enable

This bit is set and cleared by software.

0: Mirror disabled

1: Mirror enabled (if so, the color frame buffer start address has to be set to the last byte of the first line, so for instance: if line is 100 pixels, 24 bpp, then address is set to 299)

Bits 7: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 disabled

1: Color look-up table enabled

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

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

Bit 1 CKEN: Color keying enable

This bit is set and cleared by software.

0: Color keying disabled

1: Color keying enabled: if RGB matches, then the ARGB are set to 0.

Bit 0 LEN: Layer enable

This bit is used to enable/disable the presence of this whole layer. it is set and cleared by software.

0: Layer disabled

1: Layer enabled

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

Address offset: 0x110 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0x0000 0000

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

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

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

Bit 31Bit 30Bit 29Bit 28Bit 27Bit 26Bit 25Bit 24Bit 23Bit 22Bit 21Bit 20Bit 19Bit 18Bit 17Bit 16
31302928272625242322212019181716
Res.Res.Res.Res.WHSPPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.WHSTPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
Bits 27:16WHSPPOS[11:0]: Window horizontal stop position
WHSPPOS[11:0] must be≥AHBP[11:0] bits + 1 (programmed in LTDC_BPCR).
Bits 11:0WHSTPOS[11:0]: Window horizontal start position
WHSTPOS[11:0] must be≤AAW[11:0] bits (programmed in LTDC_AWCR).

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

Bits 27:16 WHSPPOS[11:0]: Window horizontal stop position

This bitfield configures the last visible pixel of a line of the layer window.

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

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

Bits 11:0 WHSTPOS[11:0]: Window horizontal start position

This bitfield configures the first visible pixel of a line of the layer window.

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

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

Address offset: 0x114+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

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

The first visible line of a frame is the programmed value of AVBP[11:0] + 1 in LTDC_BPCR.

The last visible line of a frame is the programmed value of AAH[11:0] in LTDC_AWCR.

31302928272625242322212019181716
Res.Res.Res.Res.WVSPPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.WVSTPOS[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 27:16 WVSPPOS[11:0]: Window vertical stop position

This bitfield configures the last visible line of the layer window.

WVSPPOS[11:0] must be ≥ AVBP[11:0] + 1 (programmed in LTDC_BPCR).

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

Bits 11:0 WVSTPOS[11:0]: Window vertical start position

This bitfield configures the first visible line of the layer window.

WVSTPOS[11:0] must be ≤ AAH[11:0] (programmed in LTDC_AWCR).

53.8.37 LTDC layer x color keying configuration register (LTDC_LxCKCR)

Address offset: 0x118+0x100*(x-1), (x = 1 to 3)

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

53.8.38 LTDC layer x pixel format configuration register (LTDC_LxPFCR)

Address offset: 0x11C + 0x100 * (x - 1), (x = 1 to 3)

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). When components are provided with less than 8 bits per component, they get expanded to 8 bits by replication of their MSB onto their LSB.

When the Alpha value is not defined in the input pixel format, Alpha is assumed for farther needs to be equal to 255 (opaque layer).

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

This bitfield configures the pixel format.

000: ARGB8888 (32 bpp)

001: ABGR8888 (32 bpp)

010: RGBA8888 (32 bpp)

011: BGRA8888 (32 bpp)

100: RGB565 (16 bpp, A = 255)

101: BGR565 (16 bpp, A = 255)

110: RGB888 (24 bpp packed, A = 255)

111: Flexible pixel format selected (see Section 53.8.60 and Section 53.8.61)

53.8.39 LTDC layer x constant alpha configuration register (LTDC_LxCACR)

Address offset: 0x120 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0x0000 00FF

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

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

This bitfield configures the constant alpha used for blending. The constant alpha is divided by 255 by hardware.

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

53.8.40 LTDC layer x default color configuration register (LTDC_LxDCCR)

Address offset: 0x124+0x100*(x-1), (x = 1 to 3)

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

This bitfield configures the default alpha value.

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

This bitfield configures the default red value.

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

This bitfield configures the default green value.

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

This bitfield configures the default blue value.

53.8.41 LTDC layer x blending factors configuration register (LTDC_LxBFCR)

Address offset: 0x128+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0000 0607, 0x0001 0607, 0x0002 0607

This register defines the blending order, and the factors BF1 and BF2. The constant alpha value is the programmed value in LTDC_LxCACR, divided by 255 by hardware.

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

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

Bits 18:16 BOR[2:0]: Blending order

This bitfield selects the blending order, BOR:

000: For the most background layer (usually hidden behind others)

111: For the most foreground layer (always visible, never hidden by any other)

The BOR value is limited to the max amount of layers, minus 1. For instance, if the LTDC supports three layers (layer 1/2/3), then the BOR can be configured with only the following values: 000, 001, 010.

In case of inconsistency, like two layers sharing same BOR, the blending engine reverses to BOR[layerID] = layerID-1, so that layer 3 gets in foreground and layer 1 is in background.

Usually, the default configuration is the following one:

BOR(layer 1) = 000

BOR(layer 2) = 001

BOR(layer 3) = 010

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

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

This bitfield selects 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

This bitfield selects the blending factor F2.

101: 1 - constant alpha

111: 1 - (pixel alpha x constant alpha)

Others: Reserved

53.8.42 LTDC layer x burst length configuration register (LTDC_LxBLCR)

Address offset: 0x12C+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

This register defines the length of the bursts requested by layer x.

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.BL[4:0]
rwrwrwrwrw

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

Bits 4:0 BL[4:0]: Burst length

0x00: maximum burst length (16 words 64 bits, thus 128 Bytes)

0x01: 1 word (of 64 bits) per burst

0x10: 16 words (of 64 bits) per burst

Others: Reserved

53.8.43 LTDC layer x planar configuration register (LTDC_LxPCR)

Address offset: 0x130+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines, for layer x, the configuration when accessing planar or semi-planar buffers.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.YRENOFCBFYFYCM[1:0]YCENRes.Res.Res.
rwrwrwrwrwrwrw

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

Bit 9 YREN: Y rescale enable for the color dynamic range

When enabled, incoming Y values in range 16 to 235, are re-scaled to range 0 to 255.

0: Rescaling disabled (input component thus assumed provided in 0 to 255)

1: Rescaling enabled (input component thus assumed provided in 16 to 235).

Bit 8 OF: Odd pixel first

This bit defines if the byte 0 of a word (in LSB) contains the odd pixel.

0: Odd pixel disabled (thus even pixel on byte 0)

1: Odd pixel enabled (thus odd pixel on byte 0)

Bit 7 CBF: Cb component first

This bit defines if the byte 0 and 1 of a word (in LSB) contains the Cb component. The setting impacts only for interleaved and semi-planar modes, as it has no meaning in full-planar mode.

0: Cb disabled (thus Cr component is on byte 0 and 1)

1: Cb enabled (thus Cb component is on byte 0 and 1)

Bit 6 YF: Y component first

This bit defines if the byte 0 of a word (in LSB) contains the Y component.

0: Y component disabled (thus Cr or Cb component is on byte 0)

1: Y component enabled (thus Y component is on byte 0)

Bits 5:4 YCM[1:0]: YCbCr conversion mode

This bitfield defines the type of input that is considered and converted to a YCbCr 444.

00: Interleaved 422 (Cb and Cr component are replicated horizontally for pixels P and P+1)

01: Semi-Planar 420: (Cb and Cr component are replicated horizontally and vertically. The layer main configuration defines the access to the Y buffer, and auxiliary registers define the access to the Cb and Cr buffers).

10: Full-Planar 420: (Cb and Cr component are replicated horizontally and vertically. The layer main configuration defines the access to the Y buffer, and auxiliary registers define the access to the Cb and Cr buffers).

11: Reserved

Bit 3 YCEN: YCbCr-to-RGB conversion enable

0: Conversion disabled

1: YCbCr conversion enabled, using the YCM setting above

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

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

Address offset: 0x134 + 0x100 * (x - 1), (x = 1 to 3)

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

This bitfield defines the color frame buffer start address.

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

Address offset: 0x138 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0x0000 0000

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

31302928272625242322212019181716
Res.CFBP[14:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.CFBLL[13:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value. Upon reading, this bit returns the value of the bit 30.

Bits 30:16 CFBP[14:0]: Color frame buffer pitch in bytes

This bitfield defines the pitch that is the increment from the start of one line of pixels to the start of the next line in bytes.

Negative values (with MSB bit = 1) are allowed, to read the buffer from bottom to top, and thus to flip is vertically. When vertically flipped, as the address register must provide the address of the first line to be read, the address register must point to the start of the bottom line of the buffer.

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

Bits 13:0 CFBLL[13:0]: Color frame buffer line length

This bitfield defines the length of one line of pixels in bytes + 7.

The line length is computed as follows: active high width * number of bytes per pixel + 7.

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

Address offset: 0x13C+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

This register defines the number of lines in the color frame buffer. The number of lines and line-length settings define how much data are 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 define the correct start of every line in memory.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.CFBLNBR[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 11:0 CFBLNBR[11:0]: Frame buffer line number

This bitfield defines the number of lines in the frame buffer that corresponds to the active high width.

53.8.47 LTDC layer x auxiliary frame buffer address 0 register (LTDC_LxAFBA0R)

Address offset: 0x140+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the start address for the auxiliary 0 frame buffer. It has to point to the address where the pixel data of the top left pixel of a layer is stored in the frame buffer. The auxiliary 0 and 1 frame buffers are for YCbCr semi-planar or full-planar pixel formats: the color frame buffer is used to store the Y components, while the auxiliary buffers 0 and 1 are used to store the other one (for semi-planar) or two (for full-planar) planes of components.

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

Bits 31:0 AFBADD0[31:0]: Frame buffer start address

53.8.48 LTDC layer x auxiliary frame buffer address 1 register (LTDC_LxAFBA1R)

Address offset: 0x144 + 0x100 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the start address for the auxiliary 0 frame buffer. It has to point to the address where the pixel data of the top left pixel of a layer is stored in the frame buffer (the auxiliary 0 and 1 frame buffers are for YCbCr semi-planar or full-planar pixel formats).

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

Bits 31:0 AFBADD1[31:0]: Auxiliary frame buffer start address

53.8.49 LTDC layer x auxiliary frame buffer length register (LTDC_LxAFBLR)

Address offset: 0x148 + 0x100 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the auxiliary 0 and 1 frame buffer line length and pitch (the auxiliary 0 and 1 frame buffers are for YCbCr semi-planar or full-planar pixel formats).

31302928272625242322212019181716
Res.AFBP[14:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.AFBLL[13:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 Reserved, must be kept at reset value. Upon reading, this bit returns the value of the bit 30.

Bits 30:16 AFBP[14:0]: Auxiliary frame buffer pitch in bytes

This bitfield defines the pitch that is the increment from the start of one line of pixels to the start of the next line in bytes.

Negative values (with MSB bit = 1) are allowed, to read the buffer from bottom to top, and thus to flip is vertically. When vertically flipped, as the address register must provide the address of the first line to be read, the address register must point to the start of the bottom line of the buffer.

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

Bits 13:0 AFBLL[13:0]: Auxiliary frame buffer line length

This bitfield defines the length of one line of pixels in bytes + 7.

The line length is computed as follows: active high width * number of bytes per pixel + 7.

53.8.50 LTDC layer x auxiliary frame buffer line number register (LTDC_LxAFBLNR)

Address offset: 0x14C+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the number of lines in the auxiliary 0 and 1 frame buffers (the auxiliary 0 and 1 frame buffers are for YCbCr semi-planar or full-planar pixel formats). 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 define the correct start of every line in memory.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.AFBLNBR[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 11:0 AFBLNBR[11:0]: Auxiliary frame buffer line number

This bitfield defines the number of lines in the frame buffer that corresponds to the active high width.

53.8.51 LTDC layer x CLUT write register (LTDC_LxCLUTWR)

Address offset: 0x150+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0000 0000

This register defines the CLUT address and the RGB value. The CLUT write register must only be configured during blanking period or if the layer is disabled. The CLUT can be enabled or disabled in LTDC_LxCR. The CLUT is only meaningful for L8, AL44, and AL88 pixel format.

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

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

This bitfield configures the CLUT address (color position within the CLUT) of each RGB value.

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

This bitfield configures the red value.

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

This bitfield configures the green value.

Bits 7:0 BLUE[7:0]: Blue value
This bitfield configures the blue value.

53.8.52 LTDC layer x scaler input size register (LTDC_LxSISR)

Address offset: 0x154 + 0x100 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the scaler input size (width and height).

31302928272625242322212019181716
Res.Res.Res.Res.SIV[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.SIH[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.
Bits 27:16 SIV[11:0]: Scaler vertical input size (input height)
Bits 15:12 Reserved, must be kept at reset value.
Bits 11:0 SIH[11:0]: Scaler horizontal input size (input width)

53.8.53 LTDC layer x scaler output size register (LTDC_LxSOSR)

Address offset: 0x158 + 0x100 * (x - 1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the scaler output size (width and height).

31302928272625242322212019181716
Res.Res.Res.Res.SOV[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.SOH[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.
Bits 27:16 SOV[11:0]: Scaler vertical output size (output height)
Bits 15:12 Reserved, must be kept at reset value.
Bits 11:0 SOH[11:0]: Scaler horizontal output size (output width)

53.8.54 LTDC layer x scaler vertical scaling factor register (LTDC_LxSVSFR)

Address offset: 0x15C+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the scaler vertical scaling factor.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SVF[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 SVF[15:0]: Scaler vertical scaling factor

53.8.55 LTDC layer x scaler vertical scaling phase register (LTDC_LxSVSPR)

Address offset: 0x160+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the scaler vertical scaling phase.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SVP[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 SVP[15:0]: Scaler vertical scaling factor

53.8.56 LTDC layer x scaler horizontal scaling factor register (LTDC_LxSHSFR)

Address offset: 0x164+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the scaler horizontal scaling factor.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SHF[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 SHF[15:0]: Scaler horizontal scaling factor

53.8.57 LTDC layer x scaler horizontal scaling phase register (LTDC_LxSHSPR)

Address offset: 0x168+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the scaler horizontal scaling phase.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SHP[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 15:0 SHP[15:0]: Scaler horizontal scaling phase

53.8.58 LTDC layer x conversion YCbCr RGB 0 register (LTDC_LxCYR0R)

Address offset: 0x16C+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the coefficients to convert from YCbCr to RGB.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.CB2B[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.CR2R[9:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 25:16 CB2B[9:0]: Cb-to-Blue coefficient, with bits 9:8 as positive integer and 7:0 as decimals.

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

Bits 9:0 CR2R[9:0]: Cr-to-Red coefficient, with bits 9:8 as positive integer and 7:0 as decimals.

53.8.59 LTDC layer x conversion YCbCr RGB 1 register (LTDC_LxCYR1R)

Address offset: 0x170+0x100*(x-1), (x = 1 to 2)

Reset value: 0x0000 0000

This register defines the coefficients to convert from YCbCr to RGB.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.CB2G[9:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.CR2G[9:0]
rwrwrwrwrwrwrwrwrwrw

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

Bits 25:16 CB2G[9:0]: Cb-to-Green coefficient, with bits 9:8 as positive integer and 7:0 as decimals.

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

Bits 9:0 CR2G[9:0]: Cr-to-Green coefficient, with bits 9:8 as positive integer and 7:0 as decimals.

53.8.60 LTDC layer x flexible pixel format 0 register (LTDC_LxFPF0R)

Address offset: 0x174+0x100*(x-1), (x = 1 to 3)

Reset value: 0x0002 1100

This register is one of the registers that define the flexible color format, by specifying the location and width of all A, R, G, B components in a memory word. Components A and R are defined in this specific register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RLEN[3:2]
rwrw
1514131211109876543210
RLEN[1:0]RPOS[4:0]ALEN[3:0]APOS[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 17:14 RLEN[3:0]: Width of the red component (in bits)

Bits 13:9 RPOS[4:0]: Location of the red component inside the pixel memory word (in bits)

Bits 8:5 ALEN[3:0]: Width of the alpha component (in bits)

Bits 4:0 APOS[4:0]: Location of the alpha component inside the pixel memory word (in bits)

53.8.61 LTDC layer x flexible pixel format 1 register (LTDC_LxFPF1R)

Address offset: 0x178 + 0x100 * (x - 1), (x = 1 to 3)

Reset value: 0x0012 3110

This register is one of the registers that define the flexible color format, by specifying the location and width of all A, R, G, B components in a memory word. Components G and B are defined in this specific register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSIZE[2:0]BLEN[3:2]
rwrwrwrwrw
1514131211109876543210
BLEN[1:0]BPOS[4:0]GLEN[3:0]GPOS[4:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bits 20:18 PSIZE[2:0]: Pixel size (in bytes)

Bits 17:14 BLEN[3:0]: Width of the blue component (in bits)

Bits 13:9 BPOS[4:0]: Location of the blue component inside the pixel memory word (in bits)

Bits 8:5 GLEN[3:0]: Width of the green component (in bits)

Bits 4:0 GPOS[4:0]: Location of the green component inside the pixel memory word (in bits)

53.8.62 LTDC register map

Table 502. LTDC register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000LTDC_IDRRes.Res.Res.Res.Res.Res.Res.Res.MAJVER[7:0]MINVER[7:0]REV[7:0]
Reset value000001000000000000000000
0x004LTDC_LCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LNBR[7:0]
Reset value00000011
Reset value00000010
0x008LTDC_SSCRRes.Res.Res.Res.HSW[11:0]Res.Res.Res.Res.VSH[11:0]
Reset value000000000000000000000000
0x00CLTDC_BPCRRes.Res.Res.Res.AHBP[11:0]Res.Res.Res.Res.AVBP[11:0]
Reset value000000000000000000000000
0x010LTDC_AWCRRes.Res.Res.Res.AAW[11:0]Res.Res.Res.Res.AAH[11:0]
Reset value000000000000000000000000
0x014LTDC_TWCRRes.Res.Res.Res.TOTALW[11:0]Res.Res.Res.Res.TOTALH[11:0]
Reset value000000000000000000000000
0x018LTDC_GCRHSPOLVSPOLDEPOLPCPOLRes.SFEXENSFSWTRSFENRes.Res.Res.Res.CRCENRes.Res.DENRes.DRW[2:0]Res.DGW[2:0]Res.DBW[2:0]Res.ROTENGAMENLTDCEN
Reset value000000000010010010000
ST logo
ST logo

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x01CLTDC_GC1RBMACRMASTRADWPSPPRes.TPLNIPBBABCPSHRARes.GCT[2:0]Res.DT[1:0]Res.PRBAWRCH[3:0]WGCH[3:0]WBCH[3:0]
Reset value0110111111010111100010001000
0x020LTDC_GC2RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BOARes.CRCASFASISAROTAAXIIDAOCAEDCABW[2:0]DPADVASTSABLA
Reset value0x0000 BF30
0x024LTDC_SRCRRes.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.VBRIMR
Reset value00
0x028LTDC_GCCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RENGENBENCOMP[7:0]ADDR[7:0]
Reset value0000000000000000000
0x02CLTDC_BCCRRes.Res.Res.Res.Res.Res.Res.Res.BCRED[7:0]BCGREEN[7:0]BCBLUE[7:0]
Reset value000000000000000000000000
0x030ReservedReserved
0x034LTDC_IERRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FURIECRCIEFUIERes.Res.RRIETERRIEFUWIELIE
Reset value0000000
0x038LTDC_ISRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FURIFCRCIFFUIFRes.Res.RRIFTERRIFFUWIFLIF
Reset value0000000
0x03CLTDC_ICRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CFURIFCCRCIFCFUIFRes.Res.CRRIFCTERRIFCFUWIFCLIF
Reset value0000000
0x040LTDC_LIPCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LIPOS[11:0]
Reset value000000000000
0x044LTDC_CPSRRes.Res.Res.Res.CXPOS[11:0]Res.Res.Res.Res.CYPOS[11:0]
Reset value000000000000000000000000
0x048LTDC_CDSRRes.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.HSYNCSVSYNCSHDESVDES
Reset value0011
0x04C-
0x05C
ReservedReserved
0x060LTDC_EDCRRes.Res.Res.OCYCOOCYSELOCYENRes.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.
Reset value000
0x064LTDC_IE2RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FURIECRCIEFUIERes.Res.RRIETERRIEFUWIELIE
Reset value0000000
0x068LTDC_ISR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.FURIFCRCIFFUIFRes.Res.RRIFTERRIFFUWIFLIF
Reset value0000000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x06CLTDC_ICR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CFURIFCCRCIFCFUIFRes.CRRIFCTERRIFCFUWIFCLIF
Reset value0000000
0x070LTDC_LIPCR2Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LIPOS[11:0]
Reset value0000000000000
0x074ReservedReserved
0x078LTDC_ECRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ECRC[15:0]
Reset value0000000000000000
0x07CLTDC_CCRCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CCRC[15:0]
Reset value0000000000000000
0x080LTDC_RB0ARADDR[31:0]
Reset value00000000000000000000000000000000
0x084LTDC_RB1ARADDR[31:0]
Reset value00000000000000000000000000000000
0x088LTDC_RBPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PITCH[15:0]
Reset value0000000000000000
0x08CLTDC_RIFCRRes.Res.Res.Res.Res.Res.Res.Res.RIFRED[7:0]RIFGREEN[7:0]RIFBLUE[7:0]
Reset value000000000000000000000000
0x090LTDC_FUTRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.THRE[15:0]
Reset value00000000000000000
0x094-0x0FCReservedReserved
0x100LTDC_L1C0RARGB8888ABGR8888RGBA8888BGRA8888RGB565BGR565RGB888FFF11PCF1PCF11CF1CF11PF1PF10F11F21PCF2PCF21CF2CF21PF2PF20F21CKRACLUTAWINADCPAPACFBPACFBDACKTA
Reset value11111111010100001010000001110101
0x104LTDC_L1C1RSCARes.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.YFPAYSPYIA1
Reset value11111
0x108LTDC_L1RCRRes.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.GRMSKVBRIMR0
Reset value10000
0x10CLTDC_L1CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCENDCBENHMENRes.Res.CLUTENHPDENVPDENCKENLEN
Reset value00000000
0x110LTDC_L1WHPCRRes.Res.Res.Res.WHSPPOS[11:0]Res.Res.Res.Res.Res.WHSTPOS[11:0]
Reset value000000000000000000000000
0x114LTDC_L1WVPCRRes.Res.Res.Res.WVSPPOS[11:0]Res.Res.Res.Res.Res.WVSTPOS[11:0]
Reset value000000000000000000000000
0x118LTDC_L1CKCRRes.Res.Res.Res.Res.Res.Res.Res.CKRED[7:0]CKGREEN[7:0]CKBLUE[7:0]
Reset value0000000000000000000000000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x11CLTDC_L1PFCRResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResPF[2:0]
Reset value000
0x120LTDC_L1CACRResResResResResResResResResResResResResResResResResResResResResResResResCONSTA[7:0]
Reset value11111111
0x124LTDC_L1DCCRDCALPHA[7:0]DCRED[7:0]DCGREEN[7:0]DCBLUE[7:0]
Reset value00000000000000000000000000000000
0x128LTDC_L1BFCRResResResResResResResResResResResResResBOR[2:0]ResResResResResResBF1[2:0]ResResResResResResBF2[2:0]
Reset value000110111
0x12CLTDC_L1BLCRResResResResResResResResResResResResResResResResResResResResResResResResBL[4:0]
Reset value000000
0x130LTDC_L1PCRResResResResResResResResResResResResResResResResResResResResResYRENOFCBFYFYCM[1:0]YCENResResResRes
Reset value0000000
0x134LTDC_L1CFBARCFBADD[31:0]
Reset value00000000000000000000000000000000
0x138LTDC_L1CFBLRResCFBP[14:0]ResResCFBLL[13:0]
Reset value0000000000000000000000000000000
0x13CLTDC_L1CFBLNRResResResResResResResResResResResResResResResResResResResResCFBLNBR[11:0]
Reset value000000000000
0x140LTDC_L1AFBA0RAFBADD0[31:0]
Reset value00000000000000000000000000000000
0x144LTDC_L1AFBA1RAFBADD1[31:0]
Reset value00000000000000000000000000000000
0x148LTDC_L1AFBLRResAFBP[14:0]ResResAFBLL[13:0]
Reset value0000000000000000000000000000000
0x14CLTDC_L1AFBLNRResResResResResResResResResResResResResResResResResResResResAFBLNBR[11:0]
Reset value000000000000
0x150LTDC_L1CLUTWRCLUTADD[7:0]RED[7:0]GREEN[7:0]BLUE[7:0]
Reset value00000000000000000000000000000000
0x154LTDC_L1SISRResResResResSIV[11:0]ResResResResSIH[11:0]
Reset value0000000000000000000000000000
0x158LTDC_L1SOSRResResResResSOV[11:0]ResResResResSOH[11:0]
Reset value0000000000000000000000000000
0x15CLTDC_L1SVSFRResResResResResResResResResResResResResResResResResSVF[15:0]
Reset value000000000000000
0x160LTDC_L1SVSPRResResResResResResResResResResResResResResResResResSVP[15:0]
Reset value000000000000000
0x164LTDC_L1SHSFRResResResResResResResResResResResResResResResResResSHF[15:0]
Reset value000000000000000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x168LTDC_L1SHSPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SHP[15:0]
Reset value0000000000000000
0x16CLTDC_L1CYR0RRes.Res.Res.Res.Res.Res.Res.CB2B[9:0]Res.Res.Res.Res.Res.Res.Res.CR2R[9:0]
Reset value0000000000000000000
0x170LTDC_L1CYR1RRes.Res.Res.Res.Res.Res.Res.CB2G[9:0]Res.Res.Res.Res.Res.Res.Res.CR2G[9:0]
Reset value0000000000000000000
0x174LTDC_L1FPF0RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RLEN[3:0]RPOS[4:0]ALEN[3:0]APOS[4:0]
Reset value10000100010000000
0x178LTDC_L1FPF1RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSIZE[2:0]BLEN[3:0]BPOS[4:0]GLEN[3:0]GPOS[4:0]
Reset value100100011000100010000
0x17C-0x1FCReservedReserved
0x200LTDC_L2C0RARGB8888ABGR8888RGBA8888BGRA8888RGB565BGR565RGB888FFF11PCF1PCF11CF1CF11PF1PF10F11F21PCF2PCF21CF2CF21PF2PF20F21CKRACLUTAWINADCPAPACFBPACFBDACKTA
Reset value11111111010100001010000001110101
0x204LTDC_L2C1RSCARes.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.
Reset value1
0x208LTDC_L2RCRRes.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.Res.
Reset value
0x20CLTDC_L2CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCENDCBENHMENRes.Res.Res.Res.CLUTENHPDENVPDENCKENLEN
Reset value00000000
0x210LTDC_L2WHPCRRes.Res.Res.Res.WHSPPOS[11:0]Res.Res.Res.Res.Res.WHSTPOS[11:0]
Reset value000000000000000000000000
0x214LTDC_L2WVPCRRes.Res.Res.Res.WVSPPOS[11:0]Res.Res.Res.Res.WVSTPOS[11:0]
Reset value0000000000000000000000000
0x218LTDC_L2CKCRRes.Res.Res.Res.Res.Res.Res.Res.CKRED[7:0]CKGREEN[7:0]CKBLUE[7:0]
Reset value0000000000000000000000000
0x21CLTDC_L2PFCRRes.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.PF[2:0]
Reset value000
0x220LTDC_L2CACRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONSTA[7:0]
Reset value1111111111
0x224LTDC_L2DCCRDCALPHA[7:0]DCRED[7:0]DCGREEN[7:0]DCBLUE[7:0]
Reset value00000000000000000000000000000000
0x228LTDC_L2BFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BOR[2:0]Res.Res.Res.Res.BF1[2:0]Res.Res.Res.Res.Res.BF2[2:0]
Reset value000110111
0x22CLTDC_L2BLCRRes.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.BL[4:0]
Reset value00000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x230LTDC_L2PCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.YRENOFCBFYFYCM[1:0]YCENRes.Res.Res.
Reset value000000
0x234LTDC_L2CFBARCFBADD[31:0]
Reset value00000000000000000000000000000000
0x238LTDC_L2CFBLRRes.CFBP[14:0]Res.Res.CFBLL[13:0]
Reset value00000000000000000000000000000
0x23CLTDC_L2CFBLNRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CFBLNBR[11:0]Res.
Reset value000000000000
0x240LTDC_L2AFBA0RAFBADD0[31:0]
Reset value00000000000000000000000000000000
0x244LTDC_L2AFBA1RAFBADD1[31:0]
Reset value00000000000000000000000000000000
0x248LTDC_L2AFBLRRes.AFBP[14:0]Res.Res.AFBLL[13:0]
Reset value00000000000000000000000000000
0x24CLTDC_L2AFBLNRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.AFBLNBR[11:0]
Reset value00000000000000
0x250LTDC_L2CLUTWRCLUTADD[7:0]RED[7:0]GREEN[7:0]BLUE[7:0]
Reset value00000000000000000000000000000000
0x254LTDC_L2SISRRes.Res.Res.Res.SIV[11:0]Res.Res.Res.Res.SIH[11:0]
Reset value000000000000000000000000
0x258LTDC_L2SOSRRes.Res.Res.Res.SOV[11:0]Res.Res.Res.Res.SOH[11:0]
Reset value000000000000000000000000
0x25CLTDC_L2SVSFRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SVF[15:0]
Reset value0000000000000000
0x260LTDC_L2SVSPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SVP[15:0]
Reset value0000000000000000
0x264LTDC_L2SHSFRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SHF[15:0]
Reset value0000000000000000
0x268LTDC_L2SHSPRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SHP[15:0]
Reset value0000000000000000
0x26CLTDC_L2CYR0RRes.Res.Res.Res.Res.Res.CB2B[9:0]Res.Res.Res.Res.Res.Res.CR2R[9:0]
Reset value00000000000000000000
0x270LTDC_L2CYR1RRes.Res.Res.Res.Res.Res.CB2G[9:0]Res.Res.Res.Res.Res.Res.CR2G[9:0]
Reset value00000000000000000000
0x274LTDC_L2FPF0RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RLEN[3:0]RPOS[4:0]ALEN[3:0]APOS[4:0]
Reset value100001000100000000
0x278LTDC_L2FPF1RRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PSIZE[2:0]BLEN[3:0]BPOS[4:0]GLEN[3:0]GPOS[4:0]
Reset value100100011000100010000

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x27C-0x2FCReservedReserved
0x300LTDC_L3C0RARGB8888ABGR8888RGBA8888BGRA8888RGB565BGR565RGB888FFF11PCF1PCF11CF1CF11PF1PF10F11F21PCF2PCF21CF2CF21PF2PF20F21CKRACLUTAWINADCPAPACFBPACFBDACKTA
Reset value11111111010100001010000001110101
0x304LTDC_L3C1RSCARes.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.YFPAYSPYIA
Reset value0000
0x308LTDC_L3RCRRes.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.GRMSKVBRIMR
Reset value1000
0x30CLTDC_L3CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SCENDCBENHMENRes.Res.Res.GLUTENHPDENVPDENCKEN
Reset value00000000
0x310LTDC_L3WHPCRWHSPPOS[15:0]WHSTPOS[15:0]
Reset value00000000000000000000000000000000
0x314LTDC_L3WVPCRWVSPPOS[15:0]WVSTPOS[15:0]
Reset value00000000000000000000000000000000
0x318LTDC_L3CKCRRes.Res.Res.Res.Res.Res.Res.Res.CKRED[7:0]CKGREEN[7:0]CKBLUE[7:0]
Reset value000000000000000000000000
0x31CLTDC_L3PFCRRes.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.PF[2:0]
Reset value000
0x320LTDC_L3CACRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CONSTA[7:0]
Reset value111111111
0x324LTDC_L3DCCRDCALPHA[7:0]DCRED[7:0]DCGREEN[7:0]DCBLUE[7:0]
Reset value00000000000000000000000000000000
0x328LTDC_L3BFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BOR[2:0]Res.Res.Res.Res.Res.BF1[2:0]Res.Res.Res.Res.Res.BF2[2:0]
Reset value0001101111
0x32CLTDC_L3BLCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BL[4:0]
Reset value0000000
0x330LTDC_L3PCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.YRENOFCBFYFYCM[1:0]YCENRes.Res.Res.Res.Res.
Reset value0000000
0x334LTDC_L3CFBARCFBADD[31:0]
Reset value00000000000000000000000000000000
0x338LTDC_L3CFBLRRes.CFBFP[14:0]Res.Res.CFBLL[13:0]
Reset value0000000000000000000000000000000
0x33CLTDC_L3CFBLNRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.CFBLNBR[11:0]
Reset value0000000000000
0x340-0x34CReservedReserved

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x350LTDC_L3CLUTWRCLUTADD[7:0]RED[7:0]GREEN[7:0]BLUE[7:0]
Reset value00000000000000000000000000000000
0x354-0x370ReservedReserved
0x374LTDC_L3FPF0RResResResResResResResResResResResResResResRLEN[3:0]RPOS[4:0]ALEN[3:0]APOS[4:0]
Reset value100001000100000000
0x378LTDC_L3FPF1RResResResResResResResResResResResPSIZE[2:0]BLEN[3:0]BPOS[4:0]GLEN[3:0]GPOS[4:0]
Reset value100100011000100010000
Refer to Section 2.4 for the register boundary addresses.