PWM Bug

For general Flowcode discussion that does not belong in the other sections.
Post Reply
alanwms
Posts: 133
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

PWM Bug

Post by alanwms »

FC9 Version - Latest library updates today 15/12/2021
Not really (maybe) a bug. It has been explained to me that setting the PWM duty to zero does not shut down the PWM. In fact it is set a a value of 1. In other words a value of 1 or zero has the same effect.
The product is PIC24FJ64GB002.

I'm wondering what the consequences - or possibilities are that I can actually drive the PWM output low using an output. The thoughts are:

1. Will the PWM be damaged? is it still driving with a value of 1?
2. Can I dynamically do this in software?

I would like someone to take a closer look at the FC9 part of PWM for that device, and see if there are any issues and verify that the chip, indeed does not run 0 PWM - I would really like to load the PWM register with zero, and not have any pulses.

Thoughts?

LeighM
Valued Contributor
Posts: 447
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 81 times
Been thanked: 243 times

Re: PWM Bug

Post by LeighM »

Yes, you could ensure the output is off/low dynamically in software by disabling the PWM component and then set the output low.

alanwms
Posts: 133
Joined: Fri Dec 04, 2020 2:29 pm
Has thanked: 26 times
Been thanked: 7 times

Re: PWM Bug

Post by alanwms »

Thank you.

Post Reply