Hi everybody,
I'm writing a program on a ATmega88, and want a little explain about write and read eprom.
1/ I want to write 1 integer (&HA5A5) in eprom (to be sure that a variable have this code after power up)
then if i understand I can write
[code:1:a6ff822454]
dim code_default as eram integer
code_default = &HA5A5 ' ==> this will write in eprom is it ok ?
[/code:1:a6ff822454]
But after if I want to read the code_default variable, what I must do please ?
If I explain more: I want to have a default code to send with RF, but in my program I have a routine where the MCU is waiting about a new code that must be write in another place of the eprom, and in the begining of my program, i want to read the place number 2 if the place is 0 then the program must use the default_code.
Hope you understand me ?
This is the first time I use a eprom places, and it does not work who I want. Please can everybody help me ?
Thanks
For information: the 2 places of eprom must be integer.
Thanks
Best regards
Vincent
[b:a6ff822454][color=red:a6ff822454](BASCOM-AVR version : 2.0.7.6 )[/b:a6ff822454][/color:a6ff822454]
↧