Hi!

I need more info.

The version of the PIC used. (16F628, 16F628A, ...).

If you are using a commercial board for the PIC, I need
the URL where I can see the board.

The brand and model number of the encoder and the URL where I can
download the data sheet.

I also need to know how you have connected the encoder to
PORTB.0 and PORTB.1. (Pull-up resistors? If yes, values).


Luciano