adc measurement with interrupt implemented