Thanks, Melanie.
Like you said if this routine does the job there is no need for using TMR0.

I have got another problem though, i'm storing my digital value on 24LC256 EEPROM. This device has got 512 pages each of which with size of 64B. I want to store a value in one of the pages, and when i come to this loop for second time i want to store the new digital value in the next page. I'm going to use only three pages of the device. So when i finish the loop i should read three different digital values from three different pages. I tried the code below:

B0 VAR WORD

storingLOOP:
FOR B0 = 0 TO 63 STEP 2
B0 + 64 'Increment page counter
I2CWRITE SDA,SCL,EE_addr,B0,[str data1\64]
NEXT B0

When i try this code the pages never get incremented. Shall i have another counter which keep track of number of pages accessed? If not, how do i incerement the pages?

And how do i read exactly these three pages using I2CREAD?

Thanks,
Tom.