Different start time of two channel on the same TIMER

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
jevan
Posts: 3
Joined: Sun Aug 23, 2015 4:20 pm

Different start time of two channel on the same TIMER

Post by jevan »

Hello,
Is it possible to set two channel (i.e. 0 and 1) in the same TIMER, when i need to start the channel1 earlier before the 50%of the duty cycle ends of channel0?
https://drive.google.com/file/d/0B1quj8sV3XPweU9lbmpKekJEdEk/view?usp=sharing

Is there any way to achieve this.
Thanks
BR,
jevan
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Different start time of two channel on the same TIMER

Post by Giovanni »

Hi,

All PWM channels are synchronized on the activation front. What you need could be achieved (not sure) using multiple timers in a master/slave configuration but the driver does not support this.

See the TIM documentation on the STM32 Reference Manual.

Giovanni
jevan
Posts: 3
Joined: Sun Aug 23, 2015 4:20 pm

Re: Different start time of two channel on the same TIMER

Post by jevan »

Thanks Giovanni
Post Reply