Hello
How can I read and write in the internal Eeprom from the Pic16F628 device?
Thanks
Pedro
Printable View
Hello
How can I read and write in the internal Eeprom from the Pic16F628 device?
Thanks
Pedro
Look in the PBP manual for the DATA, READ, and WRITE commands.
Hello
Thank You
Pedro
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