1
\$\begingroup\$

I have an MSP430 waking up every millisecond from a timer interrupt (to do a tiny amount of work, ie increment a counter and check a couple of input pins). It is set up to run at 25MHz. What should I expect as the total power consumption? How would one calculate that from values in the spec sheet?

(The specs for this exact part say 195uA/MHz running from flash and 2.1uA in LPM3, plus "fast wakeup" I think 6us from LPM3)

\$\endgroup\$
2
  • \$\begingroup\$ How long is it awake vs asleep? And which msp430 are you using \$\endgroup\$
    – Passerby
    Commented Apr 17, 2015 at 12:12
  • \$\begingroup\$ @Passerby: It's a msp430f5308. It should be awake for 20-30 clocks every millisecond. Thanks! \$\endgroup\$
    – Alex I
    Commented Apr 17, 2015 at 12:41

1 Answer 1

4
\$\begingroup\$

The instruction time is 1/25M = 40ns. Assuming that your interrupt routine is around 20 instructions (it's probably less from the sounds of it), then the routine will last 0.8us.

Assume that the active mode current is drawn for 6us after the ISR has finished, at which point it instantly changes to 2.1uA (for simplification).

In 1ms, the routine will be firing for 6.8us (in active mode) and LPM3 will be on for 993.2us.

If the values you quoted are accurate, then assuming your micro has a 3V supply, 99.32% of the time it will consume 3 x 2.1u = 6.3uW.

For the rest of the time (0.68%), it will consume around 25 x 195u x 3 = 14.6mW.

Since you have the power consumption and the relative times, you can work out the average power.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.