ADC refactoring for voltage scaling