Pic12f683 PWM and ADC help needed

Discussion in 'Programmer's Corner' started by fazenfact81, Dec 9, 2013.

  1. fazenfact81

    Thread Starter New Member

    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
  2. tshuck

    Well-Known Member

    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?).