Hi all,
I'm using a 16f819, which is rumored to have 256 bytes of EEprom. I should be able to define 7 simple byte variables, with 1 or 0, and depending on switch states, write these values to memory so we can remember where we left off the next time we start up.
Using the exact example from the pbp book,
SW1 = 1
led1 = 0
Write 0, SW1
...do something else for a while....
read 0, SW1
if SW1 = 1 then
led1 = 1
endif
Is the issue the address space? Could I use 0 through 6? I don't get what the datasheet is telling me.
Thanks
Gary
Bookmarks