Thank you guys for such a quick response. And thanks for pointing out that error with the resume instead of a return, must have been out of my mind!

Also, I would like to ask, if what i posted there is the right way of storing in an array?

is it like:

"arraystore[i] = newdata?"

as for the timer base, i will still have to dig deeper into using interrupts and timer1 function..

Any extra advices or pointing out of co-existing codes that I could look up to will be appreciated!