9 years, 9 months ago.

EMS22A - Absolute Encoder and FRDM K64F

Hello to everyone,

AS the title says, I try to connect an EMS22A - Absolute Encoder(datasheet: /media/uploads/mateividican/ems22a-50229.pdf ) with FRDM K64F board. The main Ideea is to read from time to time (not periodically) the position.

As you can find in datasheet, the comunication for one reading should look like: /media/uploads/mateividican/screenshot_1.png

At first look should be possible to write some simple code to turn on/off the pins and read the input pin but it is not so "clever" and probably not so fast. My question is: Can do it in a more "clever" way, for example by using timers or maybe some peripherals of the microcontroller?

Best regards, Matei

Be the first to answer this question.