ADC test code