Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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:
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
...
Yes, thanks. It works :):)
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top