pic12f1571 no PWM
Posted: Wed Sep 20, 2023 3:07 pm
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.