I have a problem with using the internal eeprom of the atmega16. I am using codevision C and in the help file they say to do something like this :
//declare global eeprom a=0;
then then you can write the eeprom with changing the value for a , the eeprom adress is the adress the compiler has given soo you should not worry about that.
but this doesnt work, in my opinion due that every time you restart your system the eeprom is erased and get the inital value of 0 due to the global declaration. They claim that this initial value is only been given when programming the atmega if i understand correctly, anyone exprience with this?
Thanks
Yannick