Image

Smart Peripherals Make Low-Power IoT Possible

Sept. 18, 2015
Many IoT applications demand low-power solutions to provide long product lifetimes. Intelligent and linked peripherals are one way to make this work.

Download this article in .PDF format
This file type includes high resolution graphics and schematics when applicable.

How do you extend battery life in the Internet of Things (IoT)? Turning off everything you can from the processor to peripherals is a good approach; since peripherals consume less power than the processor, it is a good idea to use them alone whenever possible.

This has led to more complex microcontrollers for IoT with more power modes. The advantage is lower power consumption, but the flip side is more complex applications. Peripheral controllers need to run without processor support, and cascading peripheral control can extend the complexity of the system to keep that every important CPU asleep.

Silicon Labs energyAware Profiler tracks power utilization, in addition to power modes and peripheral status.

The “smart peripheral” approach has many variants with different names, but the general idea is the same. For example, Renesas' RL78 has a “snooze mode” where the analog-to-digital converter (ADC) operates while the processor is asleep. An I2C slave or CAN controller can watch for an address before it captures incoming data and then wakes up the CPU.

In a sense, Cypress Semiconductor’s PSoC flexible family was out in front with configurable digital and analog peripherals. Part of the configuration is the ability to link peripherals together, so an ADC result could be dropped into a serial port to be sent to another device without the CPU being involved. The PSoC configurability is short of what an FPGA can do, but PSoC is significantly easier to configure. The company’s latest PSoC 4 BLE (Bluetooth Low Energy) can run the BLE radio while the CPU is asleep.

Microchip’s Configurable Logic Cell (CLC) highlights the more conventional approach to configurable  peripherals (see "Microcontroller Incorporates Programmable Logic"). A microcontroller may have one or more CLC blocks. Each block has a selectable set of inputs and outputs with limited logic capability so the output of one peripheral can be fed to another. As with the PSoC, linked peripherals can often handle simple algorithms faster than the CPU can programmatically.

STMicroelectronics' STM32 has “autonomous peripherals” that use a “peripheral interconnect matrix” to link peripherals together. Timers, DMAs, ADCs, and DACs can be linked together.

The trend towards more functionality and complexity is highlighted by Microchip’s PIC16F18877 family (see "More Intelligent Signal Processing Targets IoT"). It has a 10- ADC tied to a computational unit that can do accumulation and averaging. It can even do low-pass filter calculations in hardware. The CPU can sleep until a filtered result exceeds programmed limits.

Intelligent hardware is useful, but taking advantage of it is more than just programming the peripherals. Advanced power trace tools like Silicon Labs’ energyAware Profiler (see figure) typically track power usage, as well as active and sleeping device status. This information is more complex because the CPU and peripherals are often operating independently, including their individual power modes. Likewise, different devices need different amounts of power based on the work they are doing.

Part of the challenge for developers is understanding the ways in which different power modes interact with the CPU and peripherals as well as the power cost of using various configurations. The start-up time for the CPU from different modes will be an additional factor.

Even volatile memory comes into play, with some microcontrollers being able to preserve segments of memory while in various sleep modes. Of course, some microcontrollers—like Texas Instrument’s MSP-430—only contain FRAM that is a non-volatile memory, so it is not necessary to be as selective about what data to save between power modes (see "Q&A: TI’s Will Cooper Talks FRAM Memories").

Intelligent peripherals, distributed power management, and energy trace tools are here to stay. Developers can often get better battery life that is an order of magnitude or more of that available with basic CPU sleep modeF over the life of a product for many applications (and not just IoT applications). Doing so requires some research, because microcontroller and peripheral solutions that have this type of facility vary widely in functionality. Some combinations may be more suitable to an application than others.

Download this article in .PDF format
This file type includes high resolution graphics and schematics when applicable.
About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!