My success in reading and writing to EEPROM
First I would like to thank those who responded to my EEPROM questions. I have attached the results of my effort to write a byte to an EEPROM location. The idea is to come up with a way
to know what state A program was in if I lost power to the propeller. In My case my program has a NORMAL state of and an EMERGENCY state. When I go to emergency state I will write
to the EEPROM placing FF in my memory location. If while in the emergency state the propeller looses power, when power is restored I look at the EEPROM location to see if I was
in Emergency mode. If so I jump to the emergency subroutine.
The program which I am attaching was a test to see if I could do it. Well it works. So here it is. This has been a great education for me (a relative spin novice), and a LOT of fun.
P.S. I know I could have just written a Bit to the memory location, but what the heck, what is 8 bits between friends.
to know what state A program was in if I lost power to the propeller. In My case my program has a NORMAL state of and an EMERGENCY state. When I go to emergency state I will write
to the EEPROM placing FF in my memory location. If while in the emergency state the propeller looses power, when power is restored I look at the EEPROM location to see if I was
in Emergency mode. If so I jump to the emergency subroutine.
The program which I am attaching was a test to see if I could do it. Well it works. So here it is. This has been a great education for me (a relative spin novice), and a LOT of fun.
P.S. I know I could have just written a Bit to the memory location, but what the heck, what is 8 bits between friends.

Comments
Will be additional fun to think about that. If you don't find a solution, ask again ;o)
And ... yep ... thanks for sharing ... that's the spirit of this forum and I suppose most of the users like that !
Congrads on your success.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Andrew Williams
WBA Consulting
WBA-TH1M Sensirion SHT11 Module
Special Olympics Polar Bear Plunge, Mar 20, 2010