Converts analog voltage to PWM