This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to minimize the power consumption of CPU processing?

One of our computing-intensive algorithm takes actually ca 1.9s to finish. And it will be run periodically. Is there a way to minimize the power consumption of CPU processing besides optimizing the code and algorithm?

It seems DC/DC mode just benifits the radio events.

And I use the 3rd revision IC and SDK 8.1.

Parents
  • About the only thing you can do to reduce power in that case is run the code from RAM, if you check the product specs code running from RAM takes 2.4mA, from FLASH, 4.1mA.

    If you're going to do that then make sure all the processor intensive code is running from RAM. I've seen code which does a whole load of floating point operations carefully moved to RAM, which requires some fiddly linking, but the underlying floating point libraries left in FLASH, that code runs from RAM, however it spends 95% of its time in calls in the float libraries in FLASH, thus gaining zero advantage.

Reply
  • About the only thing you can do to reduce power in that case is run the code from RAM, if you check the product specs code running from RAM takes 2.4mA, from FLASH, 4.1mA.

    If you're going to do that then make sure all the processor intensive code is running from RAM. I've seen code which does a whole load of floating point operations carefully moved to RAM, which requires some fiddly linking, but the underlying floating point libraries left in FLASH, that code runs from RAM, however it spends 95% of its time in calls in the float libraries in FLASH, thus gaining zero advantage.

Children
Related