eeprom and atmega16

Status
Not open for further replies.

sminnn

New Member
Hi,

I need to use the internal eeprom of atmega16 in my project. I do not know how I can write the code with CodeVision. I'd be glad if you could help.

Thanks
 
You should define a variable in the EEPROM Area.
Than write in this and all works fine.
unsigned char eeprom ee_byte; //One single Byte
unsigned char eeprom ee_area[24]; //An Area with 24 spaces
...
ee_byte=23; //Write 23 dec into the EEPROM
...
 
Last edited:
Yes, thanks. It works
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…