Other Parts Discussed in Thread: MSP430F1611
hi, i would like to do analysis of power measurement in MSP 430 . guide me with procedure and the power consumped by MSP430
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.
Other Parts Discussed in Thread: MSP430F1611
hi, i would like to do analysis of power measurement in MSP 430 . guide me with procedure and the power consumped by MSP430
pushpa padmanaban said:hi, i would like to do analysis of power measurement in MSP 430. guide me with procedure and the power consumped by MSP430
Not sure which one of the following situations you are facing:
(1) You have something x consuming power. You are using something y to measure that power. And you would like to use MSP430 to analyze how y is doing.
(2) You have something x consuming power. You would like to analyze how to use MSP430 to measure that power.
(3) You have a MSP430 and it is consuming power. You would like to analyze how to measure that power.
If you are trying to get a CliffsNotes, you need to know what the assignment is.
thanks for ur reply..i am using msp430F1611 development kit..i want to know how much power this code will consume on execution. whether power depends upon the clock speed? is there any formulas for it to find?
#include"msp430x16x.h"
#define rw BIT3
#define rs BIT2
#define en BIT4
void delay(unsigned int ms)
{
for(int i=0;i<=ms;i++)
for( int j=0;j<10000;j++);
}
void command(unsigned char cmd)
{
P6OUT &=~ rs;
P6OUT &=~ rw;
P6OUT |= en;
delay(1);
P6OUT &=~ en;
P2OUT=cmd;
}
void data( unsigned char dat)
{
P2OUT=dat;
P6OUT |= rs ;
P6OUT &=~ rw;
P6OUT |= en;
delay(1);
P6OUT &=~ en;
}
void intilize()
{
command(0x38);
command(0x0C);
command(0x01);
command(0x06);
}
void datastr(unsigned char *disp)
{
for(int x=0;disp[x]!=0;x++)
{
data(disp[x]);
delay(10);
}
}
void main(void)
{
WDTCTL = WDTPW + WDTHOLD;
P2SEL=0X00;
P2DIR=0XFF;
P6DIR=0XFF;
P2OUT=0;
while(1)
{
intilize();
datastr("hi");
delay(10);
}
}
pushpa padmanaban said:.i want to know how much power this code will consume on execution.
calculate the number of machine cycle your code's single flow will take. if you hve information on "power consumption/machine cycle" you can multiply it and get (This is my assumption)
pushpa padmanaban said:whether power depends upon the clock speed? is there any formulas for it to find?
yes, the power consumption of the CPU is directly proportional to the CPU frequency and square value of the CPU supply voltage.
I found this formula on net and not sure about this, (http://www.overclock.net/t/669332/relationship-between-cpu-wattage-voltage-and-clock-speed)
P=Po(C/Co)(V/Vo)²
Where
Po=TDP
Co=CPU speed @ stock
Vo=Vcore @ stock
P=Power consumption @ oc
C=CPU speed @ oc
V=Vcore @ oc
The power consumption of a F1611 running your code depends on a lot of factors you did not specify. If powered by 3V, the F1611 consumes about 0.38 mA and hence about 1.14 mW. For 2.2V, it consumes about 0.25 mA and hence about 0.55 mW.
**Attention** This is a public forum