| поискавой системы для электроныых деталей |
|
AN4157 датащи(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4157 датащи(HTML) 14 Page - STMicroelectronics |
|
14 / 24 page ![]() Peripheral firmware examples description AN4157 14/24 Doc ID 023629 Rev 1 LED3 is used to monitor the system state as following: ● LED3 toggling: system in Run mode ● LED3 off: system in Standby mode ● LED3 toggling: system resumed from Standby mode These steps are repeated in an infinite loop. Note: To measure the current consumption in Standby mode, please refer to Chapter 3.12: Current consumption example. 3.14 Stop mode example 3.14.1 Purpose This example shows how to enter Stop mode and wakeup using EXTI Line interrupts. The EXTI Line sources are PA0 and RTC Alarm. 3.14.2 Description In this example: ● The EXTI Line0 is configured to generate interrupt on falling edge. ● The EXTI line17 (RTC Alarm) is configured to generate interrupt on rising edge. ● The SysTick timer is programmed to generate an interrupt every 250 ms. In the SysTick interrupt handler, LED3 is toggled, which indicates whether the MCU is in Stop or Run mode. The system enters Stop mode and waits for the RTC Alarm to be generated every 5s, or for the user push-button to be pressed. ● If the RTC Alarm (EXTI_Line17) has been configured to wakeup the microcontroller from Stop mode, LED4 and LED3 is On. ● If the User push-button (EXTI_Line0) has been configured to wakeup the microcontroller from Stop mode, LED5 and LED3 is On. LEDs are used to monitor the system state: ● LED3 ON: system in Run mode ● LED3, LED4 and LED5 OFF: system in Stop mode ● LED5 ON if EXTI Line0 is used to exit from Stop ● LED4 ON if EXTI line17(RTC Alarm) is used to exit from Stop. 3.15 RCC (reset and clock controller) example 3.15.1 Purpose This example shows how to: ● Configure the HSE (High Speed Clock) as an RCC clock ● Use the Clock Security System (CSS) feature to generate an NMI interrupt ● Output the system clock on MCO |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |