Hi Steve and thank you for your interest,
I did what you suggested and it works, however it's still not working when "addr" is in a For-next loop.
I get the same results, maybe I'm missing something in front of my eyes.
What i mean is that if i use the code in my first message (for addr = 0 to 5, where addr var word) I jump eeprom positions.
It drives me crazy, so I'll not spend more time on this, I have modified my code and will go that way with some more lines of code.

However, if anyone ever finds why this is happening, I would like to know
Thank you all for your answers and interest.

Fanis

Quote Originally Posted by SteveB View Post
Fanis,
Did you solve the problem?

Code:
I2CRead memSDA,memSCL,$A1,3,[text]
FYI, the "3" here is a constant, and is going to cause problems, since the 24LC256 needs a WORD addr.

try:

Code:
addr VAR WORD:addr=3
I2CRead memSDA,memSCL,$A1,addr,[text]