completed ADC to use timer1