Hi,
You are using two time consuming statements , LCDOUT and pause. If your encoder generates pulse in this phase you would loose count. So it is best to set an interrupt and increment the value in ASM. I do this for my projects. (A particular application is a depth indicator on a old mine tub line). In fact you can also use instant basic interrupts (See Darrel's post on instant interrupts) to handle this in basic itself. It gives you fair amount of speed without the pain of asm.
Good Luck
Wishing the speedy recovery of our forum member steve who is hurt in a car accident.
Best Regards
Sougata




Bookmarks