adc compartor delay and save to memory