Fractional average duty for PWM.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
koziolb
Level 1
Level 1
10 sign-ins First reply posted 5 sign-ins

Is it possibe to do: Fractional average duty for PWM.

I work with CYTVII-B-E-1M-176CPU ( CYT2B78CAAAES uC )

Example:

Controller period: 200us
PWM switching period: 5us (40 switchings during single controller period)
Is it possible to reach fractional duty (example 300.5) on hardware peripherials only, by changing compare value by 1 from pulse to pulse.
Example 300, 301, 300, 301, 300, 301, etc. (20 switchings with CC of 300 and 300 switching with CC of 301).

Mean value PWM: 300,5

0 Likes
2 Replies
koziolb
Level 1
Level 1
10 sign-ins First reply posted 5 sign-ins

Should be: 20 switching with CC of 301

0 Likes
lock attach
Attachments are accessible only for community members.
koziolb
Level 1
Level 1
10 sign-ins First reply posted 5 sign-ins

Maybe it can be done based on an picture from the man page, but I haven't found any example. I have a problem with the correct AUTO_RELOAD_CC configuration.

0 Likes