Hi Harold, On Mon, Jun 10, 2013 at 6:32 AM, Harold Hallikainen wrote: > I use the technique at http://www.piclist.com/techref/microchip/qenc.htm = .. Do you refer to the first one ? When you use that first one, with the PORTBIF, doesn't the falling edges affect the count ? A bit hard to understand that code, since the comments are all in swedish and google translate doesn't work well with it. > Sometimes it's better to use a timer interrupt instead of an interrupt on > the encoder itself it there is a lot of contact bounce. The timer interva= l > has to be small enough to handle the fastest expected rotation. I am not using a timer but instead a RC low pass filter to handle debouncin= g. Regards, Manu --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .