Wrong PWM adjust

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
User avatar
p.erasmus
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Wrong PWM adjust

Post by p.erasmus »

Hi All.

PWM on PIC16F1938 has some issue if I adjust the duty cycle on Channel 1 then the duty cycle on Channel 2 changes
the pins in the properties correspond correctly Channel 1 RC2 and Channel 2 is RC1 .

P2.jpg
P2.jpg (21.56 KiB) Viewed 2746 times
P1.jpg
P1.jpg (56.67 KiB) Viewed 2746 times
Regards Peter - QME Electronics

BenR
Matrix Staff
Posts: 1940
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 506 times
Been thanked: 688 times

Re: Wrong PWM adjust

Post by BenR »

Hello,

Please can you post the program and I'll investigate this for you.

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Wrong PWM adjust

Post by p.erasmus »

HI Ben

Here is the FC chart in my opinion CCP1 is Channel 1 and CCP2 is Channel 2 setting Channel 2 Channel one DC changes even on Hardware

Chip pins is CCP1 = RC2 and CCP2 = RC1
Modbus_Slave.rar
(3.32 KiB) Downloaded 267 times
Thanks for helping out
Regards Peter - QME Electronics

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Wrong PWM adjust

Post by p.erasmus »

Hi Team.

My sincere aplogiese! ,I am the bug :D I found my mistake

Have nice weekend
Regards Peter - QME Electronics

Post Reply