Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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