| 전자부품 데이터시트 검색엔진 |
|
STM32F469 데이터시트(PDF) 79 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32F469 데이터시트(HTML) 79 Page - STMicroelectronics |
|
79 / 91 page ![]() DocID029237 Rev 2 79/91 AN4861 LTDC application examples 89 To generate the header file click on File->Convert. Then in the displayed window shown in Figure 51, set the file type to “C/C++ headers (*.h)”, then save the *.h file in include “\Inc” directory (same location as main.h file) by clicking on the Save button. Figure 51. LCD Image Converter: generating the header file The generated header file should be included in the main.c file. It includes a table of 32-bit words where each word represents two pixels. In this header file, the user must comment the structure definition located just after the table and keep only the table definition as shown below: /* Converted image: image_data_STLogo definition */ const uint32_t image_data_STLogo[65280] = {0xffffffff, 0xffffffff, ........}; Setting the LTDC framebuffer Layer1 start address to the internal Flash (image address in the Flash) The generated project by STM32CubeMX should include in the main.c file the MX_LTDC_Init() function that allows to configure the LTDC peripheral. In order to display the image, the user should set the LTDC Layer1 framebuffer start address to the address of the image in the internal Flash. The MX_LTDC_Init() function is presented below with the framebuffer start address setting. /* LTDC configuration function generated by STM32CubeMX tool */ static void MX_LTDC_Init(void) { LTDC_LayerCfgTypeDef pLayerCfg; hltdc.Instance = LTDC; /* LTDC control signals polarity setting */ hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL; hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL; hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL; hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC; /* Timings configuration */ hltdc.Init.HorizontalSync = 0; hltdc.Init.VerticalSync = 9; hltdc.Init.AccumulatedHBP = 43; hltdc.Init.AccumulatedVBP = 21; |
|
링크 URL |
| 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 |