Many battery-powered handheld systems require digital signal processing, and when designing such products, power consumption must be a top priority.
Choosing a DSP that has all the necessary computational power while also meeting the design power requirements can make the difference between a successful design or a complete failure, forcing the design team to undergo an expensive redesign.
However, as most designers have learned the hard way, traditional DSP power estimation methods are only approximate at best, so new techniques are needed to manage power consumption and estimate it in software.
Datasheets Are Not Enough
In the past, when design teams selected a processor, they would first look at the datasheet of a candidate DSP. Measurements in mA/MIP or mA/MHz are usually given along with the maximum IDD of the chip. Almost all datasheets provide this information.
The problem with this data is that power consumption is highly dependent on the application itself, and the statistics in the datasheet often do not fully reflect the actual application.
Semiconductor companies recognize this problem and usually only provide a baseline figure for power estimation. For example, a common TI DSP will have the following operating conditions: the CPU performs 75% dual MAC and 25% ADD, with moderate data bus activity (sine wave graph). CPU and CLKGEN (DPLL) domains are active.
Unless the design team's application scenario is consistent with the above description, the datasheet data is only used to compare similar chips from the same manufacturer. In fact, other semiconductor companies are likely to measure power consumption in different situations.
There are also some situations that make the datasheet data more questionable, which makes it more challenging for designers who face strict power constraints.
DSPs are complex chips that include power saving features such as sleep modes and power-down modes. These features will magnify the errors in a single estimate.
The datasheet does not take into account that power consumption actually consists of two parts: the processor operating on the core voltage supply and the peripherals operating on the I/O supply.
Design teams want to compare power consumption with different implementations and platforms.
Due to the above challenges, design teams often need to build prototype boards and estimate power consumption based on different processors, implementations, platforms, etc. The above method, although time-consuming and costly, at least provides us with relatively accurate data.
Variable Measurements
We have a good understanding of the methods used to estimate power consumption under different scenarios and implementations. Only after being broken down and based on actual measurements will the data be more useful. The specific process is usually as follows:
divide the chip into subsystems;
execute each subsystem independently;
use subtraction analysis to determine the power consumption of each subsystem;
determine the maximum power consumption and idle power consumption of each subsystem;
use interpolation to estimate the power consumption of the subsystem; and
finally use superposition to estimate the power consumption of the chip.
We usually put the measured data together with the data provided by the manufacturer (such as core voltage) into a spreadsheet and make estimates through appropriate calculations. As shown in Figure 1, the gray and white part on the right is the power consumption estimate result.
Figure 1. Spreadsheets are useful, but they still don't reflect reality.
This approach, while an improvement over comparing datasheet values, still needs to be improved. For example, let's assume that a DSP used primarily for filtering applications is active about 20% of the time and idle about 80% of the time.
Today's DSPs need to take into account duty cycles, which can help save power. For example, the voltage can be reduced to idle values when the chip is not working. Frequency plays a major role in CMOS power consumption, and if the chip is not involved in filtering, then we can reduce the frequency.
Power Optimization Techniques
Semiconductor manufacturers such as TI have worked hard to introduce chip-level power control techniques. Previously, design teams could not use this feature. Now, designers can take advantage of power optimization techniques through software.
To illustrate how this can be achieved, let's first look at some of the methods that design teams can use to optimize performance.
Within the chip itself, system designers can use techniques such as deep sleep modes, dynamic voltage and frequency scaling, and shut down unnecessary resources when the chip is idle.
We can also save a lot of power during system startup. Generally speaking, the boot process starts all systems, but we can shut down or idle applications and parts that are not used during the boot process.
We also need to consider power consumption when optimizing software code. The general rule is that we should integrate as many necessary functions as possible in the smallest possible footprint, which can reduce the memory area. However, this approach often leads to increased power consumption because the application has to execute the code more frequently.
When writing code, we should also reduce the number of instruction accesses and optimize caches and internal instruction buffers. These measures can help save the DSP's working mode time and maximize idle time, thereby reducing frequency and voltage.
Other techniques that can be used to achieve system-level control include:
Careful component selection
Minimize the number of components as much as possible
Use internal memory first to minimize power loss between chips
Use external memory for startup or slow operations and occasionally used functions
Power off the boot memory after startup
New generation power control technology
Generally speaking, semiconductor manufacturers build power-saving features into chips that work automatically, for example, the voltage and frequency will automatically decrease when the chip enters the idle state.
However, we now have more sophisticated techniques, and system designers can now work on the DSP BIOS to further enhance power management.
Automatic voltage or frequency scaling is a useful feature. However, rapid changes in the DSP core voltage often have unexpected effects on peripherals. The operating system's time base may be affected by frequency changes, and some peripheral drivers may need to be aware of changes in frequency and power states in order to continue to work effectively.
The effectiveness of the operating system scheduler can also be affected by frequency scaling. In general, the system should be coordinated to ensure safe voltage and frequency control and to enter idle states appropriately.
Semiconductor manufacturers have created DSP BIOS power adjustment libraries to achieve more advanced power control while ensuring that problems caused by voltage and frequency scaling are avoided. We can also extend the above control techniques from the chip to the peripherals by sending messages to the peripherals through GPIO pins.
Figure 2 shows an example of a power scaling routine (PSL in the figure below) that the designer can write in code and call directly from a library.
Let's assume that the DSP is running a very complex algorithm. Typically, the core voltage is 1.6V and the frequency is 200 MHz, as shown by the blue line on the left in Figure 2. However, when the algorithm is not running, we can use the Power Scaling Library to reduce the frequency to 72 MHz.
Typically, the core voltage remains at 1.6V. However, we can also use the Power Scaling Library to safely reduce the voltage to 1.2V, thereby further reducing power consumption by 30 mW during the period when the algorithm is not running.
TI pioneered the Power Scaling Library in its
TMS320VC5509
A DSP, which is the DSP used in this example.
Figure 2. The Power Scaling Library function enables power fine-tuning.
Next-generation power estimation techniques
In addition to the help of various power tools mentioned above, designers also need to find a way to estimate the power of the entire system. The latest approach to this problem requires integrating software provided by semiconductor companies with hardware provided by virtual instrumentation vendors such as
National
Instruments.
In this approach, developers can use
LabView provided by
National Instruments
to monitor the execution of the chip during the actual application. TI provides extensive power test data for the TMS320VC5509 in the data sheet.
Using LabView and the C55 Power Optimization DSP Starter Kit, the design team can try different implementations and tune power consumption using a GUI tool similar to the one shown in Figure 3.
Figure 3. Tuning DSP core, I/O, and board power consumption.
The toolkits described above allow you to explore various design scenarios and measure the power consumption of the DSP core, DSP I/O, and the entire board including flash memory, codecs, and other peripherals with high accuracy.
By combining these innovative approaches to controlling chip power consumption and estimating system power consumption, designers gain a powerful new approach for power-critical DSP applications.
Previous article:Application of Cardless CA System
Next article:Selecting a Microcontroller for Handheld Measurement Applications
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 21 "Wanli" Raspberry Pi car - motor control learning (4-wheel speed control)
- HGI HC32A460 series function comparison chart
- PCB drawing process shortcut keys
- How to start power supply design
- Has anyone tried the baud rate adaptation of LIN communication?
- Analog Electronics Design
- Will adding a nonlinear link to the RC bridge sine wave oscillation circuit cause waveform distortion?
- Introduction to TI_DSP link command file (*.cmd)
- [N32L43x Review] 2. Turn on the lights, blink, blink, blink...
- EEWORLD University Hall - Talking about the development creativity of electronic products and using network resources to help development