Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 9 months ago.
Nucleo F401RE- PWM
Hi, I can not fix frequency and duty cycle by " .period() " and ".pulsewidth()" commands anymore. It gives me messed up results, and I can see phase_shift in channels. Do you know how to resolve the phase_shift problem?
Question relating to:
1 Answer
8 years, 9 months ago.
Against phase shift use PWM units which operate on the same timer (So for example PWM1/1 and PWM1/2).
For your other problem you need to give more information.
It is true. But I need to have two symmetry PWMs (like the pic.) The attached waveforms can be obtained by phase shift also. The problem is channels with the same timer fire at the same time and I can't have phase shift. And if I use different timers, then the waveforms won't be symmetry.
posted by 21 Aug 2015