written ADC and started timer