PWM max duty not working

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
wahid
Posts: 4
Joined: Sat Nov 18, 2017 6:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

PWM max duty not working

Post by wahid »

hope every one will be fine.
flowcode 6, pic161937
For simplicity and to understand duty cycle behaviour I have created very simple code.
In my code I have set max duty 4. The code works for 1,2,3 but not for max duty 4.
can't understand why and how to get max duty cycle working.
Attachments
PWM_test.fcfx
(5.41 KiB) Downloaded 233 times
Clip.jpg
Clip.jpg (92.48 KiB) Viewed 5610 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PWM max duty not working

Post by medelec35 »

Hi wahid,
If you're referring to the simulation, then it's just a bug with the graphics!
Look at the duty value, it shows 100% when set with 4.

If you're interested, you can select

Code: Select all

SetDutyCycle10Bit 
then you can have x4 resolution.
So 16 = 100% duty

I have move your posts to the V6 Bugs section.

Martin
Martin

wahid
Posts: 4
Joined: Sat Nov 18, 2017 6:49 am
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: PWM max duty not working

Post by wahid »

Thanks medelec35 and hope that later versions of flowcode will be free from such bugs.

Post Reply