Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ROM and RAM in microcontrller

Status
Not open for further replies.

cool.man

Full Member level 6
Joined
May 29, 2008
Messages
323
Helped
42
Reputation
84
Reaction score
29
Trophy points
1,308
Location
Earth
Activity points
3,307
Hi
I have a very basic question but i am confuse about that.
In microcontroller
Is Program memory refers to ROM and data memory refers to RAM ?
or
program memory refers to RAM and data memory refers to ROM?
 

Hi
in microcontroller u have one memory for program. in custom micros program memory is flash and in old is rom. and data memory in both of them is ram. in custom micros there is an EEprom that u can save your constant data like look up tables or numbers.
 

In ROM (or Flash) you will locate those parts of your programs that are not changed dynamically, that means program or constants. This is because ROM can not be changed / written to while executing a program, so variables need to be in RAM, memory that can be changed on the fly but in most cases also loose content once the power is turned off.
Flash can be written during program runtime but it takes VERY long to program a flash cell compared to a write operation to a RAM cell
Program code or constants (e.g. text for user interface is data but does not need to be changed) are in ROM
Data, Variables, structures... are located in RAM.

hth, Bob
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top