ADC example with proper timing