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.
3 years, 3 months ago.
PWM writing problem
I use pin D8 and pin D2 of F334R8 output two PWMs which are same frequency, but I do not know how to write the program to make one PWM start in high value and another PWM start in low value (image photo). I cannot make a fixed delay to solve this since the time of high value of two PWMs can be effected by a variable value (but fixed period = 0.5us). About one solution, I find that I can set polarity according the reference manual of stm32f334, but I do not know how to set. I want some solutions for two PWMs setting, please help me, thank you.