Wednesday, 15 June 2011

Reading and Writing to internal EEPROM of Atmega32


EEPROM is Electrically erasable programmable ROM.Thus on storing any data or program on eeprom does not get lost even after the power is turned of as in case of static RAM.

Atmega32 has 1024 bytes of EEPROM and has a durability of 100,000 write cylces and infinte read cycles.
My program is based on an excellent tutorial i found on AVR freak which is here.

It is a very straightforward implementation of the tutotrial on avr freaks.

Writing to EEPROM is done either in bytes, words or blocks.

Writing in bytes


Similarly writing a string to EEPROM









3 comments:

Alfred Erian said...

I think you just printed the original variable on the LCD.
lcd_string_array((char *)stringOfData);
instead of
lcd_string_array((char *)stringOfReadData);
you meant to print the read variable from EEPROM right?

jayavelu said...

update function works fine in main loop but within while with a if condition, its not working....

jayavelu said...

Thanks for your nice tutorial....

Post a Comment

Popular Posts