Steve Leibson Leibson's Laws and the Penalties for Breaking Them 2010-03-17T13:23:32Z WordPress http://low-powerdesign.com/sleibson/feed/atom/ sleibson321 http:// <![CDATA[Intel releases low-power, 40Gbyte SSD for $125]]> http://low-powerdesign.com/sleibson/?p=326 2010-03-17T13:23:32Z 2010-03-15T15:00:15Z Now it’s a trend. Last week, I wrote about the sub-$100, 2.5-inch, 32Gbyte SSD from OCZ. Now Intel makes low-cost SSDs a trend with the introduction of a $125 (when ordering 1000), 2.5-inch, 40Gbyte, “value” edition of its industry-leading X25 SSD, as reported by Computerworld’s Lucas Mearian. Intel’s new X25-V SSD employs a five-channel MLC NAND Flash controller and incorporates ten 4Gbyte MLC NAND flash chips resulting in sequential read and write speeds of 170MBytes/sec. and 35MBytes/sec, respectively. Compare that to the OCZ Onyx drives specs of 125Mbytes/sec and a write transfer rate of 75Mbytes/sec. However, it’s the power consumption that really differentiates these drives. Intel’s X25-V SSD dissipates 150mW (typical) in active mode and 75mW (typical) in idle mode compared to the OCZ Onyx drive’s power ratings of 1W active and 375mW idle. For embedded hardware designers paying close attention to every mW, that’s a huge difference. Intel’s X25-V SSD provides 25% more storage for about an eighth of the active power and about a quarter of the standby power.

]]>
0
sleibson321 http:// <![CDATA[Redwood Systems unstealths Power over Ethernet lighting systems]]> http://low-powerdesign.com/sleibson/?p=323 2010-03-13T02:00:01Z 2010-03-13T01:59:01Z Today’s San Jose Business Journal carries a story about Redwood Systems, a startup networking company in Fremont, California with a difference. Redwood is a smart-power networking company. Its Ethernet switches supply communications and power to end nodes and those nodes will be lighting fixtures and sensors, at first. Other things related to building control will come later. The company is being very close-mouthed about its technology until May, when it plans a big rollout at the Lightfair show in Las Vegas, however coverage in several media brings enough information to take educated guesses about what’s happening.

First, the company was founded by experts in networking and lighting including Dave Leonard, the company’s CEO, who was formerly General Manager of Cisco’s Ethernet Switching Business Unit and Mark Covaro, the company’s CTO, who was formerly the principal power design engineer for Cisco’s Power-over-Ethernet (POE) platform. So you might guess that two standards, Ethernet and POE are involved here. And indeed, a March 8 article in the online version of LEDs Magazine says as much. Redwood Systems has developed network switches that supply power and networking over a single cable specifically for LED lighting systems. The LEDs Magazine article mentions 60V @ 350mA power, which roughly corresponds to standard POE specifications, so it’s not much of a stretch to assume that the company is planning to adopt standard POE protocols even though none of the company’s literature specifically mentions Ethernet or POE. Adopting these standards is certainly one way to assure luminaire manufacturers of a ready supply of controller chips for all of the LED lighting fixtures they’ll need to develop. Otherwise, the industry would need to develop yet another new set of power+communication chips and there are plenty of those already.

Next, the LEDs Magazine article mentions that Ethernet Category 5/6 cable runs of 100 to 200 feet can deliver adequate power to lighting fixtures (one per cable) and more expensive 18-gauge wiring is needed for longer runs to 100m. The Cat 5/6 cable specification again closely ties the Redwood Systems’ technology with Ethernet and POE. As mentioned in an earlier blog, the ability to run low-voltage wiring for light fixtures rather than electrician-installed, government-inspected Class 1 ac power cables greatly reduces installation costs, which helps to compensate for the increase in the cost of the dimmable LED lighting fixtures compared to incandescent, fluorescent, and gas-vapor lighting fixtures. One fixture vendor clearly involved appears to be LED vendor Cree.

Redwood Systems is targeting the huge market for green lighting solutions. According to a White Paper on the company’s Web site, commercial buildings will use approximately 400 billion kilowatt-hours (BkWh) of primary energy for interior illumination this year. Further, says the White Paper, fully 75% of that energy is wasted because the lighting is being applied where it’s not needed: during the day when ambient light is more than adequate or when only a little supplemental lighting is needed to fill in darker areas and at other times when there’s no one around so illumination isn’t required. Redwood Systems’ smart sensing technology can profile lighting fixtures and the area being illuminated and then control the associated lighting network to light only where needed and to provide only as much light as needed, thus substantially reducing power costs. The ceiling-mounted network sensor incorporates ambient and task light sensors, a 360-degree PIR motion sensor, an ambient temperature sensor, and current and voltage sensors for smart control of the associated lighting fixture. These sensors allow the system to self-calibrate lighting levels and, combined with the low-voltage power distribution, allow the installation and replacement of lighting fixtures into live lighting networks.

The irony of using dc to power lighting, a battle Thomas Edison lost more than 100 years ago to Westinghouse, isn’t lost on Redwood Systems. “Edison was right!” proclaims the company White Paper. Well maybe not then, but maybe now.

]]>
0
sleibson321 http:// <![CDATA[OCZ’s 32Gbyte Onyx SSD breaks $100 barrier, cuts power]]> http://low-powerdesign.com/sleibson/?p=318 2010-03-12T17:10:08Z 2010-03-12T17:10:08Z It was only a matter of time. Nobody doubts that solid-state disks (SSDs) will decline in price over time. The only questions are “How fast will prices fall?” and “How much storage will I get for my money”? PC component vendor OCZ contributed some answers to those questions yesterday by introducing a new low-cost line of “sub 100 dollar,” 32Gbyte, 2.5-inch, SATA II SSDs dubbed Onyx. The first in a planned series of low-cost SSDs, the 32Gbyte Onyx sports a read transfer rate of 125Mbytes/sec and a write transfer rate of 75Mbytes/sec. The Onyx drive is based on MLC (multi-level cell) NAND Flash devices, which might raise concerns about long-term reliability, but the drive sports an MTBF rating of 1.5 million hours and a 3-year warranty. As for power—the 32Gbyte Onyx drive consumes 1W while active and about a third of a Watt on standby. That’s roughly half the power required by a mechanical 2.5-inch HDD.

]]>
1
sleibson321 http:// <![CDATA[It’s Raining Low-Power Microcontrollers]]> http://low-powerdesign.com/sleibson/?p=309 2010-03-05T17:17:45Z 2010-03-05T16:53:18Z Wow. The Embedded World show in Nuremberg is really shaking the low-power microcontrollers out of the tree this year. Cases in point: announcements of new, low-power 8- and 32-bit microcontrollers from Microchip and Energy Micro (a Norwegian fabless microcontroller company) respectively. Microchip’s 8-bit parts are offered in packages ranging from a tiny 8-lead device to 64 leads. Energy Micro’s parts are available in 20-, 32-, and 64-lead packages.

Energy Micro’s EFM32 “Tiny Gecko” microcontrollers are the little brothers to the Gecko microcontrollers I wrote about last November when the company first announced them at the ARM Techcon 3 conference held in Santa Clara, California. Like their bigger brethren, the Tiny Gecko processors are based on the ARM Cortex-M3 processor core. They consume 180µA/MHz, have a deep-sleep current draw of 900nA, and an “off” mode where the part draws a mere 20nA. There are 13 new members of the Tiny Gecko family with Flash capacities of 8 to 32 Kbytes, RAM capacities of 2 or 4 Kbytes, and 24 or 56 multipurpose I/O pins. Other peripherals included in the Tiny Gecko microcontroller family are a low-energy UART, I2C serial interfaces, A/D and D/A converters, and several counters and timers. Unique to the Gecko microcontroller and continued in the Tiny Gecko line is what Energy Micro calls the “peripheral reflex system,” which allows peripherals to run and communicate autonomously while the CPU sleeps for a big cut in energy consumption. Architecture, instruction set, and peripherals are compatible between the Gecko and Tiny Gecko families, which is the surest way to building a following. Embedded systems designers need broad lines of compatible microcontrollers to accommodate the wide-ranging, diverse needs of embedded design.

To that end, Microchip’s offerings fill in the low-power end of its line. The PIC12F182X and PIC16F182X (PIC1XF182X) microcontrollers—which consume less than 50 µA/MHz and have a rated sleep current of 20nA at 1.8V (30nA at 3V)—extend Microchip’s “Enhanced Mid-range” 8-bit core product line into the realm of 8-pin devices and bring the total number of Enhanced 8-bit core PIC microcontrollers to 16, available in packages ranging from 8 to 64 pins. The family features a range of internal peripherals including Microchip’s mTouch capacitive touch-sensing technology and multiple communications peripherals. The PIC1XF182X microcontrollers include dual I2C/SPI interfaces, more PWM outputs with independent time bases, and a “Data Signal Modulator” that implements a variety of modulation schemes including frequency-shift, phase-shift, and on-off keying along with synchronization and polarity control. Microchip is targeting these general-purpose microcontrollers at a wide range of applications in the appliance (coffee makers, blenders, dishwashers); consumer (vacuum cleaners, printers, remote controls); and automotive markets (LED lighting, keyless entry, body electronics). Here’s a video demonstrating the various low-power operating modes of Microchip’s PIC16LF1823 microcontroller:

 

 

Microchip’s Enhanced Mid-range 8-bit architecture employs 14-bit instructions that improve performance as much as 50% relative to 8-bit instructions and 14 new instructions in the Enhanced architecture improve code-execution performance by as much as 40% over Microchip’s previous-generation 8-bit PIC16 MCUs. Significantly, the “enhanced” architecture and instructions extend the instruction address space from 8K to 32K instructions and RAM space from 446 bytes to >4 Kbytes.

Although these new microcontrollers from Energy Micro and Microchip both focus on extremely low-power embedded design and essentially cost a buck each, give or take, they’re really quite different. There’s a substantive difference in both ability and ease of programming between a 32-bit device and an “8-bit” device (I still find it hard to label a processor “8-bit” when it has 14-bit instructions, but Microchip’s parts do operate on 8-bit data) and there are many differences in the available on-chip peripheral devices. Your specific application will likely not need all of the available on-chip peripherals but there are some unique ones in there from both vendors that can make the difference between an easy design and a tough one. Microchip has been in the microcontroller business for decades, has built a substantial ecosystem around its devices, and has recruited a small army of loyal users familiar with its architectures. Energy Micro is the definite newcomer, first announcing products late in 2009. It is inheriting and leveraging the huge ecosystem of the ARM 32-bit architectural empire. You, fortunately, get nothing but tremendous advantage in the form of choice.

]]>
0
sleibson321 http:// <![CDATA[Power Over Ethernet: One Cable Defines an Entire Product Envelope]]> http://low-powerdesign.com/sleibson/?p=305 2010-03-08T16:17:53Z 2010-03-01T19:07:31Z Last week, I moderated a Power-Over-Ethernet (POE) session at the Ethernet Technology Summit held in San Jose. The idea of supplying high-speed communications and power over one standard cable that works anywhere in the world is certainly compelling because there are many difficulties in developing a power-delivery scheme that works worldwide thanks to differing wall-socket connectors and line voltages but that RJ45 Ethernet plug works anywhere. Consequently, POE makes a lot of sense for a large number of diverse, high-volume products including VOIP phones, thin clients, wireless access points, security cameras, and digital signage.

In an interesting twist on the concept, the amount of power delivered over a POE cable fairly well defines the power envelope of the end product. The initial 802.3af POE specification can deliver a maximum of 13W to the end product, after power losses in the cable are accounted for. The new 802.3at specification nearly doubles the available power to 25.5W, but that’s not even enough to run the laptop I’m using to write this blog post, so there’s clearly a limitation there. (However, as Microsemi’s Dan Feldman explained in his presentation, there’s also a way to get nearly 50W from a POE cable by using all four cable pairs to deliver power. Two of the pairs must then serve double duty by carrying both power and communications.)

In addition to the lack of a universal wall power plug, most of the devices that are candidates for POE adaptation are currently powered by wall warts, the ubiquitous black boxes that most of us plug as best we can into inexpensive power strips that are not designed to accommodate these “fat plugs.” In addition to their inconvenient form factor and the extra wiring they create—which often ends up creating a rat’s nest of wiring under your desk—wall warts bleed energy because they are not efficient. Because they’re generally inexpensive, not much engineering goes into the design of a wall wart. In fact, said Matthew Tyler of ON Semiconductor, the best you can get from a 50W wall wart is 84% efficiency. Wall warts delivering less power are even less efficient.

Consequently, one of POE’s advantages is the ability to develop high-quality, highly efficient power supplies for the network switches that deliver power to POE devices. (The POE realm refers to these switches as PSEs, power sourcing equipment, and calls the end devices PDs—powered devices.) Using POE topologies, says Tyler, you can drive efficiency up to 90%. In addition, says Akros Silicon’s Amit Gattani, the PSE becomes an intelligent controller that can manage the power supplied to the network’s PDs. For example, in a digital-signage application, the PSE can automatically power down the signs 15 minutes after a store closes and can power them back up 15 minutes before a store opens.

Reduced energy use saves companies money, so that’s one economic advantage enjoyed by POE. However there’s an even bigger economic advantage—one you might not expect. You need licensed electricians and permits to run ac power cables while you generally do not need either to run Category 5 Ethernet cable. Consequently, a system employing POE has lower installation costs compared to a system that employs a combination of ac power and wired Ethernet or even one that uses ac power and wireless Ethernet. There are real installation saving to be had for applications such as VOIP telephony, thin clients, and digital signage.

There is far more subtlety in the design of POE equipment than I’ve described here. All three of the companies listed above have developed expertise in the design of POE equipment and are willing to share that expertise with you.

]]>
0
sleibson321 http:// <![CDATA[Designing Low-Power Systems with FPGAs, Part 2]]> http://low-powerdesign.com/sleibson/?p=298 2010-02-01T17:37:13Z 2010-02-01T17:34:51Z Literally within an hour of posting my last blog entry on designing low-power systems with FPGAs, Altera’s marketing engine issued a related email and dropped it into my inbox. Altera’s email pre-announces the company’s upcoming FPGAs based on 28nm lithography. The email included the following marketing graph (with no scale) to explain the advantages of the smaller geometries for FPGA manufacture.

Altera 28nm devices

The first set of bars in the graph set the baseline using Altera’s 40nm devices as a reference. The next set of bars show that the feature shrink alone improves FPGA gate density by 25% and power consumption by about 12.5%. (Note: That’s my eyeball talking, not Altera’s official numbers.)

The next set of bars shows what happens incrementally when Altera takes some major logic blocks and hard-codes them. Suddenly, gate density doubles and power consumption drops by 40% compared to 40nm FPGA.

The last set of bars shows what happens when you combine the lithography shrink and hard-coded IP. Suddenly you’re getting 4x the gate density at a mere 25% of the power consumption compared to 40nm devices. (Note: I’m not sure what suddenly happened to the transceiver count, that third bar in the group, which had been constant until everything got combined in the last set. My guess is that the marketing artist who drew the graph got overzealous, cut everything 75% for visual consistency, and the proofreaders missed it. I think the number of transceivers is supposed to stay constant, based on the first three sets of bars in the graph.)

Two things to note here. First, you get a lot of bang out of hard-coded IP. Coincidentally, MIPS announced that Altera had licensed the MIPS32 architecture back in October, 2008 but Altera was mum on the subject back then. RISC processor cores make lousy targets for programmable FPGA fabrics, largely because of the routing congestion around their large register files, so processor core IP is one of the IP types that really should be hard-coded onto an FPGA. Although both Altera and Xilinx did not have much success with their first-generation FPGAs that incorporated hard-coded processor cores, that doesn’t mean they’re not going to try again and the MIPS announcement late last year telegraphed that move.

Want more proof? Last week at the Real Time Embedded Computing Conference held in Santa Clara, California, Xilinx’s Senior VP of Worldwide Marketing and Business Development Vin Ratford did more than telegraph his company’s intent to put processor cores back into FPGAs. He announced and elaborated on that intent. Xilinx will be adopting the ARM architecture and an FPGA-friendly version of ARM’s AMBA interconnect in future FPGA generations.

Make no mistake. Processors are coming to FPGAs for several reasons. First, a RISC processor core consumes between 25,000 and 50,000 gates. You can drop one of those puppies into an FPGA fabric and never see it. In essence, those transistors are “free.” That’s the nature of an FPGA’s programmable interconnect. Logic just sort of disappears.

Second, you can’t build a system without at least one processor these days. Which immediately leads to the third reason. If Xilinx and Altera truly wish to convert their “We’re taking over everything” or “All your chips are belong to us” attitudes, then the processor will just have to live on the FPGA silicon. Otherwise, the FPGA companies don’t get all of the chips. It’s as simple as that.

However, as both Altera and Xilinx discovered last time they tried this, dropping a processor core into an FPGA and making it usable is not just a matter of burying some gates into the FPGA fabric. Effective ways of connecting the processor to the programmable FPGA fabric must also exist and the software developers—who represent more than 90% of modern embedded development teams—must also be happy with the integration. You only make them happy with good development, profiling, and debugging tools.

And there’s the rub.

(It’s possible that Shakespeare’s Hamlet was indeed an embedded systems developer.)

]]>
0
sleibson321 http:// <![CDATA[Designing Low-Power Systems with FPGAs]]> http://low-powerdesign.com/sleibson/?p=284 2010-02-01T15:49:30Z 2010-02-01T15:47:51Z Actel has published a White Paper discussing low-power aspects of using FPGAs. It should not surprise you that the White Paper’s points and conclusions favor Actel’s Flash-based FPGAs over SRAM-based FPGAs from other vendors but that bias should not stop you from extracting some good meat from the document.

The first important point from the White Paper: designers considering the use of an FPGA have decided not to take the ASIC/SOC route for one of several reasons. Carefully tailored ASICs and SOCs should always deliver the lowest unit-cost system chip with the lowest power—but there’s always a cost. That cost involves a large and complex design process that requires a substantial team of trained silicon designers, a big stack of expensive ASIC design tools, expensive fabrication masks, and weeks or months of fabrication delay after tapeout. Contrast that with no up-front NRE costs for an FPGA, inexpensive FPGA design tools, and no need to be familiar with the arcane world of chip design when using an FPGA to implement a system. For system designs shipping in lower volumes, FPGAs are mighty attractive.

Once you decide to use an FPGA, you must then decide on the FPGA technology you’ll use (SRAM-based, Flash-based, or antifuse-based) and you must pick an FPGA vendor. Given that you’ve selected to take the FPGA route, there are five components of device power consumption for you to examine when evaluating different FPGA technologies:

  • Static power (leakage)
  • Dynamic power (frequency dependent)
  • Power-up (or inrush power)
  • Configuration power
  • Sleep-mode power

The total energy consumed by the FPGA (which is the most important design criteria for battery-powered designs) combines all five of these power components over time. It’s here that the Actel White Paper unsurprisingly starts to make the case for Actel’s Flash-based FPGAs, but again, the information provided in the White Paper is instructional.

Figure 1 shows a startup scenario for SRAM-based and Flash-based FPGAs. Power is applied to the system at T0 (time = 0) on the graph. As the input power supply voltage rises from zero volts, the SRAM-based FPGA draws a large inrush current as its SRAM configuration array powers on. Is the inrush current really as large for an SRAM-based FPGA as shown in Figure 1? Is it as small for a Flash-based FPGA as shown in Figure 1? Well, there’s no scale (making Figure 1 a marketing graph), so who’s to say? What you should get from this point is that you need to find out what that inrush current is for the FPGA’s you’re considering.

FPGA Startup Power Graph Fig 1

Figure 1: FPGA power consumption for power-up stage

Something else of interest is happening in Figure 1 and you might be tempted to misinterpret it. The blue line representing the Flash-based FPGA power consumption starts to ramp up well before the purple line representing the SRAM-based FPGA. At first glance, the lines make it appear that the Flash-based FPGA will consume more power over time than the SRAM-based FPGA. However, what the curves actually show is that the SRAM-based FPGA needs time to download configuration data into its configuration SRAM while the Flash-based FPGA starts to perform its system duties more quickly because there’s no configuration overhead.

Figure 2, another marketing graph, compares the power consumption of an SRAM-based FPGA with that of a Flash-based FPGA. Keep in mind that this is a marketing graph comparing two unspecified FPGAs which may or may not have similar gate counts performing some sort of unspecified workload. However, what’s shown that is useful is that you do need to consider the FPGA’s power consumption in these various operating phases and you need to weight the power use by the amount of time your system will spend in each phase to arrive at an estimate for battery life.

FPGA Power Graph Modes Fig 2

Figure 2: FPGA power consumption in various operating stages

One final note of interest in the Actel White Paper is that a Flash-based FPGA configuration cell is smaller than an SRAM-based configuration cell, so leakage currents are also smaller for Flash-based FPGAs. This point appears in the “Static” sections of Figure 2.

]]>
0
sleibson321 http:// <![CDATA[TI MSP430 Low-Power Microcontroller Demo Runs on Grapes]]> http://low-powerdesign.com/sleibson/?p=281 2010-01-04T20:00:21Z 2010-01-04T20:00:21Z This TI video has been on YouTube for more than a year, but it’s new to me and pretty interesting. With all of the new low-power microcontroller announcements lately, this video is an excellent reminder that there are lots of good choices for low-power processors out there. If you don’t want to run your design on grapes, the video demonstrates that strawberries, kiwis, and other fruits are just as powerful.

]]>
0
sleibson321 http:// <![CDATA[Touchless Slider is One Cool User Interface, Driven by Low-Power Microcontroller]]> http://low-powerdesign.com/sleibson/?p=276 2010-01-04T00:53:36Z 2010-01-04T00:48:57Z Silicon Labs has a diverse set of chips on offer and I’m really taken by the video demo of its new Si1120 Touchless Slider evaluation kit. The QuickSense Si1120 is an active infrared proximity sensor that you can use to build a variety of products with innovative, ultra-low power, touchless human interfaces. The chip itself incorporates an infrared LED driver, an infrared photodiode, an ambient light sensor, and control logic. The high-sensitivity infrared photodiode provides a single-pulse infrared proximity measurement allowing you to implement user interfaces using infrared light emitting diodes operating at unusually low power levels. The device is packaged in a tiny 3×3 mm clear surface-mount package and when it’s combined with a Silicon Labs low-power microcontroller, the Si1120 can be used for advanced motion and gesture recognition in products such as:

  • Touch screens
  • Instrumentation panels
  • Kiosks
  • Gaming systems
  • Industrial interface
  • Security
  • Smoke detectors
  • Residential HVAC
  • Home appliances
  • Toys
  • Keyboards
  • Fax/printer/scanner front panels

All this is just words. A video speaks volumes. So here’s the video:

The demonstration shows a user-interface slider board that incorporates an Si1120, two infrared LEDs, and eight visible LEDs. This board is controlled by Silicon Labs new ultra-low power C8051F900 microcontroller, which consumes as little as 160 μA/MHz in active mode and 10 nA in sleep mode with full memory retention. It will run on supply voltages as low as 0.9V. The microcontroller is based on an 8-bit, 25-MIPS 8051 controller core with a slew of peripheral devices including four timers, a UART, and a 12-bit A/D converter with a 15-channel analog multiplexer. The microcontroller is available with either 8 or 16 kbytes of on-chip flash and has 768 bytes of on-chip RAM.

Perhaps just as important, Silicon Labs supports this unique demonstration board with its QuickSense Studio development environment, a graphical environment wrapping multiple applications that guide user-interface developers through a development flow that includes graphical configuration wizards, firmware templates and performance monitoring tools. These programs interface with Silicon Labs’ QuickSense firmware API, which is a configurable firmware library that supports the development of many different interface types, from simple buttons to full gesture recognition. After configuring a project using the QuickSense Studio Configuration Wizard, the software simplifies the integration of human interface generates all the C code required for the selected functions.

I still find it hard to believe that a small 3×3 mm package can do all of this, but seeing is believing and the video makes a believer out of me. I’ve long been a user-interface enthusiast and the Silicon Labs Si1120 evaluation kit and demo board is simply one of the snazziest new user-interface components I’ve seen in quite a while. We’ve been watching lead characters use gestures to control sophisticated equipment for decades in science fiction movies and TV shows—most memorably perhaps in 2002’s Minority Report. Gesture interfaces, when combined with graphical displays are some of the most intuitive and most usable interfaces for all sorts of high-tech products and the Silicon Labs Si1120 looks to be one truly inexpensive way to implement a user interface that appears pretty darn sophisticated to an end user. Sophisticated user interfaces entice consumers to buy, so be sure to check out the new way to interact with your product. It’s clearly worth a few minutes of consideration.

]]>
0
sleibson321 http:// <![CDATA[7 Tricks from Microchip to Drop Power Consumption on any Microcontroller]]> http://low-powerdesign.com/sleibson/?p=271 2010-01-03T01:56:34Z 2010-01-03T01:56:34Z Microchip is an incredibly successful microcontroller vendor with a massive array of chips to choose from. The company has a series of low-power microcontrollers and refers to them as NanoWatt XLP (extremely low power) devices. In support of those devices, Microchip published a chapter on “Tips ‘n Tricks” to wring every nanoWatt of waste out of a design using their brand of microcontroller, but the first seven tricks will work with any vendor’s microcontroller, so these seven are well worth reviewing.

1. Switch Off Unneeded External Circuits and Control Duty Cycle

Almost all microcontrollers from all vendors have multiple similar-sounding low-power modes (sleepy, snoozy, droopy, drowsy, etc.) Sounds like the silicon version of the Seven Dwarfs, right? Well, all the low power modes in the world won’t help application if your application code doesn’t manage the power consumed by circuits that are external to the microcontroller. Microchip’s document uses lighting an LED as an example. Just a single lit LED is equivalent to running most of Microchip’s PIC microcontrollers at 5V and 20 MHz. When you design your microcontroller-based embedded system, always decide what physical modes or states it requires and make sure the microcontroller can cut power to external circuits when their function isn’t required.

For example, cut power to that boot EPROM after your circuit boots if the first thing the microcontroller does is download code from the EPROM to the microcontroller’s internal RAM. Alternatively, if you’ve got a high-resolution A/D converter outside of the microcontroller—because perhaps you needed more than the 12-bit resolution provided by the on-chip converter—be sure to include a transistor in the external converter’s Vcc line so that you can cut its power when it’s not needed.

2. Budget Your Power

Calculate the amount of charge used by each system mode by multiplying the current in mA by the amount of time spent in that mode during one loop of the application. Then average the sum of all the results in mA*sec over the entire length of the application loop to get the average operating current for all modes during one iteration of the application. Divide that result by the length of the application loop to get average operating current. Use that figure to help you size the battery needed by using the battery’s mAh rating and the number of days, weeks, or years you want the battery to last.

3. Do Something Smart with Port Pins

All microcontrollers have configurable ports that may serve as input, output, input/output, or analog input pins. Make sure you always configure all of the microcontroller’s pins to use the minimum amount of power.

4. Use High-Value Pull-up Resistors

If you use a pull-up resistor to keep an input high, then make sure to use a big resistor to minimize current consumption. Don’t just use a 2.2K or 4.7K resistor from habit or rule of thumb. Maybe you can use a 10K resistor. Maybe 100K or 1M. The bigger the resistor, the smaller the drain on your battery.

5. Reduce the Clock Speed and Operating Voltage to Minimums

Don’t run the microcontroller any faster than needed for the system design. Then set the operating voltage accordingly. Each clock cycle drives charge through the microcontroller and that charge comes straight from the battery. Fewer clocks per second means fewer charge packets to suck from the battery and fewer clock cycles per second also mean the operating voltage can be lower.

6. Disable the Microcontroller’s Internal Voltage Regulator and Get the Core Voltage Elsewhere

If your selected microcontroller operates the processor core on a separate voltage from the peripheral circuitry, chances are you can disable the internal voltage regulator and supply that core voltage externally. The advantage here is that you can then set the core operating voltage exactly where you need it, not where the internal regulator wants it.

7. Use Schottky Diodes to Switch Between a Power Supply and Battery

If your system can be powered from either a mains-powered supply or a battery, you can put a diode in series with each supply and the diodes will automatically supply power from the source with the highest voltage. Use Schottky diodes to minimize power loss through the diode.

If you’d like to peruse the full text of the Microchip document, you’ll find it here.

]]>
0