Hi,
New to AVR Freaks!
Have a question accessing the EEPROM using Codevision. We are using the EEPROM to store nonvolatile cal/config data for an application. Looks like Codevision wraps up the EEPROM read and writes in their library so all you have to do is declare a variable as eeprom (ex. eeprom int Cal_Value;) and that stores that variable in EEPROM automatically storing a value in EEPROM when you assign it to that variable.
My question is if this is the case when I compile why does Codevision give me a warning that the eeprom variable in uninitialized?? That's the whole point, I don't want it initialized when I start up. I want to be able to use the last value stored in eeprom for this variable before that last power down. Or does initializing an eeprom declared variable only assign a default value that is only stored during the initial chip programming??
Am I missing something? Should I not use the Codevision eeprom declaration and store necessary data in the eeprom manually as described in the AVR ATMega16 user's guide?? :?:
Thanks in advance!!