Roche wrote:I did just write it...
Lol that's cool. I've found the problem with the blank spots, the encoder is 12-24VDC, and I supplied it from a separate source (battery charger 12.8V), upon closer inspection of the encoders circuit diagram it appears the encoder needs the 0V from the 12V supply, and it was grounded at the dev boards pin. Checking the voltages at the outputs of the encoder measure 12+ volts. So it seems if I want to continue with these encoders I'll have to put a buffer inline. In theory it won't affect the coding of the PIC, its just a hardware issue. I'll fix that then come back to the coding.
If I buy these encoders again I'll do as ric suggested and get the binary output version, plus now I realise I also need the 5V version as well....
Do you mind if I use your asm code as a starting point?
I'm trying to make a feedback system where the encoders confirm the position of a motor driven spindle. The spindle is given a predetermined position, the geared motor drives the spindle the encoder makes sure it gets to the correct spot.
Regards
Les