Transcription of AN4861 Application note - STMicroelectronics
1 July 2020AN4861 Rev 31/961AN4861 Application noteLCD-TFT display controller (LTDC) on STM32 MCUs IntroductionThe evolution of the mobile, industrial and consumer applications leads to a stronger need of graphical user interfaces (GUIs) and to an increase in the required hardware resources. These applications require higher quality graphics, more hardware and software resources (like memory for graphical primitives or framebuffer) and higher processing performances. To respond to this increasing demand, microprocessor units are often used, which leads to a higher costs and to more complex designs with longer time to market.
2 To face these requirements, the STM32 microcontrollers (MCUs) offer a large graphical portfolio. Thanks to their embedded LCD-TFT display controller (LTDC), the STM32 MCUs allow high-resolution display panels to be directly driven, without any CPU intervention. In addition, the LTDC can access autonomously to internal memories or external memories to fetch pixel Application note describes the LCD-TFT display controller of the STM32 MCUs listed in the table below, and demonstrates how to use and configure the LTDC peripheral. It also highlights some hardware, software and architectural considerations to obtain the best graphical STM32 products are named as follows in this Application note: STM32F4x9 STM32F7x6/7/8/9 STM32H7A3/B3 and STM32H7B0 STM32H742/43/45/47/53/55/57 and STM32H750 STM32L4+ or STM32L4R/S and STM32L4P/Q Table 1.
3 Applicable productsTypeProductsMCUsSTM32F429/439 and STM32F469/479 linesSTM32F7x6, STM32F7x7, STM32F7x8 and STM32F7x9 linesSTM32H7A3/B3, STM32H742, STM32H743/753, STM32H745/755, STM32H747/757 linesSTM32H7B0, STM32H750 Value linesSTM32L4+ Rev 3 Contents1 Display and graphics overview .. graphics concepts .. interface standards .. interfaces supported by STM32 MCUs .. 132 Overview of LTDC controller and STM32 MCUs graphical portfolio . display controller on STM32 MCUs .. and graphic portfolio across STM32 MCUs .. in a smart architecture.
4 Of using an STM32 LTDC controller .. 193 LCD-TFT (LTDC) display controller description .. description .. clock domains .. reset .. timings and hardware interface .. pins and signal interface .. programmable timings for different display sizes .. programmable LTDC layers .. window position and size configuration .. layer: color framebuffer .. modes .. 314 Creating a graphical Application with LTDC .. graphical Application requirements .. the display size and color depth compatibility with the hardware configuration.
5 Memory size requirements and location .. display compatibility considering the memory bandwidth requirements .. the compatibility of the display panel interface with the LTDC .. package selection guide .. 44AN4861 Rev 33 synchronization with DMA2D and CPU .. usage .. and DMA2D/CPU synchronization .. performance optimization .. allocation .. the LTDC framebuffer fetching from external memories (SDRAM or SRAM) .. the LTDC framebuffer fetching from SDRAM .. content update during balnking period .. recommendations for Cortex-M7 (STM32F7/H7).
6 FMC bank1 if not used .. the memory protection unit (MPU) .. peripheral configuration .. panel connection .. clocks and timings configuration .. layers configuration .. panel configuration .. graphic primitives .. images to C files .. considerations .. 635 Saving power consumption .. 646 LTDC Application examples .. examples and resources requirements .. MCU .. with external memory .. : creating a basic graphical Application .. description .. to check if a specific display size matches the hardware configuration.
7 GPIOs configuration .. peripheral configuration .. an image from the internal Flash .. SDRAM configuration .. and cache configuration .. boards with LCD-TFT panel .. 91 ContentsAN48614/96AN4861 Rev 37 Supported display panels .. 928 Frequently asked questions .. 939 Conclusion .. 9410 Revision history .. 95AN4861 Rev 35/96AN4861 List of tables5 List of tablesTable products .. 1 Table interfaces supported by STM32 MCUs .. 13 Table MCUs embedding an LTDC and their available graphic portfolio .. 15 Table of using STM32 MCUs LTDC controller.
8 19 Table interface output signals .. 21 Table timing registers .. 23 Table interrupts summary.. 30 Table peripheral state versus STM32 low-power modes .. 31 Table size for different screen resolutions .. 33 Table maximal supported pixel clock .. 39 Table maximal supported pixel clock .. 39 Table 12. STM32H742/43/45/47/53/55/57 and STM32H750 maximal supported pixel clock .. 40 Table and STM32H7B0 maximal supported pixel clock .. 41 Table + maximal supported pixel clock .. 41 Table maximal supported pixel clock .. 42 Table of supported display resolutions in specific STM32 hardware configurations.
9 43 Table packages with LTDC peripheral versus RGB interface availability .. 45 Table timings extracted from ROCKTECH RK043FN48H datasheet .. 60 Table LTDC timing registers.. 61 Table of graphic implantations with STM32 in different hardware configurations .. 67 Table reference boards embedding LTDC and featuring an on-board LCD-TFT panel .. 91 Table asked questions .. 93 Table revision history .. 95 List of figuresAN48616/96AN4861 Rev 3 List of figuresFigure embedded graphic system .. 8 Figure module with embedded controller and GRAM.
10 9 Figure module without controller nor GRAM .. 10 Figure module without controller nor GRAM and with external framebuffer .. 10 Figure type A or B interface .. 11 Figure type C interface .. 11 Figure interface .. 12 Figure interface .. 12 Figure AHB master in STM32F429/439 and STM32F469/479 smart architecture .. 17 Figure AHB master in STM32F7x6, STM32F7x7, STM32F7x8 and STM32F7x9 smart architecture .. 18 Figure block digram .. 20 Figure signal interface .. 22 Figure LTDC display frame (active width = 480 pixels) .. 23 Figure programmable timings and resolutions.