Write Read is Jammed!!!
Humanoido
Posts: 5,770
Why are these very simple programs not working?
I'm expecting a 7 from the read program. It returns 0.
Post Edited (humanoido) : 7/1/2009 5:08:57 PM GMT
I'm expecting a 7 from the read program. It returns 0.
' {$STAMP BS1} ' WRITE 7 into EEPROM ' {$PBASIC 1.0} WRITE 0,7 WRITE 1,7 WRITE 2,7 WRITE 3,7 END ' {$STAMP BS1} ' READ 7 from EEPROM ' {$PBASIC 1.0} SYMBOL result = B0 READ 1,result DEBUG result END
Post Edited (humanoido) : 7/1/2009 5:08:57 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
-Phil
Phil Pilgrim: thanks for the BS2 information.
Yes, it's two programs, and this explains
why it was coming up with zeros in the EEPROM
after running the second program. I read those
Stamp 1 book sections over and over and
apparently missed this part. Thanks for the
help.
Below is the text that I was reading which led me
to believe long term data could be stored into the
BS1 and read back. Maybe this is talking about
external added EEPROM which is handled different?
The application requires the BS1, and the
solution is to put all the code in one program and
keep it running.
humanoido
Post Edited (humanoido) : 7/1/2009 5:11:40 PM GMT
here it is