Report
2 years, 6 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. /media/uploads/zeroex123/comare_pwm_lZzIBap.jpg

Comment on this question
Be the first to answer this question.

You need to log in to post a question