Encoder driver stepper motor, not work Arduino DUE - HELP!

OK Paul, i delete comment. But still does not work.
digitalRead() is not all that fast. Direct port manipulation - does not know how to do this.