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 = .. > 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. Initially, I thought a PORTB change on interrupt could be used to handle the events, but quickly realized that I have a few peripherals on PORTB. The states on PORTB will be quite in flux due to a few I2C slaves on RB0 and RB1, especially an I2C SSD1308 OLED display. This was the sole reason, I moved on to other means. 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 .