Follow this program which is functional -
CntRec VaR Byte ' Value to store in EEPROM
Loc1 CON 0 ' Memory location of EEPROM to store data
' CntRec is stored in EEPROM from previous writes
Read Loc1, CntRec ' Read EEPROM Location "Loc1" store in "CntRec"
.
.
.
CntRec = CntRec + 1
WRITE Loc1,CntRec ' updates CntRec in EEPROM
Bookmarks