Once I posted the issue about 2 PWM outputs synchronize.
Now every 1st time after power on (or CPU reset if connected with IDE/Programmer) it works exactlly synchronized, but after 2nd start or afterward slave output timing is randomly skewed with master output.
What's wrong here?
-TIM2 = master .. trigger on counter overflow
-TIM3 = slave
I wonder that once timer start synchronous why timing is skewed only by PWM start or stop??
I cannot find difference in dumped registers.. configuration, 1st start, and 2nd start. ...see attached.
I'm glad to hear someone can advise.
Solved! Go to Solution.
thanks you for informing, but no hint about my problem is there.
1st time to start synchronizing PWM output is completely works, no doubt.
but problem is after stop PWM output and then restart it.
now I'm trying some TIM initialization made before restart, but still not work as expected.
represent the problem by diagram. see attached 'diagram1.png'.
>>now I'm trying some TIM initialization made before restart, but still not work as expected.
following is one of my trial.
I wonder that the answer is close here but not found now..
-call "generate event" before PWM start
I don't know what are you trying to do, but generally, if the slave has slave-mode controller set in Trigger mode, it does nothing more than set TIMx_CR1.CEN when first trigger arrives. In other words, if you set TIMx_CR1.CEN) in software, there's no effect from the trigger.