首页 > 器件类别 >

AN4515

Maximizing power efficiency using STM32F411xx Batch Acquisition Mode

厂商名称:ST(意法半导体)

厂商官网:http://www.st.com/

下载文档
文档预览
AN4515
Application note
Maximizing power efficiency using STM32F411xx Batch Acquisition
Mode (BAM)
Introduction
The STM32F411 line is part of the STM32 Dynamic Efficiency
microcontrollers. These
devices are the entry level to the High-performance F4 Series and offer the best balance of
dynamic power consumption and processing performance, while achieving outstanding low-
power consumption in Run, Sleep and Stop modes.
With the new Batch Acquisition Mode (BAM) which allows optimizing power consumption for
data batching, the STM32F411xx microcontrollers brings the Dynamic Efficiency to a new
level.
This application note guides you to achieve the expected power consumptions on
STM32F411xx microcontrollers through an application case. It also provides an example of
how to implement the BAM.
This application note is provided with STSW-STM32154 firmware package.
Table 1. Applicable products and software
Type
Microcontrollers
Software
STM32F411 line
STSW-STM32154
Part numbers
December 2014
DocID026482 Rev 1
1/24
www.st.com
1
Contents
AN4515
Contents
1
Application Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1
1.2
1.3
Hardware high level description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Batch Acquisition Mode (BAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
Principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
BAM use case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
How to implement BAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
How to execute code from RAM using Keil® MDK-ARM™ toolchain . . 11
How to execute code from RAM using IAR-EWARM toolchain . . . . . . . 13
2
Application note use case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.1
2.2
2.3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
STM32F411xx used peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3
Application current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.1
3.2
3.3
Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Software settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Measured current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4
5
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2/24
DocID026482 Rev 1
AN4515
List of tables
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Applicable products and software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Summary of methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Master and sensor board connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Current consumption example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
DocID026482 Rev 1
3/24
3
List of figures
AN4515
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Application high level block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Batch Acquisition Mode use case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Executing ISRs from RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Executing ISRs from Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Using events to wake up the CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
MDK-ARM file placement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
MDK-ARM scatter file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
MDK-ARM Options menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Update of EWARM linker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Update of EWARM startup file to handle an interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Use case block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Use case state machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Startup and Configuration Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Wait MEMS movement while CPU is Sleep mode
and Flash memory stopped . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Log example when configuration 4 is selected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Hardware environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4/24
DocID026482 Rev 1
AN4515
Application Overview
1
Application Overview
This section gives an overview of the application note use case, details how the user can
implement the BAM and describes each low-power mode involved in the use case
operation.
1.1
Hardware high level description
This document first explains how to assess power consumption in different low-power
modes (Standby, Sleep, Stop and Low-power run) and then highlights the significant power
reduction achieved by using the BAM to transfer sensor (MEMS LSM303DLHC) data
direction (UP or DOWN) to a master STM32F411xx microcontroller.
The data sent by the sensor is received via the I2C interface and transferred by DMA to the
RAM. After processing data, the DMA sends the data direction to the UART. It is then
displayed via the USB virtual comport.
Figure 1
shows a high-level block diagram of the application.
Figure 1. Application high level block diagram
Note:
The next version of this application note will include the X-Nucleo IKS01A1 as sensor
instead of 32F401CDISCOVERY (STM32F401C-DISCO order code).
DocID026482 Rev 1
5/24
23
查看更多>
UCD9090A-如何使用TI电源时序控制器在5G MIMO的应用
5G是目前通信设备领域的市场趋势, Massive MIMO指的是64T64R应用中常用的多输入和...
alan000345 TI技术论坛
做交通电子的出来聊一下。
我是做交通毫米波雷达的,做交通应用产品的出来交流下,汽车电子的也可以。 做交通电子的出来...
毫米波 汽车电子
阻抗匹配与史密斯(Smith)圆图: 基本原理
本文利用史密斯圆图作为RF阻抗匹配的设计指南。文中给出了反射系数、阻抗和导纳的作图范例,并用作图法设...
JasonYoo RF/无线
【得捷Follow me第3期】+ 基于lvgl图形库驱动的多功能桌面摆件(完整项目)
本项目将包括以下内容: 任务一、安装及使用Micropython---(任...
genvex DigiKey得捷技术专区
为什么ST的M7主频只有216M?
为什么STM32F746G-DISCO开发板上的M7最高频率只有216M,而ATMEL的SAM V7...
dcexpert stm32/stm8
IPCWorks Asia 2008十月引领绿色制造潮流
从 无铅 、RoHS到 无卤素 ,再到PoHS,业界对环保材料的“门槛”越设越高,未来的绿色之路将走...
clj2004000 PCB设计
热门器件
热门资源推荐
器件捷径:
L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 LA LB LC LD LE LF LG LH LI LJ LK LL LM LN LO LP LQ LR LS LT LU LV LW LX LY LZ M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 MA MB MC MD ME MF MG MH MI MJ MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ N0 N1 N2 N3 N4 N5 N6 N7 N8 NA NB NC ND NE NF NG NH NI NJ NK NL NM NN NO NP NQ NR NS NT NU NV NX NZ O0 O1 O2 O3 OA OB OC OD OE OF OG OH OI OJ OK OL OM ON OP OQ OR OS OT OV OX OY OZ P0 P1 P2 P3 P4 P5 P6 P7 P8 P9 PA PB PC PD PE PF PG PH PI PJ PK PL PM PN PO PP PQ PR PS PT PU PV PW PX PY PZ Q1 Q2 Q3 Q4 Q5 Q6 Q8 Q9 QA QB QC QE QF QG QH QK QL QM QP QR QS QT QV QW QX QY R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 RA RB RC RD RE RF RG RH RI RJ RK RL RM RN RO RP RQ RR RS RT RU RV RW RX RY RZ
需要登录后才可以下载。
登录取消