Hi All
How can I calculate Energy per CPU cycle for MSP430?
Thanks
Zimran Rafique
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi All
How can I calculate Energy per CPU cycle for MSP430?
Thanks
Zimran Rafique
You skipped two steps: 1.1) Measure current with CPU offIlmars said:1) measure current and voltage 2) calculate consumed energy (per second) 3) divide by CPU frequency (clocks per second).
The CPU is not the only part that requires power. There are several things that require a static power supply and are not scaped with PCU frequency.
Also, of course the result will only be an aerage. An isntruction that takes one CPU cycle but only works on internal registers, is different from an instruction that has to read offset values and parameters from ram or flash.
Also, if the code is running from ram, this is mroe efficient than when running from flash.
On the bottom line, there is no single specific 'power per CPU cycle' value.
Jens-Michael Gross said:On the bottom line, there is no single specific 'power per CPU cycle' value.
Because execution of each specific cpu instruction can take specific amount of power. Main question here is - what's the point to know it? Just to keep us busy? :D
I'm calculating (approximate) CPU consumption as follows:
With the information of "TA overflows" (=AM time), "TB clock" (=total time) and the datasheet it is relatively easy to calculate actual consumption.
Hardy
Probably for doing pointless (because situation-specific) comparison charts. Just like Benchmarcks. Or for (also useless) advertisings like "lowest power consumption processor at 1.234MHz" (but much higher than the others for any other frequency). Marketing loves statements like 'we are the best in this or that situation', discards the 'in this or that situation' and sends it as newsletter to everyone.Ilmars said:what's the point to know it? Just to keep us busy?
But as we can see every day in this forum (and also in the Windows world), the most efficient processor is worthless when it is tortured by an unskilled coder.
**Attention** This is a public forum