I was wondering how to conect a rotary encoder with PIC microcontroller.How should I do that?For example with PIC16F876A.