Click here to learn
about this Sponsor:
Home  |  News  |  Articles  |  Polls  |  Forum  |  Directory

Keywords: Match:
Power management in portable ARM-based systems
by Cliff Brake   (Mar. 27, 2003)

Introduction

As many computing systems are now portable, power management is a regular part of many ARM based systems. ARM based processors are especially well suited to portable systems because they provide a high level of performance at very low power. System issues are also important for an effective power managed system. This paper provides an overview of the hardware and system power management issues.

Power Management

Power management is the effort to minimize power usage in a portable system. The primary benefit is increased battery life, but there are other benefits such as reduced heat dissipation. It is important to understand where the power in a system is going and where efforts to reduce power can be best spent. Illustration 1 is an example power distribution for a PDA class device. Power management is a system issue as the software, processor, peripherals, and power supplies must work together to effectively manage power.


Illustration 1: Power distribution in a PDA class sample device


Processor

The processor in a portable system contains a significant number of switching transistors relative to the rest of the circuitry in the system; therefore it uses a significant amount of power. Because a processor runs software, it is possible to know when parts of the processor can be shut down or slowed down when they are not needed.

CMOS Basics

Processors are manufactured using CMOS circuits. The following equation illustrates the relationship between Power P, CMOS gate capacitance C, switching frequency f, and supply voltage V:


The CMOS gate capacitance C is fixed for a particular processor, but switching frequency f and supply voltage V can typically be adjusted to suit the application. There is another relationship between supply voltage V and switching frequency f that must be considered. Higher switching frequencies require higher supply voltages:


Processor manufacturers typically specify several operational voltage and frequency combinations.

Processor Idle Mode

Almost all modern processor designs support an idle mode. During the idle state, the clock to the processor core stops, reducing the power used when the processor is not busy. The processor is put in the idle state by the operating system kernel when it determines there are no active tasks. The processor "wakes up" from the idle state when any system interrupt occurs. As most systems have an OS timer interrupt running, the processor may go into the idle state thousands of times per second.

It is important to note that the processor idle mode only affects the processor and has no effect on other hardware components in the system.

Voltage and Frequency Scaling

There has been some interest in dynamic frequency and voltage scaling. From a pure CMOS perspective, there is little benefit to reducing frequency by itself, as the power required per instruction is still the same. The idle state is the reason reducing switching frequency alone will not save power. With higher switching frequencies, the processor simply gets its work done quicker and spends more time in the idle state. However, if voltage is reduced as well as frequency, the power per instruction is reduced. Because voltage V is a quadratic relationship with power P, small reductions in voltage result in significant amounts of power. Reducing the voltage by 29% will result in a 50% reduction in power.

From a system perspective, there may be some benefit to scaling frequency. There is research [Reference 2] that suggests that batteries do not operate efficiently when the power demand is not constant and has high peaks. A system spending a lot of time in the idle mode may present this scenario, depending on the battery technology and the power supply filtering relative to how frequently the system enters the idle mode. Careful system analysis and testing is required to determine if there is any benefit to dynamically scaling only the frequency.

Scaling both voltage and frequency is a technique currently used with PC notebook class processors [Reference 1]. Although a processor manufacturer may specify several voltage/frequency operating points, it is very important that dynamic requirements also be specified if the voltage and frequency are going to be changed at run time. The power supply slew rate must be carefully controlled to meet the processor specification and parts of the processor may have to be disabled during a frequency change.

Recent announcements from ARM and National Semiconductor indicate that voltage technology may eventually be integrated directly on the processor. The circuitry on the processor will look at frequency, temperature, and process variations to optimally determine the required voltage instead of using worst case values.

Processor Peripherals

Most ARM based processor include a significant number of peripherals on-chip. If a peripheral is not being used, the clock to the peripheral should be stopped if possible. Circuitry supporting the peripheral may also be powered off if control is available.

System Issues


Illustration 2: Basic system power managements states


System Suspend

During the system suspend (also called sleep) state, only the following components are left powered up.
  • SDRAM
  • Processor Power Management Circuity
  • Wake circuitry
Because the SDRAM contents are preserved, the application state of the system is preserved. The following steps typically occur to enter sleep mode:
  1. User, timeout, or low battery situation initiates the suspend sequence.
  2. The OS makes calls to each device driver to put the hardware peripheral into a low power state.
  3. Processor registers that are not preserved during suspend are saved to SDRAM.
  4. The SDRAM is put into a self refresh mode.
  5. The processor is put into the suspend mode. In this mode, the clock to the processor core is stopped, and various power supplies in the system are powered down.
The resume sequence is the opposite of the suspend sequence and is initiated by a wake pin on the processor or an internal processor wake source such as a real time clock alarm. Implementing the suspend mode in a system is a big task as it requires an understanding of all the peripherals in the system and how to transition them to a low power state.

For a PDA class device, the suspend mode power is on the order of 10mW. A PDA class system can transition between the run and suspend state in 10's of mS –- near instant from a human perspective.

System Off

Even with the reduced power used in suspend state, a PDA class system will only last at most a couple weeks in suspend mode. It is often desirable to have an OFF mode (also called ship) that uses virtually no power. This mode is useful to avoid damage to the batteries when the battery is dead and also for shipping so a device can be shipped or stored with the battery installed.

Soft Reset

Most systems require a soft (warm) reset functionality where the system processor can be reset, but the SDRAM contents are preserved. As many portable systems store user files in RAM, this is a nice feature.

Hardware

There are a number of specific hardware aspects that can be considered for power management.

Display and Frontlight

The display typically consumes the most energy in a PDA class system. There are a number of displays available, but most modern PDA use some type of reflective TFT display with a frontlight. Although a reflective TFT screen can be read in bright light without a frontlight, a frontlight is required most of the time for comfortable viewing. There are two types of frontlight used:
  • CCFT (Cold Cathode Fluorescent Tube)
  • Side mounted LEDs
LED frontlights use less power, but there are other tradeoffs to be considered.

It is common for portable system software to dim the frontlight if there is no user input for a short period of time. For certain applications (such as music playback), it may be acceptable to disable the entire display.

Lower Power SDRAM

Many systems can use low power SDRAM which runs at 2.5 or 1.8 volts versus the conventional 3.3 volts. Table 1 compares power used by 64MBytes of ram in a 3.3V and a 1.8V system. The data for the calculations was obtained from Micron datasheets for 256Mbit SDRAM components [References 3, 4]. The run (100% duty cycle) and suspend power for one device is multiplied by two as two devices are required.

Table 1

Ram Type Run PowermW Suspend Power mW
Normal (3.3 V) 891 9.9
Low power (2.5) 324 1.26


Going from 3.3V to 1.8V will significantly increase the run time and suspend time of a portable system.

SDRAM components support several low power states. The SDRAM Self-Refresh state is used during the system suspend state. During this state, all signals to the SDRAM are inactive except for CKE, and the SDRAM manages its own refresh. SDRAM components also support a power-down mode that can be used while the system is in the run or idle state.

Audio

Audio components that have a low power mode (in the ìA range) should be selected. Otherwise, the power must be switched off to the devices in the suspend state. Care must be taken when transitioning power in audio circuits to avoid undesired audio artifacts such as popping noises.

Power Supplies

Power supply IC vendors continue to make advancements. Modern switching supplies switch in the MHz range which reduces the size of capacitors and magnetics required in the circuit. At high switching frequencies, extra care must be taken in the layout so the power supply control loop works properly. If a switching power supply is to be left running in the suspend state, it should support a low power mode where it can supply the very low suspend power at reasonable efficiency. These are often referred to as dual mode switching power supplies.

Backup Power Source

If the system has a removable main battery, some type of backup power source should be considered. This backup power source keeps the system alive in the suspend state while the main battery is being replace. Most PDA class systems require a battery for the backup power source due to the power required in the suspend state.

Critical Events

Hardware support for several critical events is usually required. The first critical event can be called critical battery. In this state, the OS must be notified that the battery is critically low and the OS will then unconditionally transition the system to the suspend state. The other critical state can be called dead battery. In this state, the battery is not completely dead, but further discharge must be prevented to avoid damaging the battery. This state is handled by a small amount of extremely low power hardware circuitry that detects the state and disconnects the main battery from the system. All SDRAM contents are lost when this critical event occurs.

Sourcing Issues

Sourcing issues are probably the number one hardware problem encountered when trying to get a system to suspend (power down) properly. Sourcing occurs when an IC is in a powered down state but one of the input signals is left in a high state. If the IC has protection diodes on the inputs, current will be directed though the protection diode to the IC power pins as shown in Illustration 3. This causes the power supply voltage to increase to some indeterminate level and results in relatively large amounts of power being dissipated when the system should be using very little power. The solution for this problem is to make sure input signals to ICs (that have protection diodes) are in a low state before powering down the IC. Signals that cannot be driven low in the suspend state may have to be buffered.


Illustration 3


Summary

Power management in a portable device is a system issue. A successful design requires a thorough understanding of the system and attention to many details.



Acknowledgments

I thank the Engineering staff at Accelent, of which I am part of, for contributing information for this paper.



References
  1. M. Fleischmann, "LongRun Power Management", Transmeta Corporation, Jan. 2001.
  2. T. Martin, "Balancing batteries, power, and performance: system issues in CPU speed-settings for mobile computing", PhD. Dissertation, Carnegie Mellon University, Aug. 1999.
  3. Micron Datasheet, "256Mb SDRAM", Micron Technology, Inc., 2001.
  4. Micron Datasheet, "256Mb MOBILE SDRAM", Micron Technology, Inc., 2002.



About the author: Cliff Brake is a senior engineer with Accelent Systems responsible for development of software and processes that enable the deployment of system-on-chip based platforms. His interests include embedded systems architecture, software and design methodology. He is active contributor in the technical community through newsgroups and mail lists.




Copyright © 2002 by Accelent Systems. All rights reserved. Reproduced by WindowsForDevices.com with permission.


(Click here for further information)


Windows XP for Embedded Applications
This white paper describes the benefits of using Windows XP when developing embedded applications.

A Manager's Guide to Selecting a Mobile Device Operating System
This white paper offers a comparative review of Microsoft Windows CE and Windows Mobile.

Visual Basic 6.0 to .NET Migration
This paper focuses on the methodology and techniques which Infosys (Microsoft Technology Center) has developed for migrating VB 6.0 Applications to .NET. Our approach ensures a smooth, cost effective, and efficient migration.

Mobile Device Security: Securing the Handheld, Securing the Enterprise
This whitepaper identifies security threats to corporate data on mobile devices and details how mobile devices can become a "backdoor" to the enterprise.

Mobile Device Security: The Eight Areas of Risk
It's common knowledge that adding mobile devices to your network increases security risks. There are multiple facets to mobile security, all of which should be paid close attention to. This E-Guide presents a more in depth look into the eight key areas of securing wireless devices.

Quality Assurance and .NET
This paper discusses best practices for functional, regression and load testing of .NET applications.

SCADA Security in Integrated Networks
As businesses leverage their SCADA systems by integrating them into the business networks, they must also assure the security of the SCADA system.

The Advantages of Small Form Factor HMI
HMIs have mutated and changed with new requirements, and they have become more flexible and capable. And while they've been doing that, they've become smaller and more useful.

9 Critical Requirements for Web Application Security
Learn why your Web applications expose dangerous security breaches and what’s required to effectively protect your Web applications and the sensitive information behind them.

 


Got a HOT tip?   please tell us!
Free weekly newsletter
Enter your email...
Click here for a profile of each sponsor:
PLATINUM SPONSORS
(Become a sponsor)

ADVERTISEMENT
(Advertise here)


Updated! The latest Windows-powered...

mobile phones!

other cool
gadgets

HOT TOPICS
Microsoft targets PNDs with new embedded OS
Microsoft tips .NET MF 3.0 highlights
Microsoft previews Windows Embedded Standard
Microsoft offers free Windows CE 6.0 textbook
Microsoft renames embedded operating systems
Microsoft unveils Windows Mobile 6.1
New Atom models target low-cost PCs
REFERENCE GUIDES
Windows Device Showcase
Intro to Windows Embedded
Intro to Shared Source
Real-time Windows Embedded
Windows Embedded books
Join our Windows Embedded discussion forums:
Windows XP Embedded
Windows CE
Windows Mobile


Windows Embedded developer newsgroups
Windows CE
XP Embedded
PocketPC
Smartphone

Microsoft's Windows Embedded resources
Embedded dev center
Mobile dev center
Windows CE tutorials
XP Embedded tutorials
Windows Embedded seminars
Windows Embedded application categories
3rd-party partners


BREAKING NEWS

• Superscalar ARM SoC runs Windows CE
• CE-based nav stack heads for CES
• Windows phone has dual displays
• Cortex-A8 SoC targets netbooks
• Palm "Nova" Linux set for CES debut?
• Editors' retrospective -- Windows-powered Devices in 2008
• Firefox mobile browser alphas released
• Box PC doubles as car computer
• Windows phone has dual active radios
• Windows PMP has dual-core CPU
• COM Express module sports Atom
• "Half-rack" network appliance runs Windows
• Cross-platform NAS runs Windows
• ARM to dominate MIDs?
• Toshiba launches first 512GB SSD


MOST POPULAR (last 90 days)
• "Netbook" uses Intel's Atom N270
• Windows CE takes on Linux in low-end netbooks
• HTC ups Touch resolution
• Microsoft unleashes new embedded OS
• Windows Mobile phone gets 800 x 480 display
• HTC spins WiMAX phone?
• Smart camera sports Atom
• Dual-core AMD netbook gets rave review
• Windows Mobile 7 "delayed"
• GPS phone uses new Marvell "Tavor" chip
MOST POPULAR (Classics from the vault)
Windows XP Embedded USB boot
Troubleshooting Windows XPe's blue screen "Stop 0x0000007B" error
Asus reveals $190 mini notebook
Windows Mobile 6 SDKs available for download
Windows Mobile VPN client plays with Cisco
HTC adds GPS to Windows Mobile Touch line
Microsoft unveils Windows Mobile 6.1
Guide to HTC's Windows Mobile smartphone platforms
• HTC releases Touch Diamond ROM upgrade
Customizing Windows XP Embedded thin clients

Also visit our sister sites:


Sign up for WindowsForDevices.com's...

news feed

Home  |  News  |  Articles  |  Polls  |  Forum  |  Directory  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Windows is a trademark or registered trademark of Microsoft Corporation in the United States and/or other countries and is used by WindowsForDevices under license from owner. All other marks are the property of their respective owners. WindowsForDevices is an independent publication not affiliated with Microsoft Corporation.