Page 1 of 1

Dual PWM

Posted: Thu Sep 09, 2021 4:53 pm
by jimhook_uk1
Hi,
I'm trying to get 2 separate PWM channels with different average values, the attached simulates as expected but when I run on hardware both channels are the same - any suggestions greatly appreciated.
Thanks
Jim

Re: Dual PWM

Posted: Thu Sep 09, 2021 5:19 pm
by LeighM
Hi Jim,
You might not be getting the result you expect because you have the Period Overflow set to 181 but set PWM1 Duty to 191
i.e. greater than 181

Re: Dual PWM

Posted: Fri Sep 10, 2021 7:55 am
by jimhook_uk1
Thanks Leigh, that fixed it.