some ADC testing code