changed the way systick is handled to allow ADC to be driven by systick