In a modem MCU what is true about the memory The registers f
In a modem MCU what is true about the memory? The registers for peripherals and working memory are in RAM while the code is stored ROM. The code and register space is in RAM while the working memory is ROM ROM is used for all applications. RAM is used for code while ROM is used for peripheral registers and working memory
Solution
The answer is option (a). The registers for peripherals and working memory are in RAM while the coe is stored in ROM
RAM is Random access memory, which is a volatile memory. Registers for peripherals such as digital inputs or output, serial or parallel interfaces etc require constant changes in values of their respective registers and hence the registers are in RAM.
ROM is Read only memory, which is a non-volatile memory. ROM is usually used to store code required for proper fuctioning of the CPU (For eg. Start-up programs).
