Schau mal hier rein:

http://www.mikrocontroller.net/artic...utorial#EEPROM