/**
@page PWR_CurrentConsumption PWR Current Consumption example
@verbatim
******************** (C) COPYRIGHT 2014 STMicroelectronics *******************
* @file PWR_CurrentConsumption/readme.txt
* @author MCD Application Team
* @version V1.0.0
* @date 17-January-2014
* @brief Description of the PWR Current Consumption example.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2>
*
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
@endverbatim
@par PWR_CurrentConsumption Description
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 without RTC
- STANDBY mode with RTC
To run this example, user has to follow the following steps:
1. Select the Low power modes to be measured by uncommenting the corresponding
line inside the stm32f0xx_lp_modes.h file.
@code
/*#define SLEEP_MODE*/
/*#define STOP_MODE*/
/*#define STANDBY_MODE*/
#define STANDBY_RTC_MODE
@endcode
2. Use an external amperemeter to measure the IDD current.
3. This example can not be used in DEBUG mode as the JTAG IOs are disabled to
reduce power consumption.
Here below a detailed description of the example code:
1. After reset, the program waits for user push-button connected to the PA.00
to be pressed to enter the selected low power mode.
- In SLEEP_MODE, press again the user push-button to exit the low power mode.
- In STOP_MODE and STANDBY_RTC_MODE, the wakeup from low power mode is automatically
generated by the RTC (after ~5s).
- In STANDBY_MODE test, press again user push-button to exit the low power mode.
2. Low power modes description:
- Sleep Mode
============
- System Running at PLL (48MHz)
- Flash 1 wait state
- Code running from Internal FLASH
- All peripherals disabled.
- Wakeup using EXTI Line 8 (PA.00, connected to user push-button on STM32072B-DISCO)
- STOP Mode
===========
- RTC Clocked by LSI
- Regulator in LP mode
- HSI, HSE OFF and LSI if not used as RTC Clock source
- No IWDG
- FLASH in deep power down mode
- Automatic Wakeup using RTC clocked by LSI
- STANDBY Mode
==============
- RTC OFF
- IWDG and LSI OFF
- Wakeup using WakeUp Pin (PA.00, connected to user push-button on STM32072B-DISCO)
- STANDBY Mode with RTC clocked by LSI
==========================================
- RTC Clocked by LSI
- IWDG OFF
- Automatic Wakeup using RTC
@par Directory contents
- PWR_CurrentConsumption/stm32f0xx_conf.h Library Configuration file
- PWR_CurrentConsumption/stm32f0xx_it.c Interrupt handlers
- PWR_CurrentConsumption/stm32f0xx_it.h Interrupt handlers header file
- PWR_CurrentConsumption/main.h Header for main.c module
- PWR_CurrentConsumption/main.c Main program
- PWR_CurrentConsumption/system_stm32f0xx.c STM32F0xx system source file
@par Hardware and Software environment
- This example runs on STM32F072xx Devices.
- This example has been tested with STMicroelectronics STM32F072B-DISCO RevB
board and can be easily tailored to any other supported device
and development board.
- STM32F072B-DISCO Set-up
- Use LED4 connected to PC.08 pin.
- Use User button connected to PA.00 pin.
- Connect an amperemeter to JP2 to measure the IDD current
@par How to use it ?
In order to make the program work, you must do the following :
+ EWARM
- Open the PWR_CurrentConsumption.eww workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ MDK-ARM
- Open the PWR_CurrentConsumption.uvproj project.
- Rebuild all files: Project->Rebuild all target files.
- Load project image: Debug->Start/Stop Debug Session.
- Run program: Debug->Run (F5).
+ TrueSTUDO
- Open the TrueSTUDIO toolchain.
- Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace
directory.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to the TrueSTUDIO workspace directory, select the project.
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Run->Debug (F11).
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
STM32F072RBT6例程,开发学习
共1214个文件
html:247个
js:201个
h:171个
5星 · 超过95%的资源 需积分: 50 123 下载量 15 浏览量
2018-04-17
15:33:59
上传
评论 4
收藏 20.04MB RAR 举报
温馨提示
例程:串口、中断、I2C、时钟、PWM、看门狗、定时、SD卡等 包含硬件原理图、芯片资料等,编程环境keil
资源推荐
资源详情
资源评论
收起资源包目录
STM32F072RBT6例程,开发学习 (1214个子文件)
stm32f0xx_tim.c 130KB
stm32f0xx_rtc.c 93KB
stm32f0xx_usart.c 87KB
stm32f0xx_rcc.c 67KB
tsl_linrot.c 60KB
stm32f0xx_can.c 57KB
stm32f0xx_i2c.c 55KB
stm32f0xx_spi.c 52KB
stm32f0xx_adc.c 47KB
stm32f0xx_flash.c 42KB
tsl_acq_stm8l_sw.c 41KB
tsl_acq_stm32f3xx.c 34KB
usbd_ccid_cmd.c 33KB
stm32f0xx_dma.c 33KB
tsl_acq_stm32f0xx.c 30KB
usbd_audio_core.c 29KB
tsl_acq_stm32l1xx_sw.c 28KB
tsl_touchkey.c 28KB
tsl_acq_stm8l_hw.c 27KB
tsl_acq_stm32l1xx_hw.c 26KB
stm32f0xx_dac.c 26KB
usbd_dfu_core.c 25KB
stm32f0xx_cec.c 24KB
tsl_acq_stm8tl5x.c 24KB
stm32f0xx_pwr.c 20KB
stm32f0xx_gpio.c 20KB
usbd_custom_hid_core.c 19KB
usbd_custom_hid_core.c 19KB
usbd_cdc_core.c 19KB
main.c 19KB
usbd_req.c 17KB
usbd_msc_scsi.c 17KB
usb_core.c 16KB
stm32f0xx_comp.c 15KB
usb_dcd.c 15KB
usbd_ccid_core.c 15KB
usbd_hid_cdc_wrapper.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
system_stm32f0xx.c 14KB
stm32f0xx_crs.c 14KB
usbd_ccid_if.c 13KB
stm32f0xx_syscfg.c 13KB
system_stm32f0xx.c 12KB
usbd_hid_msc_wrapper.c 11KB
tsl_acq.c 11KB
stm32f0xx_iwdg.c 11KB
stm32f0xx_exti.c 11KB
stm32f0xx_crc.c 11KB
tsl_user.c 10KB
usb_dcd_int.c 10KB
tsl_ecs.c 10KB
usbd_hid_core.c 10KB
stm32f0xx_wwdg.c 10KB
stm32f0xx_lp_modes.c 10KB
usbd_core.c 10KB
main.c 10KB
tsl_user.c 9KB
usbd_msc_core.c 9KB
tsl_object.c 9KB
usbd_msc_bot.c 8KB
usbd_desc.c 8KB
usbd_desc.c 8KB
main.c 8KB
main.c 7KB
stm32f0xx_dbgmcu.c 7KB
main.c 7KB
main.c 7KB
usbd_dfu_mal.c 7KB
usbd_pwr.c 6KB
usbd_pwr.c 6KB
main.c 6KB
main.c 6KB
usbd_cdc_if_template.c 6KB
main.c 6KB
stm32f0xx_misc.c 6KB
tsl_dxs.c 6KB
main.c 6KB
main.c 6KB
stm32f0xx_it.c 5KB
usbd_ioreq.c 5KB
main.c 5KB
stm32f0xx_it.c 5KB
共 1214 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
- 董十一2018-12-28积分要的有点多了啊
- dingshi552023-02-09可以用,用Keil.STM32F0xx_DFP.1.4.0 固件库就不会出错了https://download.csdn.net/download/qq_38738359/9938806
laowen8901
- 粉丝: 1
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于yolov5识别算法实现的DNF自动脚本源码.zip
- 基于Python实现的自动化办公项目.zip
- 基于python实现的基于PyQt5和爬虫的小说阅读系统.zip
- 机械设计整经机上纱自动化sw20非常好的设计图纸100%好用.zip
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功