ARM Cortex core microcontrollers 12 th Energy efficient operation

Similar documents
Hello, and welcome to this presentation of the STM32 Reset and Clock Controller.

2-Oct-13. the world s most energy friendly microcontrollers and radios

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

ARDUINO MEGA INTRODUCTION

STM bit ARM Cortex MCUs STM32F030 Series

Microcontrollers: Lecture 2 Low power Modes, Buses, Memory, GPIOs. Michele Magno

EFM32....the world s most energy friendly microcontrollers

Universität Dortmund. MCUs Low-Power Features

AN4152 Application note

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

STM32L4 System operating modes

Creating Energy Efficient Computers Marius Grannæs

AN4749 Application note

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

STM32F4 Introduction F1/F2/F4 Comparison Features Highlight

ARM Cortex core microcontrollers 3. Cortex-M0, M4, M7

STM8L and STM32 L1 series. Ultra-low-power platform

Introducing STM32 L0x Series. April

Arduino Uno R3 INTRODUCTION

AK-STM32-ETH Development Board

Interconnects, Memory, GPIO

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

to ARM Cortex TM -M3 October 17, 2007 MCD Application Team

Ultra Low Power Microcontroller - Design Criteria - June 2017

Advanced Microcontrollers Grzegorz Budzyń Extras: STM32F4Discovery

STM32F4 Labs. T.O.M.A.S Technically Oriented Microcontroller Application Services V1.07

STM32 F0 Value Line. Entry-level MCUs

STG - STM32 + FreeRTOS + LwIP/EmWin

AT-501 Cortex-A5 System On Module Product Brief

Hello, and welcome to this presentation of the STM32 Real- Time Clock. It covers the main features of this peripheral, which is used to provide a

Introducing Giant Gecko Series 1 (GG11)

AN4325 Application note

AN2585 Application note

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

AVR Microcontrollers Architecture

AN0007.0: MCU and Wireless MCU Energy Modes

STM32G0 MCU Series Efficiency at its Best

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

Hello, and welcome to this presentation of the STM32F7 System Configuration Controller.

STM32 Cortex-M3 STM32F STM32L STM32W

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

Introduction to ARM LPC2148 Microcontroller

XMEGA Series Of AVR Processor. Presented by: Manisha Biyani ( ) Shashank Bolia (

STM32G070CB/KB/RB. Arm Cortex -M0+ 32-bit MCU, 128 KB Flash, 36 KB RAM, 4x USART, timers, ADC, comm. I/Fs, V. Features

Engineer-to-Engineer Note

EFM32 Tiny Gecko Family EFM32TG Data Sheet

COL862 - Low Power Computing

8. Power Management and Sleep Modes

MCU Solutions for IoT A U G U S T

Low Power Design. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

[MG2420] MCU Module Datasheet. (No. ADS0705) V1.0

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006

AN4515 Application note

RL78 Ultra Low Power MCU Lab

EFM32 Happy Gecko Family EFM32HG Data Sheet

SmartFusion csoc: System Power Optimization Using Low Power Modes

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Low Power Design Michael Thomas, Applications Engineer

Reset and clock control (RCC)

Hello, and welcome to this presentation of the STM32L4 System Configuration Controller.

ARM Cortex core microcontrollers

Value-line ARM -based 32-bit MCU with up to 256 KB Flash, timers, ADC, communication interfaces, V operation

AN116. Power Management Techniques and Calculation. Introduction. Key Points. Power Saving Methods. Reducing System Clock Frequency

STM32F3. Cuauhtémoc Carbajal ITESM CEM 12/08/2013

Embedded Programming with ARM Cortex-M3 Basic Experiments 1


ERRATA SHEET INTEGRATED CIRCUITS. Date: 2008 June 2 Document Release: Version 1.6 Device Affected: LPC2468. NXP Semiconductors

ATmega128. Introduction

Capacitive Touch Based User Interfaces and Hardware-based Solutions

STM32F429 Overview. Steve Miller STMicroelectronics, MMS Applications Team October 26 th 2015

An Arduino Controlled 1 Hz to 60 MHz Signal Generator

AN2606 Application note

MICROPROCESSOR BASED SYSTEM DESIGN

STM32F7 series ARM Cortex -M7 powered Releasing your creativity

Realtek Ameba-1 Power Modes

STM32 MICROCONTROLLER

STM8 platform 8-bit microcontrollers

Military Grade SmartFusion Customizable System-on-Chip (csoc)

Xynergy It really makes the difference!

KL03 Product Brief Supports all KL03 devices

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

STM8L151x4, STM8L151x6, STM8L152x4, STM8L152x6

STM32L4+ MCU series Excellence in ultra-low-power with more performance

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

STM32L052x6 STM32L052x8

STM32SnippetsL0. STM32L0xx Snippets firmware package. Features. Description

PC87435 Enhanced IPMI Baseboard Management Controller

Hello, and welcome to this presentation of the STM32 Flash memory interface. It covers all the new features of the STM32F7 Flash memory.

Last Time. Making correct concurrent programs. Maintaining invariants Avoiding deadlocks

EFM32 Giant Gecko Family EFM32GG Data Sheet

STM32 Seminar STM32F2 High-Performance. COMPEL/STM Seminar

EFM32 Wonder Gecko Family EFM32WG Data Sheet

EFM32 Leopard Gecko Family EFM32LG Data Sheet

ARDUINO BOARD LINE UP

Product specification

Transcription:

ARM Cortex core microcontrollers 12 th Energy efficient operation Balázs Scherer Budapest University of Technology and Economics Department of Measurement and Information Systems BME-MIT 2017

The importance of power efficiency Comparing microcontroller attributes Computation power Price * Power consumption The power efficiency not just a microcontroller level thing. System considerations always plays more important role. BME-MIT 2017 2.

Factors influencing power consumption Factors influencing microcontroller power consumption o Operating Voltage o Power consumption in active mode mw/mhz o Usage of power save modes and their effects o Wake up times Factors influencing system power consumption o Operating Voltage, and the implementation of the power supply system o Power consumption of external components o Power switching of external components o System level power safe modes BME-MIT 2017 3.

Factors influencing microcontroller power consumption Operating voltages BME-MIT 2017 4.

Operating voltages 8-bit microcontrollers Traditionally there are two lines: general purpose, and low power (L line) o General purpose: ~4V 55V (ATmega128, ATmega1281) o L (low power line): 2.7V 5.5V (ATmega128L, ATmega1281V) Maximal operating frequency can depend on voltage level BME-MIT 2017 5.

LPC2106 (2003) Operating voltages 32-bit microcontrollers o Separate core and peripheral voltage 3.3V peripheral (3.0V 3.6V) 1.8V core ARM Cortex M lines: there is no separate power o STM32F1xx (2007) 2.0V 3.6V o STM32F2xx (2010) 1.8V 3.6V o STM32F4xx (2013) 1.7V 3.6V o LPC1768 (2009) 2.4V 3.6V o LPC800 (2012) 1.8V 3.6V o EFM32ZG(2014) 1.98V 3.8V BME-MIT 2017 6.

Change of operating voltage levels 5V 8-bit 4V 3V 32-bit 2V 1V 2003 2007 2011 2015 BME-MIT 2017 7.

Discharge diagram of an AA battery Very typical power source of embedded systems BME-MIT 2017 8.

Discharge diagram of an AA battery Very typical power source of embedded systems BME-MIT 2017 9.

Lithium-ion Rechargeable batteries BME-MIT 2017 10.

Rechargeable batteries NiMH BME-MIT 2017 11.

Power consumption in active mode BME-MIT 2017 12.

The influence of Voltage level Example of an AVR 8-bit microcontroller Old line New line BME-MIT 2017 13.

The influence of ambient temperature Example of STM32F4F429 BME-MIT 2017 14.

Active power consumption of 8-bit micros Popular lines in ma/mhz BME-MIT 2017 15.

Active power consumption of 32-bit micros 32-bit micros are relatively more efficient at high speed Aktív fogyaztás LPC2378 STM32F107 STM32F207 (RAM) LPC1113 (LP) LPC800 EFM32ZG108 EFM32GG990 STM32F429 LowFrek MHz 10 8 30 12 6 10 10 8 LowFrek ma 15 6,6 7 2 0,7 1,2 2,5 3 LowFrek ma/mhz 1500 825 233 166 115 120 250 375 High frek MHz 72 72 120 50 24 24 32 180 High frek ma 63 32 22 7 2,2 2,75 6,4 44 High frek ma/mhz 875 450 183 140 95 115 200 245 High frek Aktív periféria ma 125 66 49,5 98 BME-MIT 2017 16.

Active power consumption of 32-bit micros 32-bit micros are relatively more efficient at high speed o The Flash acceleration can influence the power cons. STM32F429 tipikus fogyasztás perifériák lekapcsolva Freqvencia Flash gyorsítással Flash gyorsítás nélkül 180 MHz 44 ma 57 ma 150 MHz 36 ma 46 ma 120 MHz 25 ma 36 ma 90 MHz 20 ma 29 ma 60 MHz 14 ma 21 ma 30 MHz 8 ma 13 ma 8 MHz 3 ma 5 ma Aktív fogyaztás LPC2378 STM32F107 STM32F207 (RAM) LPC1113 (LP) LPC800 EFM32ZG108 EFM32GG990 STM32F429 LowFrek MHz 10 8 30 12 6 10 10 8 LowFrek ma 15 6,6 7 2 0,7 1,2 2,5 3 LowFrek ma/mhz 1500 825 233 166 115 120 250 375 High frek MHz 72 72 120 50 24 24 32 180 High frek ma 63 32 22 7 2,2 2,75 6,4 44 High frek ma/mhz 875 450 183 140 95 115 200 245 High frek Aktív periféria ma 125 66 49,5 98 BME-MIT 2017 17.

Influencing active mode power consumption BME-MIT 2017 18.

Flash acceleration, peripheral clock tree These opportunities present sine the first 32.bit lines o Can have an influence of 10%-20% BME-MIT 2017 19.

Flash acceleration, peripheral clock tree New ARM cortex generations have more and more detailed clock tree HSI RC 8MHz /2 HCLK up to 72MHz PCLK1 up to 36MHz 4-16 MHz OSC_OUT OSC_IN HSE Osc /2 x2...x16 PLL PLLCLK SYSCLK up to 72 MHz AHB Prescaler /1,2 512 APB1 Prescaler /1,2,4,8,16 If (APB1 pres =1) x1 Else x2 TIMxCLK TIM2,3,4 PCLK2 up to 72MHz CSS APB2 Prescaler /1,2,4,8,16 If (APB2 pres =1) x1 Else x2 TIM1CLK OSC32_IN OSC32_OUT LSE OSc LSI RC /128 32.768KHz ~40KHz RTCCLK IWDGCLK USB Prescaler /1,1.5 ADC Prescaler /2,4,6,8 ADCCLK USBCLK 48MHz BME-MIT 2017 20.

Switching of peripherals Present since the first lines BME-MIT 2017 21.

Switching of peripherals STM micros start with peripheral clocks switched of after reset BME-MIT 2017 22.

Power save modes BME-MIT 2017 23.

Power save modes Traditional power save modes Run Idle / Standby Power Safe, Power Down Power Down, Deep Power Down CPU Clock Peripheral Clock Real-Time Clock Asynchron IT BME-MIT 2017 24.

Power save modes 8-bit micros Example of power save modes of an AVR microcontroller BME-MIT 2017 25.

Power save modes 8-bit micros Idle mode of ATmega1281: 1/3 of active power BME-MIT 2017 26.

Power save modes 8-bit micros Powersave mode of ATmega1281 o Watchdog Timer on: +3mA BME-MIT 2017 27.

Power save modes 8-bit micros Powersave mode of ATmega1281 o Watchdog Timer on: +3mA o Ambient temperature has a huge effect on it BME-MIT 2017 28.

Power save modes 8-bit micros AVR wake up times o External cystal o Internal RC BME-MIT 2017 29.

Power save modes 32-bit micros The very first line in 2003, the LPC2106 o Idle mode Processzor stop Peripherals are still on Wake up by any IT ~10-20mA o Power down mode Every clock stops Wake up by external IT 10 500 ma (Very high and very temperature dependent) BME-MIT 2017 30.

Power save modes 32-bit micros The main source of the problem is the SRAM o Main factor in the sleep consumption o Power consumption of an 32 kbyte SRAM chip Dinamic: 30mA Standby: 2 40 ma BME-MIT 2017 31.

Power save modes of 32-bit micros New mode to handle the SRAM problem Run Idle / Standby Power Safe Power Down Deep Power Down CPU Clock Peripheral Clock Real-Time Clock SRAM Asynchron IT BME-MIT 2017 32.

Power save modes 32-bit micros STM32F107 separate battery domain o Backup registers o RTC functionality o Automatic switching from power to batters power source Reset Power control blokk o Backup register 42 pieces of 16 bit registers The tamper signal clears backup register values Contains RTC calibration values BME-MIT 2017 33.

STM32F107 o Sleep mode Power save modes 32-bit micros Processor core stops (Idle mode in AVR). Wake up in nearly 0 time. Uses the WFI, WFE special instructions of cortex core o Stop mode Core and peripheral clocks stops, SRAM data preserves its context The Watchdog, internal RTC and their power can remain on o Standby mode Core and peripheral power domain switch off with their power regulators SRAM is cleared. The power for Watchdog and internal RTC is provided by the battery domain Wake up by the Wake up pin, Watchdog reset, reset, or RTC interrupt BME-MIT 2017 34.

Power save modes 32-bit micros STM32F107 Sleep mode BME-MIT 2017 35.

Power save modes 32-bit micros STM32F107 Stop and Standby mode BME-MIT 2017 36.

Power save modes 32-bit micros STM32F107 wake up times o External crytal: time for stabilizing is about 2ms o Internal RC osc BME-MIT 2017 37.

Power save modes Cortex M0, LPC800 summary BME-MIT 2017 38.

Silabs EFM32 power save modes 32 bites micros Energy Mode 0: Run Mode ~ 200uA/MHz Normal active mode Energy Mode 1: Sleep Mode ~ 50uA/MHz CPU clock stops. Peripherals and SRAM working. DMA can move data. Energy Mode 2: Deep Sleep Mode ~ 1.1uA High speed clock stopped. Low clocks speed (32kHz) and asynchron peripherals remain active (LCD driver, Low enegy USART, RTC, Low Energy Sensor Interface, Analog Comparator, GPIO) Energy Mode 3: Stop mode ~ 0.9uA Clocks are off except the ULFRCO. Some periferals can use ULFRCO (I2C, Watchdog, Analog Comparator, Voltage Comparator, RTC ULFRRCO, GPIO asycron IT) Energy Mode 4: Shut Off Mode ~ 0.4uA with RTC, 20nA without RTC Everyting stops, wake up to dedicated wake-up pin, or reset. Retention RAM keep context, and Backup RTC can operate. BME-MIT 2017 39.

Silabs EFM32 energia peripheral reflex system Enables fast peripheral peripheral interaction Smart peripheral peripheral DMA Some features can operate at EM2, EM3 modes BME-MIT 2017 40.

Change of sleep currents 20mA 32 bites 10mA 2mA 8 bites 1mA 0,2mA 0,1mA 2003 2007 2011 2015 BME-MIT 2017 41.

System level energy saveing BME-MIT 2017 42.

Selecting power source Selecting battery type o Alkaline battery Low self discharge: typicall 5%/year room temperatre (can change to 25%/year at high temperature) Capacity 1500-2000mAh o Button batteries, Lithium 3V power 10mAh-200mAh capacity BME-MIT 2017 43.

Selecting power source Selecting battery type cont o Rechargeable NiMH and NiCd batteries Memory effect Fast self discharge: n%/day Lithium-Ion, LiFePo No memory effects Tolerable self discharge 5 10%/month Questionable operation at low temperature o Super capacitans Limited Voltage levels 2V-5,5V Capacitance of 0,1F-10F BME-MIT 2017 44.

Voltage levels Is Voltage level change needed? Switching DC/DC converters, and it attributes o Step-up, Step-down, or combined o Efficiency o Cost factor o Quiescent current Linear stabilizers o Drop voltage o Efficiency o Quiescent current Integrated power modules BME-MIT 2017 45.

System architecture Determining the Active, Passive periods o Communication systems should take this into account Switching of non active external peripherals o High-side o Low-side Do not let not used pins in floating BME-MIT 2017 46.

Comparison of computation efficiency 8-bit, 16-bit, 32-bit BME-MIT 2017 47.

Computation efficiency and power consumption Performing functions faster can results in more time in sleep BME-MIT 2017 48.

Interesting novelties BME-MIT 2017 49.

FRAM based controllers Ferroelectric RAM o Non volatile memory o Requires relatively small amount of power to write o Fast write time: idő 125ns (not really fast) o Univerzal memory: Data + Code + backup o 10 15 write cycles (can be a problem is some situations) Texas Instrumentsnek has a line of these micros introduced in 2011 BME-MIT 2017 50.

FRAM based controllers TMS430FR line o Max. freq: 16-24MHz o 4-128kByte FRAM o 0,5-2kByte SRAM BME-MIT 2017 51.