Page 1 of 1

Wrong PWM adjust

Posted: Fri Jun 04, 2021 10:00 am
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 2759 times
P1.jpg
P1.jpg (56.67 KiB) Viewed 2759 times

Re: Wrong PWM adjust

Posted: Mon Jun 07, 2021 11:28 am
by BenR
Hello,

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

Re: Wrong PWM adjust

Posted: Mon Jun 07, 2021 12:13 pm
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 268 times
Thanks for helping out

Re: Wrong PWM adjust

Posted: Fri Jun 11, 2021 8:51 am
by p.erasmus
Hi Team.

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

Have nice weekend