Let’s expand the picture a bit
Memory
• Memory stores information such as instructions and data in binary format (0 and 1). It provides this information to the microprocessor whenever it is needed.
• Usually, there is a memory “sub-system” in a microprocessor-based system. This sub-system includes: – The registers inside the microprocessor – Read Only Memory (ROM)
• used to store information that does not change. – Random Access Memory (RAM) (also known as Read/Write Memory).
• used to store information supplied by the user. Such as programs and data.
• To execute a program: – the user enters its instructions in binary format into the memory. – The microprocessor then reads these instructions and whatever data is needed from memory, executes the instructions and places the results either in memory or produces it on an output device.