数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4062 数据表(PDF) 7 Page - STMicroelectronics

部件名 AN4062
功能描述  STM32F0DISCOVERY peripheral firmware examples
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4062 数据表(HTML) 7 Page - STMicroelectronics

Back Button AN4062 Datasheet HTML 3Page - STMicroelectronics AN4062 Datasheet HTML 4Page - STMicroelectronics AN4062 Datasheet HTML 5Page - STMicroelectronics AN4062 Datasheet HTML 6Page - STMicroelectronics AN4062 Datasheet HTML 7Page - STMicroelectronics AN4062 Datasheet HTML 8Page - STMicroelectronics AN4062 Datasheet HTML 9Page - STMicroelectronics AN4062 Datasheet HTML 10Page - STMicroelectronics AN4062 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 17 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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