cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder interface

schauhan11
Associate II
Posted on January 02, 2009 at 18:15

Encoder interface

2 REPLIES 2
schauhan11
Associate II
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 II
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.