cancel
Showing results for 
Search instead for 
Did you mean: 

Hi I would like to use a COMP to do the following: 1) clear the output of a PWM (TIM2) 2) keep the original off time .

YWhit
Associate III

  ie: due to 1st request: dont finish a full PWM cycle, but make the PWM think that the cycle will end at the time that OUT was forced to low+ duty low time (shortening the cycle time).

1st request was easy: I've connected COMP to TIM2_ETR.

2nd request- is my question: I cant make COMP produce a DMA (to change TIM2 counter), it seems that TIM2 TRG (result of ETR) dosnt do DMA ither.

the only way I understand how to work around is:

output the COMP, connect it (pin to pin) to another TIM capture, and from there - with DMA.

is there an easier way (without an external connection)?

thanks

Yona White

0 REPLIES 0