Hi Simon, > i'd like to connect a rotary encoder to a 16F84. > I know i can use the RB4-7 inputs (interrupt on > change), but my bournce rotary encoder has different > behaviour than expected. There are two types of Bournes Rotary Encoder. Some go through one Grey-Scale step per click. The others go through four. It seems that you have the latter. It would probably be simpler to swap it for the former type. (there are other variations of course, some have 24 clicks, some have 6 clicks per rotation) .................... Zim -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.