adc code changed to timer1, need testing