I do not know how to configure the PWM duty ratio.
For example, when setting the PWM as shown in the attached file (PWM_Configure.JPG)How can I configure the duty ratio to 50% (H: 50, L: 50)?
Dutycycle of the PWM = Compare / (Period - 1)
In your configuration, with Period0 fixed at 100, you can get ~50% duty cycle by setting the Compare0 at 50.
Please let me know if you have more questions on this.
Retrieving data ...