Skip to main content
schauhan11
Associate II
January 2, 2009
Question

Encoder interface

  • January 2, 2009
  • 2 replies
  • 746 views
Posted on January 02, 2009 at 18:15

Encoder interface

This topic has been closed for replies.

2 replies

schauhan11
Associate II
May 17, 2011
Posted on May 17, 2011 at 10:15

Hi,

Is there an example code showing how to configure advanced control timer for full quadrature decoding of encoder pulses and keep track of encoder position as 32 bit integer? ST firmware library seems to have ignored this very important function.

Thanks in advance.

Sam

muratterzi
Associate III
May 17, 2011
Posted on May 17, 2011 at 10:15

i think the most efficient code can be written using two d flip flop for 2x mode. and counting up and down pulses using timers.A simple circut that will suityour purpose is shown below.