pic12f1571 no PWM
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 23, 2021 11:26 am
pic12f1571 no PWM
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.
-
- Matrix Staff
- Posts: 1895
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 491 times
- Been thanked: 664 times
Re: pic12f1571 no PWM
Hello,
Please can you post your Flowcode project file and we will investigate for you.
Please can you post your Flowcode project file and we will investigate for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: pic12f1571 no PWM
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
Barry
- Attachments
-
- 1571 TEST.fcfx
- (13.22 KiB) Downloaded 143 times