Hi all,
This is probably a very basic question but I couldn't find the answer to this anywhere hence the need to post.
I'm looking at the datasheet of MSP430F5438, which talks about Active Mode current of 312uA in flash program execution and 140uA in RAM program execution. Looking at these figures, the first thing that comes to my mind is to run from RAM, for lower current consumption.
Assume that I have a simple program in IAR EW, that just toggles the LED, when I download and debug it, where is the program running from (by default)? At 3V input supply, I measured the current to be about 295uA so the higher number suggests it is running from flash, is that correct? If so, why?
I am really confused about flash/ram execution mode and having 16KB of SRAM on the controller, I'd like to see how the current consumption can be brought down executing the program from ram.
It is also possible that I'm thinking complete rubbish, if that's the case please point me in the right direction.
Thanks!