Pic12f683 PWM and ADC help needed

Thread Starter


Joined Oct 20, 2013
Hi to you all.

I am working on a project to set the pwm with a pot and 3 buttons(ON,OFF,Pulsed).
I managed to do the on,off buttons using A/D input to safe IO's so what i did is read adc1 and set PWM accordingly.

Now for the second part i need to set the pwm with a pot from 0-100% and be able to set the pwm with the buttons.

I use mikroc as compiler. Could you help pls
Thank you in advance


Joined Oct 18, 2012
Make sure R9 is connected to ground.

If you don't know which is R9, neither do we - you have given us neither the schematic, nor the code you are using (how do you expect us to help without it?).