new encoder decoding

both the phase signals go directly in the controller and the controller
does all the decoding and counting of pulses