Absolute encoder connected to arduino due using spi


I am very new to using arduino, and i have a issue with reading the position of the absolute encoder EMS22x connected with SPI on arduino due. I was wondering if anyone knows all the things i have to provide in my code to make it work. Here is the speciifications of this encoder: https://www.bourns.com/docs/product-datasheets/EMS22A.pdf

Thank you in advance.

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html .
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom... :slight_smile:

You’ll need to work with the datasheets to find the bit/counter register values from your encoders.
Simple SPI looks like it will be the fastest/easiest way.
You simply need to SHIFTIN as many bits as required for the encoder(s)