Taking advantage of new low-power modes on advanced microcontrollers - Embedded.com

Taking advantage of new low-power modes on advanced microcontrollers

In general, describing a product as “green” means it has minimal or no harmful effect on the environment. In the case of a product that uses power, green means  power use is minimal. But what is meant by “minimal” or “low power” often isn't clearly defined, partly because the requirements for a low-power microcontroller (MCU) vary, depending upon how the MCU will be used.

For example, in a battery-operated thermostat low power is primarily defined by the minimum power mode that allows the device to drive the LCD display; a reduction in power leads to extended battery life. In an electricity meter, low power refers to the active current consumed by the system during operation. An electricity meter also requires the time of day to be maintained regardless of the presence of the system’s primary power supply, for example during a power failure. Thus, MCUs with flexible power modes allow a designer to tailor system operation depending on the application.

In the past, MCUs had an active mode to allow for device operation; idle and doze modes to reduce or eliminate the CPU switching power while allowing the peripherals to operate; and sleep modes that allowed limited peripheral operation with minimal power consumption.

As today’s MCUs move to more advanced silicon processes that minimize cost and reduce active current, a number of new low-power modes are being added to increase flexibility. To explore some of the operating modes available on today’s advanced MCUs, we will examine how these new low-power operating modes are used in a variety of applications.

A software Battery Life Estimator (BLE) tool and 16-bit MCU will be used to provide a comparison of the various power modes when implemented in different applications. The BLE from Microchip is a free software tool that allows a designer to estimate the battery life of their system and to determine which of the available operating modes is best suited to their application.

Applications requiring low power MCUs
Thermostats have become more complex, needing to display more information and cover multiple regions. As a result, significant amounts of on-chip Flash program memory are often required to store their complex menus in multiple languages. In general, advanced processes are required to produce MCUs with large memories at competitive prices. As semiconductor processes advance, there tends to be a reduction in operating, or active, current with an increase in the leakage current of the transistor.

The increase in leakage current is most visible in the current specifications for low-power modes, such as sleep mode. The sleep currents on advanced MCUs are typically in the 3 to 5 µA range. The typical thermostat application spends the majority of its time doing little more than driving a segmented LCD display. The segmented LCD display is typically driven in a sleep mode that allows the driver to operate while the CPU and most peripherals are powered down. On a periodic basis, the thermostat must wake and enter an active mode, read the temperature, update the display, and perhaps signal the furnace, fan, or AC units to turn on. However, over 99% of the time only the sleep mode is required. This large amount of time in the sleep mode makes the sleep current an area where improvement can greatly benefit the battery life of the system.

New lower power modes
To provide MCUs with a sub µA power mode, suppliers have introduced new low-power “deep sleep” modes that consume 10 to 50 µA and can add a clock calendar (RTCC) with an additional 400 nA of current. Extremely low currents are achieved by shutting down the entire device with the exception of a small amount of memory, a real-time clock and perhaps a watch dog timer. However, these deep sleep modes do not allow peripheral operation or maintain the data RAM on the device. The loss of the RAM contents requires the device to execute a restart routine prior to resuming program execution when waking from deep sleep.

Other new low-power modes, such as the low-voltage sleep mode, maintain the device’s data RAM at a typical base current of 330 nA and allow the operation of additional low-power peripherals. This low-voltage sleep mode maintains the device’s RAM and lowers sleep current by reducing the output of the device’s on-chip regulator. By reducing the supply voltage to the device logic and limiting the active peripherals, the MCU’s sleep current can be reduced from 3.7 µA to 330 nA. As a subset of the MCU’s sleep mode, peripherals such as LCD drivers, timers, and the RTCC can operate with minimal additional current. The low-voltage sleep mode allows the device to return to an active state in less than half the time of a wake from deep sleep. The device then begins execution at the next instruction, rather than beginning with the restart sequence typically required by a wake from deep sleep.

Click on image to enlarge.

Figure 1: Battery Life Estimator Tool main screen

As shown in Figure 1 , the main screen of the Battery Life Estimator tool shows the MCU and its operating voltage, battery, and operating modes. The result of the Thermostat model is an 11-year, 88-day estimated life.

Additionally, the BLE tool models the time a microcontroller will spend in each operating mode and how much power the device will consume in each mode. Figure 1 shows the output display of the BLE, which is used to set several key parameters of the system and to provide the resulting life estimate and average system current. First, the MCU and operating voltage of the system are selected. This allows the Battery Life Estimator to pull the appropriate specification parameters. A battery or battery pair is then selected – in this case, 2 AAA Alkaline batteries. The expected operating voltage of the system and the operating temperature can also be selected to pull the most appropriate specification for use in the battery-life-estimate model. Finally, the operating modes that will be used in the system are defined. In the case of our thermostat, two modes will be used.

To model the time when the thermostat is displaying only the LCD screen, an operational mode called “Display LCD” is created. The Display LCD operational mode uses the low-voltage sleep mode to provide the lowest power mode from which the LCD can be driven. The Battery Life Estimator tool is set to model the low-voltage sleep mode for 29.5 seconds out of the 30-second loop that is being used to model the operational life of the device. A second Update Temp and LCD operational mode is used to model the time the MCU will take to monitor the temperature, update the LCD screen, and communicate with the HVAC units.

To get a better feel for the new low-voltage sleep mode and how anoperational mode is implemented in the BLE tool, we will look at itsAdd/Modify Mode screen, as shown in Figure 2 . From this screen, adesigner can adjust the settings for the duration, which is currentlyset to 29.5 seconds. By using the Additional System Current entry box,designers can add an estimated current consumption for the currents thatsurround the MCU. In this case, 4 µA of system current has been addedto represent the current consumed by the LCD display, and an additional 1µA of current has been added to represent the current required for theinternal LCD bias resistors. Next, the power mode is selected, in thiscase low-voltage sleep, and the required peripherals. To provide anaccurate model of the system current, the LCD Drive, BOR, WDT and RTCChave been selected. The total system current consumed by the MCU itselfis 1.88 µA, which is added to our 5 µA system current to arrive at the6.88 µA required by the system while in low-voltage sleep mode.

Clickon image to enlarge.

Figure2: The Battery Life Estimator tool’s mode-edit screen allows a designerto name and specify the conditions of each power mode used.

The BLE main screen shows that an average 6.88 µA is consumed while thedevice is in low-voltage sleep mode and just over 327 µA is consumedduring the short time the device is in an active state, for an averagecurrent of less than 6.9 µA. The estimated battery life for the systemis almost 12 years, or almost 5 years beyond the shelf life of thebatteries. A similar analysis using the sleep mode rather than thelow-voltage sleep mode is shown in Figure 3 , and results in an average current of approximately 10.5 µA and a three-year reduction in the battery life.

Clickon image to enlarge.

Figure3: A battery life estimate based upon the use of a sleep mode shows athree-year reduction in battery life, using a standard sleep mode.

At the opposite extreme for an MCU is a system that would spend most ofthe time in an active mode, such as an electricity meter. Today’selectricity meters spend all of their time in one of two states. Thenormal operating mode occurs when electric power is available. In thismode, the MCU is active and is constantly measuring the voltage andcurrent and calculating the power being sourced through the meter. Themeter may also be monitoring for potential tampering, driving an LCDdisplay, and communicating with the meter-reading infrastructure.

While the electricity meter is running, it may seem that power isabundant. In reality, the power is the product being supplied by theelectric utility – the end customer of the meter manufacturer. Theelectric utility company is supplying millions of customers with power,and even a small power drain is costly to the power companies’ business.In fact, most meters must operate under a 10 VA power budget,established by the IEC. When the possible line variations, componenttolerances, and system-design margins are taken into consideration, theend result is a current budget of about 10 mA for the system MCU, when acapacitive power supply is being used.

Some of today’s low-cost electricity meters utilize 8-bit MCUs thattypically consume over 10 mA when operating at their full speed in anactive mode. In order to stay within the system power budget, designersare often required to operate the MCU at a reduced frequency. Many oftoday’s 16-bit MCUs take advantage of advanced processes and designtechniques to provide typical operating currents as low as 150 µA/MHz,and can operate at a full 16 MIPS while consuming a maximum of 6.9 mA.The reduced operating current provides the designer with the choice ofeither reducing the MCU operating speed of the MCU to lower the systempower consumption, or adding additional functions while keeping thesystem within the allotted power budget.

While electricity meters spend the vast majority of their time in anactive state, they are also an example of an application that can takeadvantage of one of the lowest power modes—Vbat. Vbat functionalityprovides a dedicated pin that is supplied with a backup power source,such as a LTC battery, or a super capacitor. When the primary power tothe system fails, as it would during a power failure, the power for theRTCC automatically transitions to the backup Vbat pin. The RTCC isimportant in a power meter during a power outage, as time-of-use billingis becoming increasingly popular. While operating through Vbat, theRTCC allows an LTC (lithium thionyl chloride) battery to last for tensof years, allowing an almost indefinite power back-up operation. The useof the Vbat functionality with RTCC is not limited to power meters.Many applications, including the thermostat discussed above, can utilizethe RTCC to maintain the time during a power failure or batterychange. Vbat, with a capacitor or battery, can go a long way towardeliminating the annoying blinking lights that result from a powerfailure.

The low-power evolution of MCUs in a power-consciousworld has led to extremely flexible general-purpose MCUs. Advances inprocess technology and design techniques have lead to 16-bit MCUs withactive currents as low as 150 µA/MHz. New low-power modes, such aslow-voltage sleep and Vbat, have added flexibility to thepower-management chain, and are now allowing general-purpose MCUs tooperate in a wider variety of applications. The end result is a powerfuland adaptable microcontroller that will allow more energy-efficient andcustomer-friendly end applications.

Donald Schneider is a product marketing manager with Microchip’s Advanced MicrocontrollerArchitecture Division, working on the Company’s 16-bit PIC24F productline. Since joining Microchip in 2005, Don has worked to define andpromote Microchips high-performance products, with a particular focus onthe PIC24F family. Prior to joining Microchip, Don spent 16 years atToshiba, eight years as an Applications Engineer for automotivesemiconductors and another eight years in various Microcontrollermarketing roles. Don’s responsibilities included tactical and strategicmarketing for 8- and 16-bit microcontrollers. He earned his B.S.E.E.degree from Lawrence Technological University (Southfield, MI) in 1989.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.