*bump*
Sorry I really need some resolution on this issue.
In your first example, var = 1 is correct, since it is the second value in the list. As for the second example, I've got to assume that var = 0 since "$5C" is not in the list and var is already 0? The manual says if the search value is not found, then var is unchanged. Have you tried setting var to a known value then run through the second example and see if it changes? Just an idea. Good luck!
Wisdom is knowing what path to take next... Integrity is taking it.
Ryan Miller
I think the issue is that you can't use a variable as a value.
The manual reads as follows:
"Array variables with a variable index may not be used in LOOKDOWN2 although array variables with a constant index are allowed."
To me this means you can't do B0[1] but you can do B0. I'm I thinking wrong?
Any help is appricated. Basically I have a list of 7 values in EEProm I need to compare to a calculated variable.
Basically the functionality of LookDown with EEProm variable in the list.
The first example in the manual uses a variable in the value list.My question is will it work if your values in the list are constants?LOOKDOWN2 W0,[512,W1,1024],B0
Wisdom is knowing what path to take next... Integrity is taking it.
Ryan Miller
Had any luck?
Wisdom is knowing what path to take next... Integrity is taking it.
Ryan Miller
I have not tested the theroy yet.
I'm currently trying to iron out some ICSP issues. I will post once I have some resolution.
Bookmarks