merged ADC code

working - checked with graph in debug mode but with no signal
output values of ~1056