Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] Question about types of uController memory

Re: [AVR-Chat] Question about types of uController memory

2008-04-27 by BobGardner@aol.com

Hi Dave. Flash memory is for the program code, ram is for stack and  
variables, and eeprom is for stuff that gets saved across power cycles....  config 
params etc. Ram and eeprom are accessed as bytes, but program in flash is  read 
as words, and erased and programmed in sectors/hunks sort of like a  disk.
 
 
In a message dated 4/27/2008 10:58:11 A.M. Eastern Daylight Time,  
davec2468@aim.com writes:

Hi,
The Atmel AVRs I plan on programming have 3 types of memory:  SRAM, 
Flash, and EEPROM.

I understand that SRAM contents goes away  with power, so flash and 
EEPROM are preferable for "permanent" storage.  And I presume when 
development time ends it's advisable to load the  program into flash?

When and why is it advisable to make use of these  different types of 
memory? Is one better to keep constants in  (EEPROM)?

Some ideas, please, to best utilize all memory at my  disposal.

Specifically, I'm looking at the ATmega8, ATmega816, and  ATtiny13 as 
targets for my  development.

Thanks,
Dave

------------------------------------

Yahoo!  Groups Links








**************Need a new ride? Check out the largest site for U.S. used car 
listings at AOL Autos.      
(http://autos.aol.com/used?NCID=aolcmp00300000002851)


[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.