You are on page 1of 34

STM32L0x Ultra Low Power

- Power Consumption Calculator

MCD Application Team

January-2014

V1.0
Power Consumption Calculator (PCC)
as MicroXplorer Plugin
January - 2014

Confidential
Agenda 3

• MicroXplorer Project and Tool Presentation

• Power Consumption Calculator Project and Tool


Presentation

• Labs on PCC usage as MicroXplorer plugin

• Feedback on PCC tool

Confidential
4

MicroXplorer introduction
Deliveries and tool presentation

Confidential
MicroXplorer Features 5

MicroXplorer is a graphical tool enabling users to easily configure an


STM32 MCU and generate the corresponding initialization code.

• Intuitive STM32 MCU selection that feature the required peripherals

• Configure peripherals operating modes with automatic pins assignment

• Powerful constraint solver ensuring automatic pins re-assignment for


mapping a maximum of operating modes

• GPIOs configuration prior code generation

• Generate GPIO initialization code and skeleton main


• Code can be customized and kept at further code generation

• Includes a Power Consumption Calculator plugin

Confidential
MicroXplorer Release Plan 6

• 3.2: available in June, with new MCUs most L1, F0, F1, F2, F3, F4

• 4.0: planned 13W07, part of CUBE v1 program, STM32CubeMX.

Cofidential
MicroXplorer GUI 7

• Demo of MicroXplorer tool

If Peripherals mode is using an active pin, MX tries to solve conflicts by


remapping the mode to other pins (option Keep User Placement not ticked)

Peripherals tree Chip view


to select with update
peripheral of pins states
mode

Confidential
8

MicroXplorer
Power Consumption Calculator plug-in
introduction, Project status, scope and
benefits

Confidential
Description 9

Power Consumption Calculator (PCC) estimates power consumption,


DMIPS and battery life time of STM32L1 MCUs (and soon STM32F4 and
STM32L0)

• GUI based Tool for automatically computing the average power


consumption and battery life estimation in different power modes
according to a scenario
• Calculates DMIPS in RUN and LOWPOWER_RUN modes
• Use Typical data from Datasheets at ambient temperature
• Benefits from MicroXplorer features (one tool serving different needs)
and its common Plugin Interface
• Offers the possibility to load and to save a configuration, and to
generate the corresponding PDF report
Limitations and Target Market 10

• Limitations
• Supports only typical conditions as specified in the datasheets
• Datasheets are the only source of power consumption data so far
• Main measurements are done for Vdd = 3.6 V (for stop and standby, Vdd = 3.0 V)
• IPs consumption is measured while they are just clocked for Vdd = 3.0 V
• There is no load on I/O pins
• PCC does not support interpolation

• Target market
• Internal ST users (MCD Division, FAEs, Marketing) to support customers on
power consumption requests.
• MCD products customers, MicroXplorer users

Confidential
Benefit 11

• Have a user friendly GUI based tool for measuring power consumption
of Low power and all other STM32 MCU families
• Speeds up FAE answer to customers requests regarding power
consumption of many MCUs of different families and for various
configurations.
• Facilitates customer selection of MCUs, using power consumption and
IP criteria.
• Keep easily traces of power consumption measurements studies (PDF
files, sequence backup)
• Removes the need to go into datasheet details to derive power
consumption measurements
• Allows comparison of different MCUs from same or different families
and facilitate comparison also with competitor’s devices

Confidential
12

MicroXplorer
Power Consumption Calculator plug-in
Dive-in

Confidential
MCU Selection via MicroXplorer 13

• MCU Family (Serie), sub-Family (~Line(s)), MCU Name, Peripherals


• MCU selection: 2 ways using MicroXplorer

Presentation Title 7/21/2014


Confidential
PCC Main
Config Panel PCC Plugin View 14
PCC Plugin
view tab

PCC
Seq/Step/Result
Panel

MicroXplorer
MCUs Selection
Panel

Confidential
Frozen Parameters 15

• Temperature

• VDD

• Version and Datasheets

• Information notes

Confidential
Selectable Parameters 16

• MCU Part Number

• Battery (capacity backward sort)


• Capacity, Self Discharge, Nominal Voltage,
• Max Cont Current, Max Pulse Current

• Online Help

Confidential
Step and Sequence definition 17

• Step (percentage of time in a power mode configured by the user):


• A step is identified by a unique Number
• A step is a combination of different parameters set with values
• Power Mode
• Peripherals list with some activated
• Power Consumption Range
• Memory Fetch Type
• Clock Configuration
• Clock Source Frequency
• CPU Frequency (fHCLK)
• User Consumption
• Duration

• Sequence: set of steps (One step minimum, no maximum)


• A sequence is created once at least one step is created
• Then a sequence can be saved or deleted, and loaded once already been saved.

Confidential
Power modes (Step1) 18

• Power Modes
• Run
• Sleep
• LowPower_Run
• LowPower_Sleep
• Stop
• Standby
• Wake-up

Confidential
Voltage Scaling (Step 2) 19

• Scaling Ranges
• Range1
• Range2
• Range3
• NoRange

Confidential
Fetch Type (Step 3.1) 20

• Memory Fetch Type


• RAM
• FLASH

Confidential
Clock, Step duration (Step 3.2) 21

• Clock Configuration parameters


• HSI
• HSE
• MSI
• LSE
• LSI
+
• PLL (ON/OFF)
• HSEBYP
• AHBDIV1 / AHBDIV2
• RTC, IWDG, LCD
• Oscillator Frequency
• CPU Frequency

Confidential
Peripherals in PCC 22

• IPs selection + IP consumption

Confidential
Step duration + extra Consumption 23

• Step duration (percentage of time in a given state >> ignore unit)

• Additional consumption (optional)

Confidential
Step and Sequence building 24

• A Step can be built from existing step (Duplicate Step)


• Step order can be easily changed
• Step can be duplicated and updated avoiding to reconfigure all the step

• A Sequence can be built from existing sequence(s)


• Sequence can be built by taking several existing sequences, added at each load
• Sequence can be saved for further usage (Ex. MCU comparison)

Confidential
25

MicroXplorer
Power Consumption Calculator plug-in
Outputs Results and reports

Confidential
Results and Output 26

• Results:
• Calculation of Average Power consumption
• Graphical results of Average Current by step
• Calculation of Battery Life Estimation
• Calculation of DMIPS calculation (Optional depending on power modes)

• Output files
• Possibility to save only the sequence built
• Possibility to generate a Properties file of the complete MicroXplorer+PCC
configuration including all sequence parameters and values (Save your work for
future reuse)
• Possibility to save a PDF report of the complete MicroXplorer+PCC configuration
including all sequence parameters and values (Save your work in an easy to read
form)

Confidential
Results 27

• Average Power consumption + Battery Life estimation and DMIPS

• Sequence chart

Confidential
Output files
28

• MicroXplorer/PCC output “ioc” file

• Sequence “pcs” file

Presentation Title 7/21/2014


Confidential
• PDF Report extract Output Report 29

Confidential
30

Thank you

Confidential
PCC Backup slides
When MCU is not supported by PCC
(i.e. in MicroXplorer 3.1, MCU is not part of L1 family)
Field not filled in Step edition window
Thank you

www.st.com/stm32l

You might also like