Hii soledad,
Thank you very much for your effort. I have gone through this. But, what I really wanted to do is to measure the current consumption due to the interrupt prividing by me in the while loop, as you can see in the code:
//Interrupt
void SysTick_Handler(void)
{
asm(
add....
nop...
....
...
..
)
}
//MAIN Function
int main(void){
int p = 1;
while(1){
__WFI();
}
return 0;
}
In these series of codes, the instructions for whom I wanna measure the current consumption, I am keeping them in the interrupt and calling then through __WFI(); in the while loop. When we execute the program and measure the current, we get the spikes in the measurement value. And we know that these spikes are due to the interrupt. Thus, I am computing the current consumption due to the instruction by feeding them as interrupt.
Now, I wanted to verify these values, by some external oscilloscope or ammeter. And see the deviation of the result between the current consumption what we are getting it by IDE and what we are getting it by oscilloscope or ammeter.
Therefore I can verify the results. The results from IDE are in terms of mAmps and time is in micro-seconds.
So, regarding this issue if you can help me out or any comments from your side, will be a great help. As, I am at beginner level, I am finding it bit difficult. So, you help will be great.
Thanking you once again and regards,
Himanshu Doshi