PDA

View Full Version : Need Help Plz. on chip Eeprom 16F84A



cesarman
- 24th January 2006, 20:17
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.

mister_e
- 24th January 2006, 22:00
mmmpfffbmrmr Maybe, i said maybe because you defined BO and call/use B0

or it's just a copy/paste error?

andreq
- 24th January 2006, 22:35
you save over before reading ?

cesarman
- 25th January 2006, 00:53
Thanks, realy realy Thanks..

fix my problem