Measure the current consumption of each pipeline stage at every clock cycle by LPCXpresso IDE's Power Measurement Tool

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Measure the current consumption of each pipeline stage at every clock cycle by LPCXpresso IDE's Power Measurement Tool

531 Views
himanshudoshi
Contributor III

Hello to all,

I am trying to measure the current consumption by different instructions. To achieve this, I am feeding my instructions as an interrupt. The piece of code is below:

//Interrupt 

void SysTick_Handler(void)
{
asm(

         add....

         nop...

         ....

         ...

         ..

         )

}

 

//MAIN Function

int main(void){

      int p = 1;

...

...

...

while(1){

               __WFI();

             }

return 0;

}

Now, I wanted to know the consumption of current on every clock cycle and I wanted to measure for each pipeline stage (Instruction Fetch, Instruction Decode and Execution). As, I am at beginner level, in this field. Your help will be a great help.

It will be great, if you can provide me a sample code or some documentation regarding this issue. As I am very much new in the coding also. (My board is LPCXpresso 54114)

Thank you very much and regards,

Himanshu Doshi 

0 Kudos
0 Replies