While my work around is probably fine for this project, it is more efficient to get the PWM to behave, as i guess I expect :pstevestrong wrote: Mon Oct 26, 2020 2:28 pm This behavior is normal according to the reference manual.
There are two ways to solve your issue:
1 - your workaround
2 - choose an update value of 65535 for the timers. In this case, when the compare value is greater than or equal the update value, the output will be a clean "1", without a glitch.
What do you mean about option 2? Choose an update value? My Duty is already set to 65535? "pwmWrite(pin,65535)"