Lets try to understand various types of memories in computer. I am taking example of one old but simple block diagram given by ST for 8-bit microcontroller. We will discuss only memory part here, so you should focus on only memory related words.
Just look into terms related to Program and Data . You will notice following :
1: Program memory (2K or 4K Bytes) : It is the memory which store code or instructions
2: Data ROM : It is the data which will remain even after microcomputer is switched off. It is known as non-volatile. One such example is hard disk of your PC.
3: Data RAM : It stores the variables used by program.
Following is one example of old ST62XX 8-bit microcontroller. Now there is lot of change in latest microcontrollers. We are providing old example for understanding purpose only.
