| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
AN3128 Datasheet(PDF) 95 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 Datasheet(HTML) 95 Page - STMicroelectronics |
|
95 / 105 page ![]() AN3128 Getting started with the system Doc ID 16918 Rev 5 95/105 /* Touch Screen Init */ TSC_Init(); /* Joystick Init */ GL_JoyStickConfig_IOExpander(); /* Set the last Flash Memory address */ Set_LastFlashMemoryAddress( 0x08040000 ); /* If key is pressed - Start Calibration */ while( GPIO_ReadInputDataBit(USER_BUTTON_PORT, USER_BUTTON_PIN) && (time_out>0) ) time_out--; if (time_out>0) TS_Calibration(); GL_Clear(GL_White); ... /* Check if Calibration has been done*/ TS_CheckCalibration(); /*Initialize cursor*/ GL_Clear(White); CursorInit(GL_NULL); /* Menu Initialization*/ Show_Menu(); CursorShow( LCD_Height/2, LCD_Width/2 ); /* Infinite main loop ------------------------------------------------------*/ while (1) { /* Catching touch events */ if ( calibration_done ) { ProcessInputData (); } /*Time out calculate for power saving mode*/ TimeOutCalculate(); CursorReadJoystick(POLLING_MODE); TSC_Read(); } } The initialization process is in charge of preparing the basic mechanism of the system. The clock distribution and the interrupt settings are two components that are strongly dependent on the target project. An example of clock rate may be 72 MHz as the maximum speed of the current STM32 microcontroller. It can be decreased to reduce the power consumption. Special attention should be paid to the SysTick counter and its related delay routine which generates a variable time latency in multiples of 10 ms. The clock rate assumptions are: ● System HCLK - 72 MHz ● Low speed peripheral PCLK1 - 36 MHz ● High speed peripheral PCLK2 - 72 MHz The interrupt setting situation is very similar to clock distribution. The library functions involved with interrupt managing do not take care of the priorities, they only perform very |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |