Dual PWM

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jimhook_uk1
Posts: 13
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 5:22 pm
Has thanked: 1 time
Been thanked: 3 times

Dual PWM

Post 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
Attachments
Clutch_Sig_Gen.fcfx
(12.88 KiB) Downloaded 90 times

LeighM
Valued Contributor
Posts: 394
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 69 times
Been thanked: 208 times

Re: Dual PWM

Post 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

jimhook_uk1
Posts: 13
Joined: Fri Dec 04, 2020 5:22 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Dual PWM

Post by jimhook_uk1 »

Thanks Leigh, that fixed it.

Post Reply