Established ADC initialization code.