Search bytes in EEprom (help with project)
Posted: Sun Feb 03, 2013 5:21 pm
I'm building a Flowcode project and I'm struggling with following item:
In my Eeprom data is stored 7 bytes at the time.
The data starts @ position 0 and the next serie of seven bytes are stored @ position 7 and so on every 7 bytes.
Every serie of 7 bytes start with a byte that contains the number 1.
Now I want to search the Eeprom for a certain serie of bytes and return the starting point IF there is a match.
If there is no match it should also return a message (true/false).
It could be that there are only 3 or 4 series of the 7 bytes in the Eeprom.
For every first byte of a serie this starts at the 7the position from the previous and the first always starts at position 0.
How can I reliable and fast find IF such a serie exists (the serie I'm looking for is in a parameter[7] array-variable), and IF this exists at which Eeprom address it starts??
Any help is welcome..
In my Eeprom data is stored 7 bytes at the time.
The data starts @ position 0 and the next serie of seven bytes are stored @ position 7 and so on every 7 bytes.
Every serie of 7 bytes start with a byte that contains the number 1.
Now I want to search the Eeprom for a certain serie of bytes and return the starting point IF there is a match.
If there is no match it should also return a message (true/false).
It could be that there are only 3 or 4 series of the 7 bytes in the Eeprom.
For every first byte of a serie this starts at the 7the position from the previous and the first always starts at position 0.
How can I reliable and fast find IF such a serie exists (the serie I'm looking for is in a parameter[7] array-variable), and IF this exists at which Eeprom address it starts??
Any help is welcome..