Created adc.c and adc sample code