SlideShare a Scribd company logo
1 of 22
Download to read offline
Maths is not everything

Embedded Systems
4 - Hardware Architecture

CPU
Input/Output mechanisms
Memory
Buses and Aux I/O
Input/Output interfaces
RMR©2012

Power Management
Maths is not everything

CPU
Power Management

RMR©2012
CPU power consumption

Most modern CPUs are designed with
power consumption in mind to some
degree.
Power vs. energy:

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

heat depends on power consumption;
battery life depends on energy consumption.
CMOS power consumption

Voltage drops: power consumption
proportional to V2.
Toggling: more activity means more power.

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

Leakage: basic circuit characteristics; can
be eliminated by disconnecting power.
CPU power-saving strategies

Reduce power supply voltage.
Run at lower clock frequency.

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

Disable function units with control signals
when not in use.
Disconnect parts from power supply when
not in use.
Power management styles

Static power management: does not
depend on CPU activity.
Example: user-activated power-down mode.

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

Dynamic power management: based on
CPU activity.
Example: disabling off function units.
Application: PowerPC 603 energy features

Provides doze, nap, sleep modes.
Dynamic power management features:
Uses static logic.
Can shut down unused execution units.

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

Cache organized into subarrays to minimize amount
of active circuitry.
PowerPC 603 activity

Percentage of time units are idle for
SPEC integer/floating-point:
unit	

 	

 	


Specint92	

	

 Specfp92
29%	

	

 	


17%

35%	

	

 	


17%

fixed-point	

	


RMR©2012

28%

load/store	

 	


Maths is not everything

29%	

	

 	


I cache	

 	


© 2008 Wayne Wolf

D cache	

	


38%	

	

 	


76%

floating-point	


99%	

	

 	


30%

system register	

 89%	

 	

 	


97%
Power-down costs

Going into a power-down mode costs:
time;
energy.

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

Must determine if going into mode is
worthwhile.
Can model CPU power states with power
state machine.
Application: StrongARM SA-1100 power saving

Processor takes two supplies:
VDD is main 3.3V supply.
VDDX is 1.5V.

Three power modes:

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

Run: normal operation.
Idle: stops CPU clock, with logic still powered.
Sleep: shuts off most of chip activity; 3 steps, each
about 30 µs; wakeup takes > 10 ms.
SA-1100 power state machine

Prun = 400 mW

run
10 μs

160 ms
90 μs
10 μs

Maths is not everything

RMR©2012

© 2008 Wayne Wolf

idle
Pidle = 50 mW

90 μs

sleep
Psleep = 0.16 mW
Maths is not everything

MSP430
Power Management

RMR©2012
e on-demand
MSP430: achieving ultra-low power

Extended Ultra-low Power standby mode
Minimum active duty cycle
Performance on-demand

Maths is not everything

RMR©2012

13
MSP430: ultra-low power clock control

Maths is not everything

RMR©2012

14
MSP430: active mode supply current

Maths is not everything

RMR©2012

15
MSP430: basic clock configuration

Maths is not everything

RMR©2012

16
MSP430: basic clock mode + VLO clock

Maths is not everything

RMR©2012

17
MSP430: low power mode configuration

Maths is not everything

RMR©2012

18
MSP430: interrupts control program flow

Maths is not everything

RMR©2012

19
MSP430: software functions vs peripherals

Maths is not everything

RMR©2012

20
MSP430: C coding tips

Use local variable as much as possible.
Local variables use CPU registers whereas global
variables use RAM.

Maths is not everything

RMR©2012

21

Use bit mask instead of bitfields for
unsigned int and unsigned char.
Use unsigned data types where possible
Use pointers to access structures and
unions
Use “static const” class to avoid run-time
copying of structures, unions, and arrays.
Avoid modulo
Count down “for” loops
MSP430: principles of ULP operation

Maximize the time in standby (LPM3)
Use interrupts to control program flow
Replace software functions with
peripheral hardware
Power manage internal peripherals
Power manage external devices
Device choice can make a difference
Maths is not everything

RMR©2012

22

Effective code is a must
Every unnecessary instruction executed is a portion
of the battery wasted that will never return.

More Related Content

Viewers also liked

pathanatomy Reproductive system
pathanatomy Reproductive systempathanatomy Reproductive system
pathanatomy Reproductive systemAnubhuti Dave
 
S emb t1-introduction
S emb t1-introductionS emb t1-introduction
S emb t1-introductionJoão Moreira
 
S emb t10-development
S emb t10-developmentS emb t10-development
S emb t10-developmentJoão Moreira
 
Pedia anubhutidave21grp
Pedia anubhutidave21grpPedia anubhutidave21grp
Pedia anubhutidave21grpAnubhuti Dave
 
Gastrointestinal System USMLE Pretest
Gastrointestinal System USMLE PretestGastrointestinal System USMLE Pretest
Gastrointestinal System USMLE PretestAnubhuti Dave
 
musculoskeletal system USMLE
musculoskeletal system  USMLEmusculoskeletal system  USMLE
musculoskeletal system USMLEAnubhuti Dave
 
RMAN backup Oracle
RMAN backup OracleRMAN backup Oracle
RMAN backup OracleAlfan Dya
 

Viewers also liked (16)

S emb t9-arch_power
S emb t9-arch_powerS emb t9-arch_power
S emb t9-arch_power
 
Herramientas unetenet
Herramientas unetenetHerramientas unetenet
Herramientas unetenet
 
pathanatomy Reproductive system
pathanatomy Reproductive systempathanatomy Reproductive system
pathanatomy Reproductive system
 
S emb t1-introduction
S emb t1-introductionS emb t1-introduction
S emb t1-introduction
 
S emb t10-development
S emb t10-developmentS emb t10-development
S emb t10-development
 
Pedia anubhutidave21grp
Pedia anubhutidave21grpPedia anubhutidave21grp
Pedia anubhutidave21grp
 
S emb t4-arch_cpu
S emb t4-arch_cpuS emb t4-arch_cpu
S emb t4-arch_cpu
 
S emb t6-arch_mem
S emb t6-arch_memS emb t6-arch_mem
S emb t6-arch_mem
 
Gastrointestinal System USMLE Pretest
Gastrointestinal System USMLE PretestGastrointestinal System USMLE Pretest
Gastrointestinal System USMLE Pretest
 
S emb t12-os
S emb t12-osS emb t12-os
S emb t12-os
 
S emb t11-processes
S emb t11-processesS emb t11-processes
S emb t11-processes
 
S emb t7-arch_bus
S emb t7-arch_busS emb t7-arch_bus
S emb t7-arch_bus
 
musculoskeletal system USMLE
musculoskeletal system  USMLEmusculoskeletal system  USMLE
musculoskeletal system USMLE
 
S emb t5-arch_io
S emb t5-arch_ioS emb t5-arch_io
S emb t5-arch_io
 
S emb t13-freertos
S emb t13-freertosS emb t13-freertos
S emb t13-freertos
 
RMAN backup Oracle
RMAN backup OracleRMAN backup Oracle
RMAN backup Oracle
 

Similar to S emb t9-arch_power (1)

Ls catalog thiet bi tu dong imc iii-e
Ls catalog thiet bi tu dong imc iii-eLs catalog thiet bi tu dong imc iii-e
Ls catalog thiet bi tu dong imc iii-eDien Ha The
 
Ls catalog thiet bi tu dong imc iii-e_dienhathe.vn
Ls catalog thiet bi tu dong imc iii-e_dienhathe.vnLs catalog thiet bi tu dong imc iii-e_dienhathe.vn
Ls catalog thiet bi tu dong imc iii-e_dienhathe.vnDien Ha The
 
Industrial Temperature Controller using Microcontroller
Industrial Temperature Controller using MicrocontrollerIndustrial Temperature Controller using Microcontroller
Industrial Temperature Controller using MicrocontrollerEdgefxkits & Solutions
 
Track d more performance less power - freescale final
Track d   more performance less power  - freescale finalTrack d   more performance less power  - freescale final
Track d more performance less power - freescale finalchiportal
 
Joseph Staniowski - Design Project
Joseph Staniowski - Design ProjectJoseph Staniowski - Design Project
Joseph Staniowski - Design ProjectJoseph Staniowski
 
PWM SOLAR CHARGE CONTROLLER ARDUINO NANO
PWM SOLAR CHARGE CONTROLLER ARDUINO NANOPWM SOLAR CHARGE CONTROLLER ARDUINO NANO
PWM SOLAR CHARGE CONTROLLER ARDUINO NANOSaikat Bhandari
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed controlSai Malleswar
 
Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...
Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...
Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...Soham Mondal
 
Eaton 93PM 30-50kW UPS.pptx
Eaton 93PM 30-50kW UPS.pptxEaton 93PM 30-50kW UPS.pptx
Eaton 93PM 30-50kW UPS.pptxmancangkul1
 
MPPT Solar Charge Controller
MPPT Solar Charge ControllerMPPT Solar Charge Controller
MPPT Solar Charge ControllerShashank Narayan
 
Computer Architecture and Organization
Computer Architecture and OrganizationComputer Architecture and Organization
Computer Architecture and Organizationssuserdfc773
 
Baykee SL series solar inverter Optional AVR Function
Baykee SL series solar inverter  Optional AVR FunctionBaykee SL series solar inverter  Optional AVR Function
Baykee SL series solar inverter Optional AVR Functionwendy chen
 
Luminous sine wave i on 1500va inverter
Luminous sine wave i on 1500va inverterLuminous sine wave i on 1500va inverter
Luminous sine wave i on 1500va inverterRaj verma
 

Similar to S emb t9-arch_power (1) (20)

Ls catalog thiet bi tu dong imc iii-e
Ls catalog thiet bi tu dong imc iii-eLs catalog thiet bi tu dong imc iii-e
Ls catalog thiet bi tu dong imc iii-e
 
Ls catalog thiet bi tu dong imc iii-e_dienhathe.vn
Ls catalog thiet bi tu dong imc iii-e_dienhathe.vnLs catalog thiet bi tu dong imc iii-e_dienhathe.vn
Ls catalog thiet bi tu dong imc iii-e_dienhathe.vn
 
Industrial Temperature Controller using Microcontroller
Industrial Temperature Controller using MicrocontrollerIndustrial Temperature Controller using Microcontroller
Industrial Temperature Controller using Microcontroller
 
Solar tracking
Solar trackingSolar tracking
Solar tracking
 
PowerManagement
PowerManagementPowerManagement
PowerManagement
 
Track d more performance less power - freescale final
Track d   more performance less power  - freescale finalTrack d   more performance less power  - freescale final
Track d more performance less power - freescale final
 
Smart act 1 English
Smart act 1 EnglishSmart act 1 English
Smart act 1 English
 
Joseph Staniowski - Design Project
Joseph Staniowski - Design ProjectJoseph Staniowski - Design Project
Joseph Staniowski - Design Project
 
PWM SOLAR CHARGE CONTROLLER ARDUINO NANO
PWM SOLAR CHARGE CONTROLLER ARDUINO NANOPWM SOLAR CHARGE CONTROLLER ARDUINO NANO
PWM SOLAR CHARGE CONTROLLER ARDUINO NANO
 
Reduce system energy by smart CPU management
Reduce system energy by smart CPU managementReduce system energy by smart CPU management
Reduce system energy by smart CPU management
 
Embedded notes.iet.trichy
Embedded notes.iet.trichyEmbedded notes.iet.trichy
Embedded notes.iet.trichy
 
Embedded notes.iet.trichy
Embedded notes.iet.trichyEmbedded notes.iet.trichy
Embedded notes.iet.trichy
 
Temp based fan speed control
Temp based fan speed controlTemp based fan speed control
Temp based fan speed control
 
Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...
Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...
Leveraging UPF-Extracted Checkers using UPF Query Functions for Verifying Pow...
 
Eaton 93PM 30-50kW UPS.pptx
Eaton 93PM 30-50kW UPS.pptxEaton 93PM 30-50kW UPS.pptx
Eaton 93PM 30-50kW UPS.pptx
 
stepper motor
stepper motorstepper motor
stepper motor
 
MPPT Solar Charge Controller
MPPT Solar Charge ControllerMPPT Solar Charge Controller
MPPT Solar Charge Controller
 
Computer Architecture and Organization
Computer Architecture and OrganizationComputer Architecture and Organization
Computer Architecture and Organization
 
Baykee SL series solar inverter Optional AVR Function
Baykee SL series solar inverter  Optional AVR FunctionBaykee SL series solar inverter  Optional AVR Function
Baykee SL series solar inverter Optional AVR Function
 
Luminous sine wave i on 1500va inverter
Luminous sine wave i on 1500va inverterLuminous sine wave i on 1500va inverter
Luminous sine wave i on 1500va inverter
 

Recently uploaded

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

S emb t9-arch_power (1)

  • 1. Maths is not everything Embedded Systems 4 - Hardware Architecture CPU Input/Output mechanisms Memory Buses and Aux I/O Input/Output interfaces RMR©2012 Power Management
  • 2. Maths is not everything CPU Power Management RMR©2012
  • 3. CPU power consumption Most modern CPUs are designed with power consumption in mind to some degree. Power vs. energy: Maths is not everything RMR©2012 © 2008 Wayne Wolf heat depends on power consumption; battery life depends on energy consumption.
  • 4. CMOS power consumption Voltage drops: power consumption proportional to V2. Toggling: more activity means more power. Maths is not everything RMR©2012 © 2008 Wayne Wolf Leakage: basic circuit characteristics; can be eliminated by disconnecting power.
  • 5. CPU power-saving strategies Reduce power supply voltage. Run at lower clock frequency. Maths is not everything RMR©2012 © 2008 Wayne Wolf Disable function units with control signals when not in use. Disconnect parts from power supply when not in use.
  • 6. Power management styles Static power management: does not depend on CPU activity. Example: user-activated power-down mode. Maths is not everything RMR©2012 © 2008 Wayne Wolf Dynamic power management: based on CPU activity. Example: disabling off function units.
  • 7. Application: PowerPC 603 energy features Provides doze, nap, sleep modes. Dynamic power management features: Uses static logic. Can shut down unused execution units. Maths is not everything RMR©2012 © 2008 Wayne Wolf Cache organized into subarrays to minimize amount of active circuitry.
  • 8. PowerPC 603 activity Percentage of time units are idle for SPEC integer/floating-point: unit Specint92 Specfp92 29% 17% 35% 17% fixed-point RMR©2012 28% load/store Maths is not everything 29% I cache © 2008 Wayne Wolf D cache 38% 76% floating-point 99% 30% system register 89% 97%
  • 9. Power-down costs Going into a power-down mode costs: time; energy. Maths is not everything RMR©2012 © 2008 Wayne Wolf Must determine if going into mode is worthwhile. Can model CPU power states with power state machine.
  • 10. Application: StrongARM SA-1100 power saving Processor takes two supplies: VDD is main 3.3V supply. VDDX is 1.5V. Three power modes: Maths is not everything RMR©2012 © 2008 Wayne Wolf Run: normal operation. Idle: stops CPU clock, with logic still powered. Sleep: shuts off most of chip activity; 3 steps, each about 30 µs; wakeup takes > 10 ms.
  • 11. SA-1100 power state machine Prun = 400 mW run 10 μs 160 ms 90 μs 10 μs Maths is not everything RMR©2012 © 2008 Wayne Wolf idle Pidle = 50 mW 90 μs sleep Psleep = 0.16 mW
  • 12. Maths is not everything MSP430 Power Management RMR©2012
  • 13. e on-demand MSP430: achieving ultra-low power Extended Ultra-low Power standby mode Minimum active duty cycle Performance on-demand Maths is not everything RMR©2012 13
  • 14. MSP430: ultra-low power clock control Maths is not everything RMR©2012 14
  • 15. MSP430: active mode supply current Maths is not everything RMR©2012 15
  • 16. MSP430: basic clock configuration Maths is not everything RMR©2012 16
  • 17. MSP430: basic clock mode + VLO clock Maths is not everything RMR©2012 17
  • 18. MSP430: low power mode configuration Maths is not everything RMR©2012 18
  • 19. MSP430: interrupts control program flow Maths is not everything RMR©2012 19
  • 20. MSP430: software functions vs peripherals Maths is not everything RMR©2012 20
  • 21. MSP430: C coding tips Use local variable as much as possible. Local variables use CPU registers whereas global variables use RAM. Maths is not everything RMR©2012 21 Use bit mask instead of bitfields for unsigned int and unsigned char. Use unsigned data types where possible Use pointers to access structures and unions Use “static const” class to avoid run-time copying of structures, unions, and arrays. Avoid modulo Count down “for” loops
  • 22. MSP430: principles of ULP operation Maximize the time in standby (LPM3) Use interrupts to control program flow Replace software functions with peripheral hardware Power manage internal peripherals Power manage external devices Device choice can make a difference Maths is not everything RMR©2012 22 Effective code is a must Every unnecessary instruction executed is a portion of the battery wasted that will never return.