hallo,

dabei gilt es noch zu beachten: das EEPROM bitte nicht ständig mit Schreibattaken in der Doloopschleife vollballern!
erstens dauert das Schreiben ins EEPROM ewig, stellt die ganze Maschine hin und drittens ist das EEPROM nach ein paar Schreibzyklen wegen Altersschwäche hinüber

Quellenangabe:
Bascom Hilfe:
An important difference is that an ERAM variable can only be written to a maximum of 100.000 times. So only assign an ERAM variable when it is needed, and never use it in a loop or the ERAM will become unusable.

All interrupts are disabled while the EEPROM data is written. Interrupts are enabled automatic when the data is written.

Datasheet ATMega8:
Endurance: 100,000 Write/Erase Cycles