Download presentation
Presentation is loading. Please wait.
Published byCornelia Little Modified over 8 years ago
1
Power Management
2
Outline Why manage power? Power management in CPU cores Power management system wide Ways for embedded programmers to be power conscious
3
Why power management? Desktops: Lower power bill, lower heat, lower fan noise Laptops, mobile systems: Above + battery life!
4
Power management tradeoffs Usually, power consumption is proportional to performance Low powerHigh power High performanceLow performance
5
Main power mgmt goals Lower I, V If you ’ re not using something, turn it off Try to meet deadlines exactly instead of being too fast
6
Core power I Inside the core, we are basically charging and discharging capacitances C + V core - Q = charge, C = Capacitance, V core = Voltage
7
Core power II Let
8
Voltage and frequency scaling I Intel Speedstep AMD PowerNow! Scale voltage and frequency dynamically based on need
9
Voltage and frequency scaling II Voltage and frequency settings for Intel Pentium M processor
10
Why scale V & f together? Oscillators are not stable at all voltages for a given frequency Increasing f Increasing Vcc Operation OK
11
Processor power modes Many CPUs/systems have several modes of operation Active, Power-save, Idle, Halt Latency vs. power tradeoff Active Power-save Idle Halt Overhead Power, Performance Latency
12
Active mode Processor executes instructions normally Entire CPU core active
13
Power-save Clock circuitry may be disconnected from unused CPU subsystems CPU not executing instructions Can usually return to active mode very quickly (several times per ms)
14
Idle CPU still not executing instructions Context may be stored in system memory, CPU registers and cache disabled Must restore context before resuming execution
15
Sleep Entire system context stored to nonvolatile memory upon entering sleep Power to main memory disabled Latency very high
16
PIC 16F877A SLEEP mode By executing the SLEEP instruction, the PIC goes into power down mode and draws very little current (μA vs. mA) Will wake via WDT or external interrupt
17
Palm OS Run, doze, sleep Never really turned off Run – Executing instructions, returns to doze when finished Doze – Main clock running, LCD on, CPU not executing instructions Sleep – Main clock off, LCD off, only user generated interrupt will wake system
18
Windows XP Active – computer running normally Standby – Just enough power to keep contents of RAM, CPU off Hibernate – Makes image of RAM contents on hard disk Alter policies through Control Panel -> Power Options on Windows XP
19
Embedded power mgmt I Use low power modes whenever you can int main(void){ while(1){ … do_stuff(); delay_ms(DELAY); … } int main(void){ while(1){ … do_stuff(); power_save(); … }
20
Embedded power mgmt I Idle system instead of using delays Instead of polling lines, configure system to wake up from idle upon an interrupt from that line If unable to use pin as interrupt, still idle and wake periodically to check status of pin
21
Embedded power mgmt II Shut down peripherals when possible int main(void){ … if (userinput==FALSE) set_lcd(LCD_BACKLIGHT_OFF); //Turn backlight off if (userpresent==FALSE) set_lcd(LCD_OFF); //Turn LCD completely off … }
22
Embedded power mgmt III Don ’ t allow CMOS inputs to float! GOOD Very small current BAD Not so small current
23
Summary Buy the right core for the job Go to low power processor states whenever possible Power peripherals only when necessary
24
References “ Dynamic Power Management for Embedded Systems, ” IBM and Montavista, November 2002 “ Embedded Power Management, ” http://www.embedded.com/story/OEG20030121S0057http://www.embedded.com/story/OEG20030121S0057 “ Palm OS Power Management, ” http://www.palmos.com/dev/support/docs/protein_books/SysMgt/PowerManagement.html http://www.palmos.com/dev/support/docs/protein_books/SysMgt/PowerManagement.html “ AMD PowerNow! Technology, ” AMD, November 2000 “ Low Power Microcontrollers, ” NEC, April 2004 “ Microarchitecture and Performance, ” Intel, http://www.intel.com/technology/itj/2003/volume07issue02/art03_pentiumm/p11_performanc e.htm “ Inside DSP on low power, ” June 2004, http://insidedsp.eetimes.com/features/showArticle.jhtml?articleID=21400770 http://insidedsp.eetimes.com/features/showArticle.jhtml?articleID=21400770 “ Power Management Discussion Document, ” 3G Lab, February 2001 “ Enhanced Intel SpeedStep Technology for the Intel Pentium M Processor, ” Intel, March 2004 “ Bios and Kernel Dev. Guide for AMD Athlon 64 and AMD Opteron Processors, ” AMD, April 2004
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.