Hi all,
I am using MSP430f5338. I have a basic questions as related to the variables and its storage memory in MSP430.
As we have have the two types of memory in MSP430 as Flash and RAM
a) Is CODE and FLASH memory is different types of memory? -> My understanding is both the memory are same.
b) Is RAM and STACK memory is different types of memory? -> My understanding is both the memory are same.
c) In where global variables are stored -> My understanding is the global variables are stored in Flash(CODE) memory. If a variable is stored flash in memory,
it can't be modified wright? But most of the times the global variables values are varied as per the program, how? Is my understanding is correct?
d) CONST variable are stored in CODE memory, wright?
e) Is volatile type variables are stored in memory? -> My understanding is volatile variable is not stored in any of the memory and during run this variable will be stored is STACK memory for processing, wright?
f) Is there any document available with the explanation of variables storage memory?
g) How he status registers values are updated, is it CONST VOLATILE type, since these status registers values are not modified by the programmed but it will be updated by uC, how?