Skip to main content
elarson833
Associate
November 15, 2009
Question

How to setup an output compare and a PWM on the same timer

  • November 15, 2009
  • 3 replies
  • 891 views
Posted on November 15, 2009 at 15:23

How to setup an output compare and a PWM on the same timer

    This topic has been closed for replies.

    3 replies

    elarson833
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:29

    I want to be able to use a PWM on one channel and output compare on another channel. Is this possible using the standard library? If so, does anyone know or have code that would point me in the right direction. Thanks.

    elarson833
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:29

    It looks like from the manual that once you set the timer for PWM mode you can't use the output compares? Any comments.

    tomas23
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:30

    Why do you think? Read chapter 14.3.9, PWM mode can be selected on ANY channel with its mode ''110'' or ''111''. The other channels can work in different modes, even in OC.

    Btw. FOC motor control library would not work if OC mode would not be possible.