some notes on ADC and PWM differences