Page 1 of 1

pic12f1571 no PWM

Posted: Wed Sep 20, 2023 3:07 pm
by baz_w
No pwm output on any channel, I have tried both 8 and 12 bit set duty cycle on all 3 channels but to no avail, Am running at 16MHz clock with a 16KHz PWM frequency. Have tried all combinations of OSCCON system select bits. Analog inputs work OK. Did have a problem with having OSCCON as the first statement in flowcode , the chip would only run at default frequency (500KHz) but putting an output statement at the beginning solved that.

Re: pic12f1571 no PWM

Posted: Tue Sep 26, 2023 1:06 pm
by BenR
Hello,

Please can you post your Flowcode project file and we will investigate for you.

Re: pic12f1571 no PWM

Posted: Tue Oct 24, 2023 3:11 pm
by baz_w
Hi Ben, forgot to mention that all is OK in simulation but will not work when programmed in to a chip, have tried 3 chips all with the same problem. sorry for the delay in replying but been away.
Barry