
Originally Posted by
jessey
.....
Another question, what does the EEPROM 1, in the "EEPROM 1,[1,3,5....]" statement make reference to. Can I have multiple eerpom statements like "EEPROM 1,[1,3,5....]", "EEPROM 2,[1,3,5....]", "EEPROM 3,[1,3,5....]" ect. ect, for different sets of variables?.....
Jessey,
I did not take look at your code now but for your EEPROM question, here is the key.
If you look at the help file or the manual etc..., you will understand the followings.
Example:
EEPROM 1,[1,3,5,7,9,11,$C0,"A",%10100101]
1 is the start address for EEPROM location.
This command will do the following.
Store value 1 on Location 1
Store value 3 on Location 2
Store value 5 on Location 3.
Store value 7 on Location 4.
Store value 9 on Location 5.
Store value 11 on Location 6.
Store value $C0 on Location 7.
Store value "A" on Location 8.
Store value %10100101 on Location 9.
Therefore, once you start from a location on epprom to store some values, then you can not cross that address range by another eeprom command.
Example:
EEPROM 5,["A","B","C","D"]
This will store "A" , "B" , "C" , and "D" on epprom locations 5,6,7,and 8 respectively. This way, you are having locations from 5 to 8 reserved by this epprom command.
Then if you have another EEPROM command like EEPROM 3,[90,100,25,70] then this epprom command will try to write on locations 3,4,5, and 6.
Now, you get two EEPROM commands trying to write on same locations at 5 and 6.
Thus, you get a collision in EEPROM. You will need to change the location in one of these eeprom commands.
As long as you have no collision, you are free to use the given space by your epprom with multiple epprom commands.
Is it clear now?
------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks