Added adc2 function
added TDC functions