Skip to main content
schauhan11
Associate II
December 6, 2008
Question

Encoder modes

  • December 6, 2008
  • 3 replies
  • 743 views
Posted on December 06, 2008 at 04:07

Encoder modes

    This topic has been closed for replies.

    3 replies

    jaroslaw2
    Associate III
    May 17, 2011
    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
    May 17, 2011
    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

    schauhan11
    Associate II
    May 17, 2011
    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