For the Rotary Encoder have a look at this approach.

I wanted to do it also with interrupts, but I got interrupted many times!

http://www.picbasic.co.uk/forum/cont...er#new_comment

Ioannis