Toggle Mode of Advanced Timers
Dear All
I am playing with TIM 1 to better understand its functionalities. My tests indicate that in the toggle mode (set through OCxM bits of CCMR):
1) The counter operates in the up-down mode, even if the CMS bits of CR1 are set to 00 (which is for edge-aligned PWM).
2) Assuming that 1 above is true, there will be two matches. But the output toggle takes place at the second match, that is when the counter is counting down. This assumes that the polarities are left at their reset defaults.
Is this consistent with your understand of the way that toggle mode functions? The datasheet is not very clear on either of these points, and they are both important when one wants to use these for phase-shifted PWM, etc.
Much appreciated
Amir
