cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder modes

schauhan11
Associate II
Posted on December 06, 2008 at 04:07

Encoder modes

3 REPLIES 3
schauhan11
Associate II
Posted on May 17, 2011 at 12:55

Hi,

I am starting a new motor control design that needs to read an encoder in full quadrature mode (4X mode, where count changes on both transitions of channel A and B).

I would like to know if this is possible and if there is example code (preferably in C) that shows how to configure the timer and read the count. It would be great to have more encoder related functions added to future version of firmware library.

Sam

jaroslaw2
Associate II
Posted on May 17, 2011 at 12:55

Hi,

There is info you are looking for

http://www.st.com/mcu/forums-cat-7460-23.html

schauhan11
Associate II
Posted on May 17, 2011 at 12:55

Hi,

Thanks for the reply. However, discussion in that thread is hard to follow. I would like to see a simple example of how to set up advanced timer for quadrature encoder mode and then use it to keep track of a 32 bit counter.

Sam