EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
Beginners
»
AVR atmega32a EEPROM question
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: AVR atmega32a EEPROM question (Read 1854 times)
0 Members and 1 Guest are viewing this topic.
CalebMcNevin
Newbie
Posts: 3
Country:
AVR atmega32a EEPROM question
«
on:
April 18, 2013, 02:30:56 am »
Hi,
does anyone know if it's possible to accidentally overwrite your program by saving data to EEPROM on an AVR microcontroller? I'm planning on generating random numbers by giving an arbitrary seed on my first power up, then using the last random number generated before power down as the new seed for the following cycles, and I don't want to screw my program up by overwriting part of it. Or am I just completely off? Is the program even in the EEPROM? :p
Thanks
Caleb
Logged
TerminalJack505
Super Contributor
Posts: 1310
Country:
Re: AVR atmega32a EEPROM question
«
Reply #1 on:
April 18, 2013, 02:35:46 am »
The program is in flash memory not EEPROM so you will be fine.
Logged
CalebMcNevin
Newbie
Posts: 3
Country:
Re: AVR atmega32a EEPROM question
«
Reply #2 on:
April 18, 2013, 02:59:00 am »
I guess my noob is showing
lol, thanks!
Logged
Psi
Super Contributor
Posts: 9951
Country:
Re: AVR atmega32a EEPROM question
«
Reply #3 on:
April 18, 2013, 12:09:59 pm »
Don't forget to program the EESAVE fuse bit if you want to preserve EEPROM data between reprograms.
(By default the EEPROM data is erased everytime you reprogram the flash)
Logged
Greek letter 'Psi' (not Pounds per Square Inch)
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
Beginners
»
AVR atmega32a EEPROM question
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee