An173: This appnote explains the implementation of SPI encoders
AN173 - Implementation of SPI encoders