I think I've got it now. I'm not really using a command statement like PULSIN. I'm simply checking the state of the two pins connected to the encoder and I can use the XOR operator to interpret the Gray code as moving CW or CCW. Does that sound about right?
Bookmarks