Hi to all,

I'm using a 16F84A for my proyect, and i need to save on the internal eeprom one variable, to recover when the power go off.

look part of the code to save and read.
================================================== ==

BO var byte
conteo var byte
conteo = 150

save_eeprom:

pause 50
B0 = conteo
write 5,B0
pause 50

gosub save_eeprom


read_eeprom:

Pause 10
Read 5,B0
pause 10

gosub read_eeprom


===============================================
Plz, telme what is my mistake, if i disconnect more the 3 minutes all my eeprom data is gone.

Thanks for the time, and sorry for my bad English.