Michael utilizes a timer interrupt to sample the encoder.Originally Posted by mytekcontrols
I utilize the interrupt-on-pin change for the A/B encoder signals.
These are two different approaches.
Luciano
Michael utilizes a timer interrupt to sample the encoder.Originally Posted by mytekcontrols
I utilize the interrupt-on-pin change for the A/B encoder signals.
These are two different approaches.
Luciano
Luciano is absolutely correct, and I apologize for the confusion I might have caused.
The "encoder check" code I posted is indeed part of a timer interrupt sampled encoder situation. It was actually meant as a continuation for the following thread: http://www.picbasic.co.uk/forum/showthread.php?t=1886 which is a discussion that started out to solve a problem with using indirect addressing in an ASM IRQ. And later delved into the details of a timer based 6 digit rotary encoder interrupt routine.
Sometimes in my rush to release information that's about to pop my head open, I forget where I am. Perhaps topic #46 of this forum can be moved to where it belongs - Lester?
Last edited by mytekcontrols; - 30th October 2005 at 16:13.
Bookmarks