pic12f1571 no PWM

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
baz_w
Posts: 5
http://meble-kuchenne.info.pl
Joined: Thu Dec 23, 2021 11:26 am

Flowcode v9 pic12f1571 no PWM

Post 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.

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: pic12f1571 no PWM

Post by BenR »

Hello,

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

baz_w
Posts: 5
Joined: Thu Dec 23, 2021 11:26 am

Re: pic12f1571 no PWM

Post 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
Attachments
1571 TEST.fcfx
(13.22 KiB) Downloaded 80 times

Post Reply