| 数据搜索系统,热门电子元器件搜索 |
|
AN4062 数据表(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4062 数据表(HTML) 7 Page - STMicroelectronics |
|
7 / 17 page ![]() DocID022897 Rev 3 7/17 AN4062 Peripheral firmware examples description 3.5 Stop mode example Purpose This example shows how to enter the system to STOP mode and wake-up using EXTI Line interrupts. The EXTI Line sources are PA.0 and RTC Alarm. 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 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 the Stop mode and waits for the RTC Alarm to be generated every 5s, or when the User push-button is pressed. – If the RTC Alarm (EXTI_Line17) is the source of wakeup from Stop, LED3 is toggled. – If the User push-button (EXTI_Line0) is the source of wakeup from Stop, LED4 is on and LED3 is toggled. LEDs are used to monitor the system state: – LED3 toggling: system in Run mode; system woken up from Stop using RTC ALARM. – LED4 on: system woken up from Stop using EXTI Line0 (User push-button). 3.6 Current consumption example Purpose This example shows how to configure the STM32F0xx system to measure different low power modes current consumption. The low power modes are: • Sleep mode • Stop mode with RTC • Standby mode with wake up pin (without RTC) • Standby mode with RTC To select the low power modes to be measured, uncomment the corresponding line inside the stm32f0xx_lp_modes.h file. Note: STM32F0xx consumption can be measured on the STM32F0DISCOVERY board by removing jumper JP2, labeled IDD, and connecting an ammeter. |
|
|
链接网址 |
| 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 |