
Originally Posted by
jessey
...locations 1 to 10 and 101 to 110 of the eeprom address location 1?..
jessey
1, 10 or 101 or 110 these are all already EEPROM locations. So there is no access to "10 of location 1". 10 is the location.
For the index example,
when index=1, take a look at the following code.
READ Index , OnTime
READ Index+100, OffTime
Lest put "1" in index variable and re-write these two lines again.
READ 1, OnTime
READ 1 + 100, OffTime
Now, the third time, this will become as follows.
READ 1, OnTime
READ 101, OffTime
With these two lines, you will read EEPROM location 1 and store the location content in Ontime variable. And, read EEPROM location 101 and store the location content into OffTime variable.
Now, you can take a look at FOR loop above and think about incrementing index variable. When index variable changes, the eeprom location that we read also changes.
Any question there?
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks