| 数据搜索系统,热门电子元器件搜索 |
|
STM32F479 数据表(PDF) 42 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32F479 数据表(HTML) 42 Page - STMicroelectronics |
|
42 / 91 page ![]() Creating a graphical application with LTDC AN4861 42/91 DocID029237 Rev 2 4.4.2 LTDC and DMA2D/CPU synchronization When only one framebuffer is used, there is a risk that the framebuffer computation is displayed on the screen. Multiple buffering techniques such as the double buffering are commonly used to avoid displaying the framebuffer calculation on the screen. Even when using a double buffering technique, a tearing effect may appear due to a non- synchronization between the LTDC and the framebuffer update (either by the CPU or the DMA2D). A way to solve this issue is the use of the VSYNC signal to synchronize the workflow of these two masters (LTDC and either CPU or DMA2D). The LTDC fetches the graphical data from a buffer (called frontbuffer) while the DMA2D prepares the next frame in another buffer (called backbuffer). The VSYNC period indicates the end of the actual frame display and that the two buffers should be flipped. Figure 23. Double buffering: synchronizing LTDC with DMA2D or CPU The LTDC provides different options to synchronize this workflow: • Program the line interruption with the value of the last screen line, the interrupt handler should flip the framebuffers and start the next framebuffer calculation. • Program the shadow reload register (LTDC_SRCR) to Vertical blanking reload to change the LTDC framebuffer address on the VSYNC period and Poll on VSYNC bit of the LTDC_CDSR register to unblock the DMA2D. 4.5 Graphic performance optimization As previously stated in this document, the framebuffer memory bandwidth is the most important parameter for a graphic application. This section provides some recommendations to optimize the graphic performances based on bandwidth optimizations of the framebuffer memory. 4.5.1 Memory allocation The smart architecture of the STM32 MCUs enables a significant system performance gain when using the internal SRAM memory split into two or more slaves. Splitting up the slave memories between masters helps to decrease the competition between them when they access simultaneously the same SRAM. This action also creates an additional system bus bandwidth. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |