Skip to main content
andy239955_stm1
Associate III
February 9, 2009
Question

timer in quadrature mode and prescale or chaining

  • February 9, 2009
  • 3 replies
  • 805 views
Posted on February 09, 2009 at 11:36

timer in quadrature mode and prescale or chaining

    This topic has been closed for replies.

    3 replies

    andy239955_stm1
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:02

    I need more than 16 bits of range while following quadrature signals.

    The prescaler seems to ignore the direction bit, which leads to accumulating errors as the direction changes.

    There doesn't appear to be a direct way to cascade two timers, no hint of having the direction bit of one be used by the other.

    Has anyone successfully gotten either prescale or chaining work in encoder mode?

    sofiene
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:02

    Hi andy,

    Hope that this application note can be helpful: AN2592: ''How to achieve 32-bit timer resolution using the link system in STM32F101xx and STM32F103xx microcontrollers''

    B.R.

    M3allem

    andy239955_stm1
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:02

    I've read it a bunch of times and it implies that what I want can't be done. It nowhere suggests that the direction of one timer can be slaved to the encoder section of another timer.