ADC+PWM incomplete