Encoder and Decoder combined.  Interrupts conflict.
Changed to use interrupt service routine