Are different channels of the same timer synchronized in nature?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
bittware
Posts: 45
Joined: Mon Aug 18, 2014 3:27 am

Are different channels of the same timer synchronized in nature?

Post by bittware » Sun Jun 26, 2022 1:32 am

Are different channels of the same timer synchronized in nature?
Say on pyboard, PB0 and PB1 correspond to TIM3_CH3 and TIM3_CH4 respectively.
If I ever set CH3 and CH4 with different PWM duty cycle and have PB0 and PB1 PWM outputs hooked to oscilloscope, are these two signals synchronized (i.e. rising edges aligned) in nature?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Are different channels of the same timer synchronized in nature?

Post by dhylands » Sun Jun 26, 2022 5:59 pm

Yes - different channels of the same timer are synchronized. Some of the timers also support "center-aligned mode" where the centers of the two pulse will be aligned rather than the leading edge.

bittware
Posts: 45
Joined: Mon Aug 18, 2014 3:27 am

Re: Are different channels of the same timer synchronized in nature?

Post by bittware » Mon Jun 27, 2022 12:57 pm

dhylands wrote:
Sun Jun 26, 2022 5:59 pm
Yes - different channels of the same timer are synchronized. Some of the timers also support "center-aligned mode" where the centers of the two pulse will be aligned rather than the leading edge.
That's awesome. Thank you dhylands!

Post Reply