How to Maximize Energy Efficiency with EFM32 Gecko MCUs?
You might not think about it, but, on average, you utilize hundreds of microcontrollers (MCU) in a day. Everything from your toothbrush to your car has one or more MCUs inside them. And the number of MCUs you rely on is growing with the rapid adoption of the Internet of Things (IoT) movement.
So, what is this MCU inside everything? Like the name implies, a microcontroller is a small chip that controls something. It does this by processing a recipe, known as the program, which someone has written specifcally for a product and stored inside the memory of the MCU. Because it is the program inside that decides how the MCU controls a product, one microcontroller can be used in two completely different products. We will discuss the reason for this later.
Historically, users wanted MCUs because they could process data and solve problems faster than a human could. MCUs also help make products more convenient and consistent in behavior. The microcontroller speed or frequency indicates how fast data is processed and problems are solved. Speed is generally not a big problem anymore. The challenge now is that the MCU needs to be able to solve more complex problems while it is being put on a power diet.
Let’s face it. We all get a little worried and start looking for power outlets when our computer or smart phone battery gets close to zero. Imagine if all your battery-powered products required daily charging. To prevent this, we need to put our devices on a budget. They need to become energy effcient.
In this paper, we’ll discuss how to use the SILICON LABS’ 32- bit microcontroller family (EFM32 Gecko) to maximize energy effciency in your embedded applications.
What is inside embedded applications?
At a high level, all embedded applications are strikingly similar. Everything from industrial products, like water meters and security sensors, to personal items, including smart wearables, are built from a number of components. These components are connected to each other to solve specifc tasks. A typical application includes many building blocks. Here is a list of categories and some common components and functions:
Power management
Battery, regulators, energy harvesting, energy storage
Microcontroller
The brain
MCU support
Extra MCUs/co-processors, memories, external RTCs
Sensors/input
PIR, light, HRM, IMU, GPS, rotation count, capacitive touch Actuators/output Display, LED, audio, motor control
Wired connectivity
USB, UART, I2C, Ethernet, CAN, PLC
Wireless connectivity
Radio/RF, Bluetooth Smart, ZigBee, Thread, Proprietary, NFC
All of these components consume energy from your power source. So when building an energy-effcient system, logic dictates that you should choose components within your budget that are inherently energy effcient. This is sometimes diffcult because many of the items listed above are highly integrated and combine functionalities. For example, in Silicon Labs Bluetooth Smart MCU, the Blue Gecko, both the Bluetooth radio device and the MCU are combined, so the user only needs one device.
Almost always on?
Besides integration, you should also understand the components’ various modes of operation. Most of them have an on mode and an off mode, but there may also be intermediate modes. Let’s explore two analog voltage sensors for a moment.
Both the Analog-to-Digital Converter (ADC) and Analog Comparator (ACMP), which are built in to the EFM32 products, can be used to monitor analog voltages in a system. Sensors in a system often produce analog voltages as their sensor output.
The ADC is highly accurate and fast, with a 12-bit accuracy and up to 1 million samples per second. It also has a fast startup time. The ADC is a typical on/off peripheral, even though sample speed and accuracy can be varied.
The ACMP continuously compares the analog voltage against a pre-set threshold instead of taking individual samples. Startup time is not as important here because it is always running, and accuracy can be traded for current consumption. This allows it to monitor analog voltages all the way down to 100 nA of current consumption.
Which one of the ACMP or ADC is better depends solely on the needs of your application.
Energy Sources
There are many types of energy sources for embedded applications:
Wired Power
110V – 240V AC, 12V DC, energy “leeching”
Batteries Coin
cell, Li-Poly, Li-Ion, alkaline, Super-cap
Energy harvesting
Light, vibration, thermal, RF
Wireless Power
Light, magnetic, RF
A single application might use multiple power sources, but common across these energy sources, beyond the wired option, is that minimizing current consumption is key. For example, if you’re building a wired home automation system, you may include a backup battery in case there is a power outage. This helps ensure that not all functionality is lost in an emergency.
The following are topics to think about when choosing an energy source for your application:
Mobility - Can the device move? Does it need to be near a socket?
Lifetime - For how long can the device live before it needs maintenance?
Cost - How expensive is this energy source?
Form factor - What size restricitons does my product have?
Designing with batteries
Let’s say you’re a designer and the specifcation states that the product or application needs to last for at least three years. You’ve decided to use batteries as the energy source. Now you need to make a tradeoff between lifetime, form factor, and cost.
Let’s consider these two coin cell options:
Option A
CR1616, which comes in a 16 mm x 1.6 mm package with 55 mAh capacity.
Option B
Common CR2032, which has 20 mm x 3.2 mm dimensions with 210 mAh of capacity.
With the CR2032, the average current consumption of your application needs to stay below 8μA in order to get the desired lifetime of three years, based on a very simple model of the battery. If you go with the CR1616, the application must consume less than 2μA to achieve the same lifetime. By making your application consume less than 2μA, you go for the smaller battery, and thus get to a smaller form factor for the product.
Surprisingly, the smaller battery in this case actually has a higher cost than the larger one, so the current consumption reduction does not give a cost improvement when switching from the larger battery to the smaller. However, imagine switching from two of the CR2032 batteries to a single CR2032. That gives both a form factor and a cost improvement. Whether a single smaller battery has lower cost than a bigger one can depend on multiple factors, including product demand and availability.
If your application is a wearable or other rechargable accessory, you may want to bypass coin cell altogether and explore the lithium polymer batteries.
Designing with energy harvesting
In general, energy harvesting looks like a very attractive solution. You just use the surroundings to generate the energy you need. But, as with batteries, energy harvesting has tradeoffs to consider. Is the power source reliable? Is your power converter effcient enough? Let’s consider the sun, which is a pretty reliable and sustainable power source. Solar harvesting panels must be in a bright location, and they need to have a given surface area. They might be able to generate 10 mW/cm^2 under direct sunlight, but can drop to 10 μW/cm^2 when indoors. That is 1000 times less energy to play with! To support nighttime operation, a rechargeable battery is needed as well, which increases cost and penalizes form factor.
Designing with wireless power
Wireless power delivery, also known as remote power delivery, is similar to energy harvesting in that your application picks up energy from its surroundings. The difference is that in this case, energy is not assumed to be present, in the form of light, vibration, or other natural energy source. A power transmitter generates the energy the application is supposed to pick up.
The challenges with remote power delivery are somewhat similar to those of energy harvesting. For inductive power delivery, the transmitter is generating an alternating magnetic feld, and the receiver uses a coil to capture the energy. In this scenario, the maximum distance between the transmitter and the receiver, and also the amount of power that can be delivered, are based on the size of the coil. This puts constraints on form factor and fexibility. Qi and A4WP are two emerging standards for inductive wireless charging, which is currently being used in a number of smart phones and wearables. These require the receiver and transmitter to be in very close proximity, and allow very little mobility. They are thus really only suitable for applications such as wireless charging.
Another method of remote power delivery is based on radio frequencies. By outputting a strong radio signal, and using beamforming techniques, a transmitter can send a signal carrying suffcient energy to a receiving antenna. Challenges with this technology currently include transmission effciency.
Deciding which energy source to choose for an application depends on the properties of the application itself. The rest of this discussion will dig into applications that operate from constrained energy sources.
Energy Efficiency – The Big Picture
Sensors are the eyes and ears of an application. Table 1 below contains a list of sample sensors and their basic specifcations.
Table 1 - Example component properties. Note that values will vary greatly depending on the chosen components.
When working with a sensor in an application, the
straightforward approach is to leave the sensor on all the time,
as shown in case A of Figure 1. With this approach, the MCU
can read the voltage across the variable resistor at any time, and
calculate the current temperature based on the voltage.
This option is the easiest way to control the sensor, but it’s also the method that consumes the most energy. Now, 33 µA might not seem like much, but when a solar cell that small only produces 10 μW of current, we quickly see the problem. A better setup is shown in case B of Figure 1, where the MCU is able to control the power of the sensor directly, turning it on only when needed.
Figure 1 - Two ways of powering a sensor, in this case a variable resistor, which could be a thermistor. In (A), current is always fowing through the resistors. (B) is much more efcient, only drawing current whenever a measurement is needed. The boxes in the drawing are MCU pins that can be driven high or low by the MCU to control the circuit.
For an application that only needs to measure temperature once per second, the current consumption of the thermistor is now reduced to 0.165 nA. Assuming that you keep it on for 5 µs in order to sample it once every second, this approach gives you a 200,000x improvement in current consumption.
When controlling the supply of external components through a pin on the MCU, you have to clearly defne the default state of these circuits. On EFM32 products, all pins are foating when the device comes out of reset, which, in this scenario, is not an issue. For a device with default-low IO, you want to connect the sensor as shown in case B of Figure 1. But if the IO comes out as default-high, you should connect the other end of the resistor divider to VDD (supply) instead of ground. This will prevent current consumption through the sensor during MCU reset.
An application can consist of a number of components, and you have to make a decision on how to control each component in the most effcient way. Note that designing for energy effciency actually has a cost. In the thermistor example above, an extra MCU pin is required to control the power to the thermistor. Additional attention to effciency also has to be given during software development.
Designing for energy effciency can in some ways be harder than designing a system that does not care about effciency. But in energy-constrained systems, it is well worth the investment.
What about the MCU?
We discussed that the application components must be dutycycled in order to maximize effciency. The same is true for the MCU itself. Because they are more sophisticated components, MCUs almost always have more than just an on/off button. MCUs have multiple energy modes, where each mode allows a set of capabilities with an associated current consumption overhead.
Table 2 shows an overview of the energy modes of the EFM32 MCUs. MCU energy modes will vary somewhat between MCU
Table 2 - Overview of energy modes on EFM32 Gecko MCUs.
As seen in Table 2, the Run mode (EM0) has all functionality available. As the MCU goes to deeper energy modes, less functionality is available, but drastically lower current consumption can result. There are two key takeaways from this table:
The CPU is only available in the highest energy mode
In order to reap maximum benefts, the CPU must be turned off whenever it is not needed. The system must aim to sleep as much as possible.
The system should sleep as deeply as possible whenever it’s sleeping
With deeper sleep, less functionality is available. Thus, the right modes have to be chosen to allow the system to sleep as much and as deeply as possible.
By requiring the CPU to be off as much as possible in order to save energy, the CPU tasks must be offoaded to the hardware in the MCU. Instead of being in a paradigm where software running on the CPU does everything, software development should focus on setting up hardware to do the heavy lifting and only intervene when hardware needs assistance. In other words, hardware should be the main driver of the application.
This takes the system to an event-driven architecture, allowing massive energy savings. Table 3 shows the sample code of an application that measures temperature using a thermistor, enabling a fan when temperature crosses a determined threshold. This example code assumes that the MCU has hardware that allows it to autonomously monitor the sensor and give an interrupt whenever the sensor crosses a threshold. In the “traditional” approach, this autonomous hardware is used, while in the “event-driven” approach, it is fully leveraged.
Table 3 - Traditional vs. event-driven implementation.
As you can see in the example, the event-driven code is more complex than the traditional code, but it has some signifcant advantages:
Massive energy savings
A system using the traditional approach running at 10 MHz would consume more than 1.1 mA, while a system using the event-driven approach would consume as little as ~0.9 – 1.3 μA, depending on the sensor and sample rate. This is almost a three-orders-of-magnitude difference. More importantly, it’s the difference between a day and multiple years of battery life.
Multi-tasking
With the traditional approach, the CPU does everything, and can only manage a limited number of functions. With the event-driven approach, the CPU is freed up because hardware does the bulk of the work. With this method, an MCU can drive sophisticated applications.
On an MCU with minimal fash and RAM resources, this is how you should write code. With this kind of multi-tasking you can get the absolute most out of the hardware in the MCU, both in terms of performance and energy savings. We call this “coding down to the metal.”
Spending some of the MCU resources on an embedded operating system provides a level of abstraction that makes building sophisticated, event-driven applications easier, but potentially less effcient. For applications running on MCUs with 512 KB fash or more, the memory overhead can be negligible, making this an easy choice. On MCUs with 32 KB fash or less, there are still operating systems that can do the job, but the percentage of the MCU resources used by the OS increases drastically. A minimal confguration of FreeRTOS requires between 5 KB and 10 KB fash and a minimal amount of RAM.
For complex applications, an operating system might actually make the system more effcient than coding to the metal. This approach gives software developers a framework for how to write code to use energy modes in the most effcient way.
A couple of operating systems or ecosystems to check out are listed below. They all provide tick-less sleep modes, meaning that unlike normal PC operating systems that always waste energy by waking up every 1 ms or 10 ms, these operating systems only wake up when they are needed:
- ARM mbed OS
- FreeRTOS
- RTX
Doing it in your sleep
In the previous section, we talked about the CPU letting hardware do the bulk of the work. While the CPU is sleeping and no software is running, the MCU should autonomously carry out the CPU’s orders. There are two things to focus on here:
- Sleep as deeply as possible
- Wake up as seldom as possible
Looking back at the thermistor example, there are multiple ways of achieving this with varying amounts of sleep.
The traditional way
CPU uses ADC to continuously sample the thermistor.
This approach forces the CPU to be awake at all times, causing the highest current consumption. A traditional implementation of this, run on the EFM32 Wonder Gecko, results in the following current consumptions:
a. Wonder Gecko, sampling ADC @ 1 Hz: 4.18 mA
b. Wonder Gecko, sampling ADC @ 128 Hz: 4.18 mA
Figure 2 shows the system current consumption using the Advanced Energy Monitor (AEM) capability offered by Simplicity Studio, a combination of free tools provided by Silicon Labs. The current consumption is measured in real-time using hardware available on all EFM32 development kits. In this scenario, current consumption is dominated by the CPU, and very little variation can be seen from the ADC activity.
Figure 2 - Wonder Gecko traditional implementation sampling ADC @ 128 Hz.
2. Improved
RTC wakes up the CPU periodically. On wakeup, the CPU uses the ADC to sample the thermistor.
With the improved method, the CPU confgures the RTC to provide a periodic wakeup. Since the RTC works all the way down to EM2 Deep Sleep, the MCU consumes only 0.9-1.4 μA while waiting for wakeup. On period wakeup, the CPU uses the ADC to take a sample, then potentially performs an action based on the result before going back to sleep. With this approach, the system can see a signifcant improvement in energy consumption.
This scenario also brings up the notion of response time. The longer we can wait between samples, the more energy we can save. In a house where temperature changes slowly, the system can wake up to take a sample every 10 seconds. However, this also causes a 10-second reaction time to any temperature change event. In most systems, reaction time is a critical component and will vary with sensor type. Required samplerate depends on what is being measured. For a heart-rate measurement system, one might want to measure the system 25 times a second. For a rotation-based water meter, up to a thousand times a second.
Power gating also becomes critical in this scenario. Since we are now approaching system current consumptions around 1 μA, the 33 μA, current consumption of the thermistor becomes dominant unless the CPU makes sure the thermistor is powered only when it is being sampled.
Figure 3 shows the current consumption over time for the 1 Hz scenario. The Wonder Gecko consumes 0.95 μA in deep sleep mode, and the periodic wakeups to EM0 can clearly be seen. Note that the current consumption includes excitation of the external thermistor.
Figure 3 - Wonder Gecko, EM2 interrupt driven, sampling ADC @ 1 Hz.
Using this approach, an application can get to the following current consumptions, which is considerably better than the frst approach.
a. Wonder Gecko, sampling ADC @ 1 Hz: 1.30 μA
b. Wonder Gecko, sampling ADC @ 16 Hz: 2.43 μA
c. Wonder Gecko, sampling ADC @ 128 Hz: 10.46 μA
d. Wonder Gecko, sampling ADC @ 1024 Hz: 72.48 μA
3. Optimal
MCU autonomously monitors the thermistor, only waking the CPU when the threshold is crossed.
If an MCU supports autonomous external sensor monitoring while also duty-cycling them, this is by far the most effcient option. Low Energy Sense (LESENSE), available on devices in the EFM32 portfolio, is able to autonomously monitor up to 16 external resistive, capacitive, or inductive sensors, while also properly turning off the sensor when not in use.
With this approach, the CPU does not wake up around every sample, as in the second option. It wakes up only when a sample is outside of a set threshold. This concept is demonstrated in Figure 4, where the system is able to stay in EM2 continuously.
Figure 4 - Wonder Gecko, Wonder Gecko, LESENSE, sampling @ 1 Hz.
For a very slowly sampled system, using the ADC as in the second option is better because LESENSE uses some current to operate. But for higher frequency systems, LESENSE defnitely has a beneft. It reduces the current consumption by more than 10X in the system sampled at 1024 Hz:
a. Wonder Gecko, LESENSE @ 1 Hz: 1.49 μA
b. Wonder Gecko, LESENSE @ 16 Hz: 1.57 μA
c. Wonder Gecko, LESENSE @ 128 Hz: 2.06 μA
d. Wonder Gecko, LESENSE @ 1024 Hz: 5.92 μA
LESENSE can also simplify software development by treating measurements as its own autonomous system, freeing up the ADC for other tasks.
Do even more while sleeping
The thermistor example shows one method of operating an external sensor in a very energy effcient way, assuming that the MCU has the hardware to support it.
There are also other ways of solving the thermistor problem. On the EFM32 Gemstone products, as well as the Blue Gecko, based on EFM32 Gecko technology, the ADC can now operate while the system is in deep sleep mode (EM2). The “improved” approach above, where the RTC/RTCC woke up the CPU to take an ADC sample, can now be changed to making the RTCC automatically trigger the ADC through the Peripheral Refex System (PRS). An ADC with these products also has the ability to evaluate the ADC result and only give the CPU an interrupt if the sample is outside or inside given thresholds.
It is important to also duty-cycle the thermistor properly. Where LESENSE does this for you automatically, the ADC does not, and it has to be controlled either via PRS or from the CPU. It makes sense to turn the thermistor on in suffcient time before sampling, and off immediately after. Let us see what happens if we try to use an RTCC event through PRS to enable and disable the thermistor. This scenario is shown in Figure 5.
Figure 5 - ADC sample triggered by RTCC event through PRS.
As the fgure shows, an RTCC event is longer than the ADC takes to warm up and sample the thermistor. Based on a 32 kHz clock, the RTCC event keeps the thermistor on for 22 µs longer than necessary. You can cut this time down by using some PRS tricks. For example, the ADC produces a short PRS output whenever it is done. Using the RTC event, PRS signal, and the ADC to complete the PRS pulse, it’s possible to create a signal that goes high on the RTC trigger and low when the ADC is complete. This signal can automatically enable the thermistor in the system.
The conceptual circuit for this example is shown in Figure 6. Initially, the latch output Q is low because the RTCC event output and the ADC conversion done output are low. Whenever the RTCC event now goes high, the external sensor is enabled and the ADC starts taking a sample. Once the ADC is done, the conversion done signal goes high, setting the latch output Q high, which forces the external sensor off. When the RTCC event signal goes low again, the latch is reset, making the system ready for the next event.
Figure 6 - Conceptual circuit, which starts external sensor excitation on RTCC trigger, and ends excitation when ADC sample has been taken.
The circuit shown in Figure 6 can easily be implemented on an EFM32 Gemstone MCU using the Peripheral Refex System (PRS), which contains logic elements that can be connected together in various ways. Figure 7 shows what this implementation would look like using six of the available PRS channels. Table 4 shows how the 6 PRS channels are confgured to enable this functionality.
Figure 7 - PRS implementation of circuit performing optimal excitation of external sensor.
Table 4 - PRS confguration to implement circuit performing optimal excitation of external sensor.
Using the ADC autonomously running in EM2, with PRS for optimal excitation of the thermistor, as we have shown here, shows a fourth way of implementing monitoring of an external sensor. To monitor it autonomously, the ADC was set to test whether the thermistor value was within a certain window, and only notify the CPU if the value happened to be outside.
The results are on par with the results using LESENSE in the previous section, but compared to LESENSE, which uses a comparator for detection, this example employs a full 12-bit ADC, and thus higher monitoring accuracy. Current consumption results are shown below, and Figure 8 shows the 128 Hz scenario in detail.
a. Pearl Gecko, sampling ADC in EM2 @ 1 Hz: 2.22 μA
b. Pearl Gecko, sampling ADC in EM2 @ 16 Hz: 2.30 μA
c. Pearl Gecko, sampling ADC in EM2 @ 128 Hz: 2.75 μA
d. Pearl Gecko, sampling ADC in EM2 @ 1024 Hz: 6.51 μA
Figure 8 - Pearl Gecko, EM2 autonomous, sampling ADC @ 128 Hz
What we have built here is an autonomous system customized to do a specifc task in hardware, allowing the CPU to sleep as much as possible. The above is simply an example, and many other confgurations are possible. Low power applications like this are enabled on the EFM32 platform because of a wide range of low energy mode functionality in the MCU itself:
- Analog functions (ADC, DAC, ACMP, and IDAC) operate down to EM3
- Most communication interfaces have modes allowing them to operate down to EM2/EM3
- Low power timers have broad amounts of functionality: LETIMER, RTC, and RTCC
- Specialty hardware (e.g. PCNT and LESENSE) allows complex operations that would normally require the CPU
As an example, the pulse counter (PCNT) can monitor higher frequency processes all the way down to EM3:
- Monitor absolute rotation or translation through an integrated quadrature decoder:
a. Wake up or notify the PRS on a direction change, absolute rotation, or absolute position
- Monitor signal frequencies:
a. Wake up or notify the PRS on a frequency change
- Monitor event counts
a. Number of ADC samples taken, PWM pulses generated, etc., through PRS
b. Number of excitations from external sensor or other device through IO
Optimizing the system
Sleep planning
The discussion so far has considered a system dealing with a single function and a single source of wakeups. Imagine a system with ten different components that need to be managed. Some can be controlled fully autonomously, like the thermistor above. For others, the CPU might have to wake up periodically in order to take control.
If care is not taken with such a system, it can end up in a situation like the one shown in case A of Figure 9, with many more wakeups than necessary, resulting in a less effcient system. The fgure shows two deterministic processes, which execute periodically, and one sensor event, fring nondeterministically. In case A, the processes arbitrarily wake up to perform their tasks, which results in a total of 11 wakeups, wasting a signifcant amount of energy due to the time it takes to transition between sleep modes.
To improve on case A, you can do sleep planning. For all deterministic processes, i.e. processes we know of beforehand that are going to require a wakeup, care should be taken to align the wakeups as much as the system allows, minimizing the number of wakeups.
In case B, the wakeups by Process 2 have been aligned with the wakeups from Process 1, resulting in a total of 6 wakeups during the same period, a signifcant reduction from case A.
Figure 9 - Sleep Planning. The black segments show time wasted due to wake-up time from deep sleep modes.
Sleep planning
As we have discussed, minimizing awake time is important. In many cases, software running on the CPU is waiting for something to happen. If the CPU is set to wait for a fxed time, the best approach is to use a hardware timer. Hardware timers come in a range of types with varying functionality, current consumption, and accuracy.
On an EFM32 system, if the CPU needs to sleep for a short number of clock cycles while maintaining full MCU operation, the software should use the TIMER peripheral and place the system in EM1 while waiting. This method will signifcantly reduce current consumption, and wakeup is instantaneous.
If only EM2-EM4 level functionality is necessary while waiting and the wait-time is more than 31 µs, the period of a 32768 Hz oscillator, the low-frequency timers LETIMER, RTC, or RTCC can be used and the system can go to EM2 for maximum effciency. If high accuracy is required, a TIMER can be synchronized to the low-frequency timer upon wakeup through PRS to time out the last clock cycles with the accurate high-frequency TIMER.
If wait time is relatively long, i.e. multiple milliseconds, and does not have to be accurate, and the system only needs EM4 functionality while sleeping, sleep can be done using the CRYOTIMER, running on the 1 kHz ULFRCO oscillator for extremely low sleep current in the 100 nA range. Note that wakeup from EM4 costs more energy than wakeup from EM2, because the wakeup is through a reset, so even though EM4 could be used for sleeping for 5 ms, it might not be the most energy effcient. With sleep times of minutes or more, EM4 starts becoming extremely effcient.
Note that on EFM32 devices, a write to the low-frequency timers (LETIMER, RTC, or RTCC) is instantaneous, compared to other MCUs, where a write takes multiple low-frequency cycles. This means that on EFM32, if the RTC value is currently 99, the MCU can decide to go to sleep and wake up on value 100. For most other systems, the earliest RTC value possible to wake up on would be 102, making it diffcult to sleep if the wait period is less than 100 µs. 、
CPU efficiency
No matter how much you try to optimize for sleep, the CPU needs to execute code now and then. This can include everything from regular application logic to network stacks and signal processing algorithms. The CPU is an important part of the MCU.
Here are the top fve items to ensure the CPU runs code effciently:
Let the compiler optimize your code.
This tip might seem obvious, but make sure the code is compiled with full optimizations enabled. If the compiler is able to do link-time optimization, use this as well. Code compiled for debugging is ineffcient on many compilers, one reason being that values are fetched from memory, calculated and then written back on every operation. Without optimization, it is also not fully utilizing the capabilities of the CPU, which also slows down execution.
Target the right architecture.
Choose the right CPU for your application and ensure that the compiler creates code optimized for that correct device. For example, Cortex M4 is excellent for bigger applications that contain number crunching. Cortex M3 does not have all the DSP capabilities and no foating point, compared to the Cortex M4, but is still relatively high performance. Cortex M0+ is the most effcient of the bunch as long as the amount of signal processing is at a minimum. It is excellent for stacks and control logic.
Table 5 - Simplifed overview of ARM Cortex M CPUs
3. Operate at the right frequency.
Even though lower frequencies give lower current consumption, it is generally better to fnish the job quickly to be able to go to sleep; in other words, a higher frequency might give better energy effciency. If the different parts of the system have different needs (i.e. USART needs 4 MHz, but the CPU needs 8 MHz), use pre-scalers for clock domains to make the frequency selection optimal.
4. Use available hardware accelerators.
Some operations perform more effciently in hardware than on a CPU. One example is cryptography. The CRYPTO peripheral available on the EFM32 Gemstone devices can complete operations more than 10 times faster and much more effciently than running them on the CPU. Another example is the alpha blending hardware on some of the EFM32 products. This hardware makes graphics compositing for external displays more effcient.
5. And, of course, sleep whenever possible.
Hardware efficiency
So far, we’ve focused on how the MCU is inherently effcient and can control the application in an effcient manner. The picture is almost complete. The remaining details must center on how the hardware is built, as well as how energy is stored and supplied to the system.
While this topic is too broad to delve deeply into here, one important point is operating voltage. In general, the lower voltage supplied to a component, the more effcient the component is, down to the functional limit of the device. A lot of traditional components have operating voltages around 3 V, but I’m seeing a shift toward components running at a nominal 1.8 V.
This improvement is great for energy effciency; however, a lot of energy sources, including coin cell batteries and lithium polymer batteries, output much higher voltages than this. In order to regulate the voltage down to the target voltage of the system in the most effcient way possible, you should use an effcient switched-mode buck converter (DCDC).
Some of the EFM32 Gemstone devices include a built-in DC-DC converter, able to supply both the MCU and external components with a total of up to 200 mA. This allows you to build a highly energy-effcient system without adding external converters.
For example, a 3 V lithium coin cell battery would have a mean voltage output of around 2.8 V. Using an LDO to regulate down to 1.8 V results in effciency of around 64 percent. However a switching DC buck converter could regulate the same 1.8 V supply with effciency of over 80 percent, which would extend the battery life by more than 25 percent, perhaps turning a four-year battery life into fve years. Note that there is a small additional cost associated with using even an integrated switching converter, as it requires an external inductor and some capacitors to be added to the PCB. In most applications where low power is important, this is a small price to pay for a signifcant increase in energy effciency.
Conclusion
At the heart of most embedded products lives a microcontroller with power sources that may be limited to small coin sized batteries. When focusing on using available power more effciently, designers will be able to create energy-friendly products and applications that are smaller, have longer battery life and cost less. These applications can then also use alternative and limited energy sources, such as energy harvesting.
In order to achieve this, designers must know how to leverage all the low power capabilities of the MCU that is controlling the application. A product should include hardware that monitors, controls and operates autonomously. This allows the system to be in deep sleep modes for the majority of its lifetime. Attention must be paid to the overall power architecture of the system, while leveraging the MCU to manage as much of it as possible. Whenever software needs to intervene, it should be swift and effcient.
MCUs and RF SoCs from Silicon Labs provide a unique combination of energy effciency and fexibility. They are built for autonomous operation in deep sleep modes and provide the needed energy effcient for sleepy systems. Highly effcient active modes allow you to use the CPU as well, while staying inside your application’s power budget. Ultimately, this allows smaller batteries or energy harvesting components, giving you the right combination of form factor, cost, and device availability
- |
- +1 赞 0
- 收藏
- 评论 0
本文由闯天涯转载自Silicon Labs,原文标题为:Manage the IoT on an Energy Budget,本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。
相关推荐
Silicon Labs(芯科科技)产品选型指南
目录- 8-bit Microcontrollers 32-bit Microcontrollers High-performance analog products wireless ICs, SoCs and modules Sensors Interface chip Timing products Isolation products Audio products Video products Voice products Data products Development Tools
型号- C8051T604-GS,SI8420AD-A-IS,WF111,SI7007-A20-IM1,SI8035AA-B-IU,C8051T604-GM,C8051F813-GU,SI8642ET-IS,C8051F541-AM,SL16020DC,C8051F813-GM,C8051F587-AM,C8051F044,SI2434,SI4613,C8051F043,SI4614,C8051F046,C8051F045,C8051F587-AQ,SI2435,C8051F047,C8051F541-AQ,TS3001,TS3002,SI2439,TS3003,SI8712CC-B-IP,TS3004,C8051F060,C8051F531-C-IM,TS3006,C8051F062,SI8710AD-B-IS,C8051F061,SI8712CC-B-IS,C8051F064,C8051F063,EFM32LG230FX - QFN64,EZR32WG230F64R69G,EFM32WG880FX - QFP100,EFM32WG980FX - QFP100,SI8233BB-C-IS1,C8051F531-C-IT,SI51210,SI8635BD-B-IS,C8051F975-A-GM,SI8230BB-B-IS1,SI8232BB-B-IS,C8051F394-A-GM,SI4624,C8051T616-GM,SI4622,SI8635BT-IS,C8051F573-IM,SI4629,C8051F530-C-AM,SI8920BD-IS,C8051F530-C-AT,C8051F801-GM,C8051F711-GQ,C8051F585-IM,SI21802,C8051F585-IQ,EFM32LG390FX - BGA112,SI8605AC-B-IS1,C8051F370-A-GM,EFM8BB10F2G-A-QFN20,C8051F066,C8051F065,C8051F067,SI2457,SI3452B-B02-GM,SI88243ED-IS,C8051F801-GU,C8051F506-AQ,SI7005-B-GM1,SI2167-C,SI21682-C,SI7022-A20-IM,SI8642AB-B-IS,SI8650ED-B-IS,SI2167-B,SI8719BC-A-IP,TSM9118,SI8631AB-B-IS,TSM9117,SI8234AB-C-IS,TSM9119,SI8234AB-C-IM,EFM32WG390FX - BGA112,SI8620AB-B-IS,SI8719BC-A-IS,SI8631EC-B-IS1,C8051F565-AM,EZR32WG330F64R55G,SI8235AB-C-IS1,C8051F835-GS,SI1132,SI3500-A-GM,TS1102-100,C8051F506-AM,C8051F565-AQ,SL2309NZ,SI8065AA-B-IU,EZR32LG230F64R60G,C8051F551-AM,EZR32LG230F128R60G,EFM32LG980FX - QFP100,SI8640AB-B-IS1,SI8600AD-B-IS,SI8710BC-B-IP,SI8710BC-B-IS,C8051F007,EFM32LG290FX - BGA112,SI8712BD-B-IM,EFM32GG295FX - BGA120,C8051F38C-GQ,SI8244BB-C-IS1,C8051F000,C8051F002,C8051F38C-GM,C8051F001,SI8620EC-B-IS,TS1005,TS1004,C8051F006,TS1003,C8051F005,TS1002,TS1001,C8051F963-B-GM,C8051F504-AQ,EFM8SB10F4G-A-QFN20,C8051F823-GS,EZR32LG230F128R61G,C8051F020,EFM32TG822FX - QFP48,SI8650BC-B-IS1,C8051F388-GQ,EFM32G200FX - QFN32,C8051F537-C-AM,C8051F563-IM,C8051F019,EZR32WG330F256R55G,C8051F018,C8051F563-IQ,C8051F011,SI2401,SI4822,C8051F010,EFM32TG222FX - QFP48,EFM32TG210FX - QFN32,SI4820,C8051F012,C8051F015,SI4826,SI2404,SI4827,C8051F017,SI4824,C8051F016,C8051F504-AM,SI4825,EFM32WG232FX - QFP64,C8051T602-GS,C8051T327-GM,C8051T602-GM,BGM111,EZR32WG330F128R68G,C8051F863-C-GS,SI88244ED-IS,C8051F811-GS,C8051F589-AM,SI8421BD-B-IS,C8051F537-C-AT,EFM32GG395FX - BGA120,C8051F531-C-AT,C8051F854-C-GM,C8051F022,C8051F021,SI4831,C8051F023,SI2415,C8051F854-C-GU,SI4835,SI2417,SI4836,EFM32WG290FX - BGA112,SI2169-C,TS1101-100,SI8455BA-B-IU,C8051F040,C8051F042,C8051F041,EZR32WG330F128R69G,SI8232AB-B-IS1,C8051F344-GQ,SI8662EC-B-IS1,SI4840,SI8452AA-B-IS1,C8051F701-GQ,SI4844,C8051F502-IM,C8051F575-IM,SI88622ED-IS,C8051F502-IQ,CP2201,CP2200,EFM32LG942FX - QFP64,SI8641BB-B-IS,EFM32GG942FX - QFP64,SI8655BB-B-IS1,SI8400AB-B-IS,SI8030AA-B-IU,C8051F587-IM,C8051F206,C8051F587-IQ,EFM32TG840FX - QFN64,SI8460AA-B-IS1,C8051F500-IQ,EZR32WG230F64R61G,C8051F546-IM,C8051F500-IM,EZR32WG330F128R67G,SI8660AB-B-IS1,C8051F827-GS,C8051F988-GU,SI52142,SI52143,SI7050,SI52144,SI7055,SI7054,SI7053,C8051F567-AQ,C8051F590-AM,C8051F567-AM,C8051F988-GM,SI8450BA-B-IS1,SI7023-A20-IM1,SL28EB742,SI8231BD-B-IS,C8051F855-C-GU,EZR32WG230F128R63G,EZR32LG230F64R68G,SI8631BC-B-IS1,C8051F300-GM,SI52111,SI52112,SI8920AD-IS,C8051F855-C-GM,SL28EB740,EFM8SB20F16G-A-QFN24,SI8641BB-B-IS1,C8051F300-GS,EFM8UB10F16G-C-QFN28,C8051F920-GQ,C8051F815-GS,C8051F920-GM,C8051F220,EFM8UB10F16G-C-QFN20,TSM9938F,EZR32LG230F64R67G,C8051F221,C8051T320-GQ,SI8651EC-B-IS1,C8051F226,C8051F862-C-GS,TSM9938H,SI8661BB-B-IS1,EZR32WG230F64R63G,SI8661ED-B-IS,SI8220DD-A-IS,EZR32LG230F64R69G,SI8405AB-A-IS1,C8051F565-IM,EFM8SB10F2G-A-QFN20,C8051F395-A-GM,C8051F565-IQ,SI8641BD-B-IS,EFM32TG232FX - QFP64,C8051F231,SI8661BC-B-IS1,C8051F230,C8051T631-GM,SL2305NZ,SI8441AA-D-IS1,SI8630BD-B-IS,C8051T600-GS,C8051F236,SI8442BA-D-IS1,C8051F580-AQ,C8051T600-GM,C8051F803-GS,C8051F580-AM,TS1103-100,EZR32WG230F128R61G,C8051F996-GM,SI21822,SI8645BT-IS,C8051F302-GM,C8051F996-GU,SI8232AB-B-IS,SI8622BC-B-IS,C8051F302-GS,TS7003,C8051F708-GQ,TS7001,EFM32WG890FX - BGA112,EZR32LG230F64R61G,EZR32WG330F128R63G,SI21662-B,SI8600AC-B-IS,SI21662-C,EZR32WG230F128R60G,EFM32G222FX - QFP48,TSM9938T,C8051F523-C-IM,SI21812,EFM32GG990FX - BGA112,EFM32LG360FX - CSP81,SL23EP09NZ,SI8651BD-B-IS,TSM9938W,C8051F510-IM,C8051F556-IM,SI8422AD-B-IS,SI8232AD-B-IS,C8051F411,C8051F410,C8051F413,SI8405AA-A-IS1,C8051F412,C8051F381-GM,SI8040AA-B-IU,C8051F589-IM,C8051F965-B-GM,SI8461BA-B-IS1,SI8655BA-B-IS,SI8660BA-B-IS1,C8051F381-GQ,C8051T621-GM,C8051F346-GM,EZR32WG230F64R68G,EFM8BB10F8G-A-QSOP24,SI51214,C8051F346-GQ,SI51211,SI51218,SI8655BA-B-IU,SI8662BD-B-IS,SI8630BB-B-IS,EFM8UB20F32G-A-QFP32,SI51219,EZR32LG230F64R63G,EZR32WG330F128R60G,C8051F930-GM,SI8630BB-B-IS1,SI8660BB-B-IS1,C8051F502-AM,C8051F825-GS,EFM8UB11F16G-C-QSOP24,C8051F544-IM,EZR32WG330F128R61G,C8051F34A-GQ,EFM32GG332FX - QFP64,SI7006-A20-IM,C8051F502-AQ,SI2165-D,C8051F544-IQ,C8051F986-GU,C8051F34A-GM,SI21832,WF121,EZR32WG230F64R67G,SI8620BT-IS,C8051F569-AM,SI8642BC-B-IS1,C8051F930-GQ,C8051F986-GM,EFM8UB20F32G-A-QFP48,EZR32LG330F64R55G,EFM32LG380FX - QFP100,SI8630
Silicon Labs(芯科科技)EFM8™ 8位MCU选型指南
型号- EFM8UB20F32G,EFM8UB20F64G,EFM8,EFM8SB20F64G,SLSTK2000A,SLSTK2022A,SLSTK2010A,SLSTK2020A,SLSTK2030A,EFM8UB10F8G,EFM8SB20F32G,EFM8SB20F16G,SLTB005A,EFM8LB11F32E,EFM8UB11F16G,EFM8SB10F2G,EFM8BB21F16G,EFM8SB10F4G,EFM8LB11F16E,EFM8BB10F2G,EFM8SB10F8G,EFM8 FAMILY,EFM8LB12F64E,EFM8LB10F16E,EFM8LB12F32E,EFM8UB10F16G,EFM8UB31F40G,EFM8BB31F32G,EFM8BB31F64G,SLSTK2001A,SLSTK2011A,SLSTK2021A,EFM8BB10F4G,EFM8BB31F16G,EFM8UB30F40G,EFM8BB10F8G,EFM8BB22F16G
TPS325M51xx混合信号微控制器156 MHz,高达2 MB闪存,336 KB SRAM,基于ARM内核,TPsensor,丰富的模拟
型号- TPS325M5166Q-QP6T,TPS325M51XX,TPS325M5177Q-FSDR,TPS325M5156Q-QP6T,TPS325M51XX FAMILY,TPS325M5177QQP7T,TPS325M5177Q-QP7T,TPS325M5167Q-QP7T,TPS325M5167Q-QP5T,TPS325M5177Q-QP5T,TPS325M51,TPS325M5177I-FSDR,TPS325M5155Q-QP6T,TPS325M5,TPS325M5165Q-QP6T,TPS325M5166Q-QP7T,TPS325M5156Q-QP7T,TPS325M5166Q-QP5T,TPS325M5156Q-QP5T,TPS325M51 SERIES,TPS325M5177Q-QP6T,TPS325M5167Q-QP6T,TPS325M51-A,TPS325M5155Q-QP7T,TPS325M5165Q-QP7T,TPS325M5156I-FSDR,TPS325M5165Q-QP5T,TPS325M5166I-FSDR,TPS325M5 SERIES,TPS325M5155Q-QP5T
【选型】ROHM(罗姆)LAPIS 8/16/32bit微控制器(MCU)选型指南(英文)
目录- Microcontrollers introduction 16bit General-Purpose MCUs 16bit Low Power MCUs 8bit Low Voltage MCUs 8bit Audio Playback MCUs 32bit USB Inter Face and Security Fanction MCUs 8bit/16bit MCU Development Support System MCUs Specification and Part Number Explanation
型号- ML62Q1713,ML610Q419C-NNNTBXXXX,ML62Q1714,ML610Q409P,ML62Q1557,ML62Q1711,ML62Q1712,ML62Q1555,ML62Q1556,ML62Q1710,ML62Q1723C,ML62Q1553,ML610Q429,ML62Q1554,ML62Q1551,ML62Q1552,ML62Q1550,ML62Q1300 GROUP,ML610Q431,ML610Q438,ML620Q503H,ML610Q439,ML610Q436,ML610Q435,ML62Q1704,ML610Q432,ML62Q1724,ML610Q408P,ML62Q1725,ML62Q1722,ML62Q1723,ML62Q1323,ML62Q1566,ML62Q1720,ML62Q1567,ML62Q1721,ML62Q1734C,ML62Q1325,ML62Q1564,ML610Q418,ML62Q1324,ML62Q1565,ML610Q419,ML62Q1563,ML610Q436A,ML62Q1544C,ML62Q1700 GROUP,ML610Q409A,MWU16,ML610Q306,ML610Q428,ML610Q412P,ML610Q304,ML610Q426,ML610Q305,ML610Q300,ML620Q504H,ML610Q421,ML610Q422,ML62Q1533,ML610Q409,ML62Q1733C,ML62Q1534,ML62Q1531,ML610Q407,ML62Q1532,ML610Q408,ML62Q1543C,ML62Q1530,ML610Q435A,ML610Q407D,ML610Q419C,ML610Q407A,ML610Q411P,ML610Q412,ML610Q411,ML610Q407P,ML62Q1702,ML62Q1703,ML620Q500,ML62Q1700,ML62Q1701,YQPACK064SA,ML62Q1544,ML62Q1300,ML62Q1542,YQPACK064SD,ML610Q407PA,ML62Q1543,ML62Q1540,ML62Q1554C,ML62Q1541,ML610Q418C,MODEL308,ML62Q1800 GROUP,ML610Q482,ML62Q1000 SERIES,ML610Q422P,ML610Q400,ML62Q1878,ML62Q1879,MODEL404E+,ML630Q400,MODEL400E+,ML62Q1553C,MODEL408E+,EASE1000 V2,NQPACK064SA,ML610Q421P,ML610482,ML610400,ML610Q411PA,ML62Q1748,ML62Q1869,ML62Q1749,LEXIDE-U16,MODEL416E+,ML62Q1800,ML62Q1366,ML610Q432A,ML62Q1367,ML62Q1714C,ML62Q1000,ML62Q1365,ML62Q1564C,ML62Q1500 GROUP,ML62Q1735,ML62Q1736,ML62Q1733,ML62Q1734,ML62Q1335,ML62Q1577,TEC-064SD-KC,ML610Q431A,ML630Q464,ML62Q1333,ML62Q1575,ML62Q1713C,ML62Q1334,ML62Q1576,ML630Q466,ML62Q1573,ML62Q1574,ML62Q1563C,DR.1000,ML62Q1728,ML62Q1729,ML62Q1726,ML610Q439P,ML62Q1727,ML62Q1746,ML62Q1747,ML62Q1868,ML610482P,ML62Q1744,ML62Q1745,ML62Q1346,ML62Q1500,ML62Q1347,ML62Q1743,ML62Q1724C,ML62Q1345,TEC-064SA-KC,ML610Q426C,DR1000-FLQ-64,ML610Q482P,MODEL400E+SERIES,NQPACK064SD-ND,ML62Q1739,ML62Q1737,ML62Q1858,ML62Q1738,ML62Q1859
快速唤醒时间和极低功耗智能仪表微控制器|智能仪表
描述- 该资料主要介绍了EFM32™ Gecko微控制器在智能电表中的应用。EFM32™ Gecko以其快速唤醒时间、极低待机电流消耗和可扩展的RAM及闪存而著称。资料中提到,土耳其的智能电表开发商MANAS选择了EFM32™ Gecko,以克服其原有MCU产品的平台限制和有限的RAM可扩展性。通过使用EFM32™ Gecko,MANAS成功开发出了一种环保、节能、寿命长达15年的智能水表,同时获得了Silicon Labs团队的全面支持。资料还简要介绍了EFM32™ Gecko的MCU基础特性,如自主外设、能量分析器、高效能源模式等。
型号- EFM32
Geehy Showcased Comprehensive MCU+ Solutions at Embedded World 2024
Geehy demonstrates its comprehensive MCU+ solutions in motor control, industrial, and automotive applications at Embedded World 2024 on April 9-11 in Nuremberg, Germany.
Silicon Labs(芯科科技)Gecko系列32位MCU选型指南
目录- Gecko™MCUs Energy-friendly microcontrollers
型号- EFM32G,EFM32LG,EFM32GG11B,EFM32GG12B,EFM32PG,EFM32TG,EFM32TG11B,EFM32HG,EFM32GG,EFM32WG,EFM32ZG,EFM32JG
UG266:适用于GSDK 3.1及更低版本的Silicon Labs Gecko Bootloader用户指南
型号- EFR32XG12,EFM32,EFR32XG1,EFR32 SERIES,EFR32XG21,EFR32,EFR32XG22,SERIES 1,SERIES 2
Silicon Labs Simplifies IoT Development with Simplicity Studio 5
Silicon Labs engineered the latest release of this all-in-one software suite to simplify the development of wireless System-on-Chips (SoCs) and modules, microcontrollers, and other embedded products for IoT devices. Simplicity Studio 5 also provides IoT device developers with the same access, security configuration, and code portability across IoT SoCs and modules, significantly reducing device development time.
Introducing the EFM8BB50: A New Addition to SILICON LABS 8-bit MCU Family
At Silicon Labs, we are committed to providing simple and cost-effective solutions for embedded development. That’s why we are excited to announce the addition of the EFM8BB50 to our EFM8BB5 8-bit microcontroller (MCU) portfolio. The EFM8BB5 family is optimized for small form factor, low-cost applications that don’t need the added complexity or cost of a 32-bit solution. 8-bit MCUs have been a key tool for designers who are looking for simple solutions to the increasing complexity seen in embedded development.
在串行线调试接口AN0062上编程内部闪存-应用说明
描述- 本文档详细介绍了如何通过串行线调试(SWD)接口访问EFM32微控制器的调试接口,并使用该接口编程设备(将应用程序加载到闪存中)。它还解释了如何锁定和解锁调试访问以保护内部闪存和SRAM的内容。文档涵盖了SWD协议、与SW-DP和AHB-AP的通信、闪存编程、调试锁定和解锁等关键内容。
型号- EFM32G,EFM32GG-DK3750,EFM32,EFM32GG990F1024,EFM32GG-STK3700
Cmsemicon Launches CMS8S589x of High-Capacity 8051 Series Microcontrollers with Arbitrary GPIO Mapping
The new microcontroller CMS8S589x is designed for all digital functions to be arbitrarily mapped to GPIOs, making hardware design easier, while providing rich communication interfaces for consumer electronics, industrial, energy storage, IoT, and other applications.
ROHM IoT解决方案
描述- ROHM公司提供全面的物联网(IoT)解决方案,包括传感器、无线通信模块、微控制器和云服务。公司致力于通过创新技术支持制造业,并为社会做出贡献。ROHM的解决方案涵盖从设备健康监测到智能家居控制等多个领域,旨在通过传感器网络和智能算法实现设备的互联和数据共享。此外,ROHM还提供一系列评估套件和开发工具,以简化IoT设备的开发过程。
型号- STM 431J,BP359F,BP359D,BH1790GLC,EDK 400J,BP359C,ML630Q464,ML630Q466,EOP 350,ECO 200,K X124-1051,BP3599,BP359X,BP3595,BH1721FVC,BP3591,BH1749NUC,ML620Q503H,EVK-002,BD1020HFV,BP35A1,BP35C2,BM1383AGLV,EVK-701,BP35C0,BP35C0-T01,BM14270MUV,EVK-003,BP35C0 -T01,STM 400J,ML62Q1000,KX224-1053,BU52072GWZ,BD7411G,BM1422AGMV,MK71251-02,RPR-0521RS,KX122-1037,KX126-1063,EDK 350U,USB 400J,MK71251-0XX-USB-EK,BH1792GLC,PTM 210J,PTM 430J,EDK 350,ML620Q504H
电子商城
现货市场
登录 | 立即注册
提交评论