There's nothing wrong in your code, has to be a hardware problem.
Scope the DO of your Encoder.. anything going out of it?
IF so, erm... why the decoder don't work... mmm let me guess, this Resistor for the OSC? Could be, did you tried with both value in the first PDF i sent you?
Bookmarks