cancel
Showing results for 
Search instead for 
Did you mean: 

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

elarson833
Associate II
Posted on November 15, 2009 at 15:23

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

3 REPLIES 3
elarson833
Associate II
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.

elarson833
Associate II
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.

tomas23
Associate II
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.