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 interval has to be small enough to handle the fastest expected rotation. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! Not sent from an iPhone. --=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 .